/**
 * Profile Progress Styles
 * استایل‌های component نمایش پیشرفت پروفایل
 * Dark Theme - همگام با modern-dashboard.css
 */

.profile-progress-card {
    background: var(--bg-card, #334155);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, #475569);
}

.profile-progress-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-blue, #1b3050);
}

/* Header */
.profile-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-progress-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.profile-progress-title i {
    color: var(--accent-blue, #1b3050);
    font-size: 1.5rem;
}

.profile-progress-title h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.profile-progress-percentage {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Progress Bar */
.profile-progress-bar-container {
    margin-bottom: 2rem;
}

.profile-progress-bar {
    width: 100%;
    height: 12px;
    background: var(--bg-secondary, #2d3748);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.profile-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #d2051e 0%, 
        #e74c3c 50%, 
        #ff6b6b 100%);
    border-radius: 10px;
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(210, 5, 30, 0.6);
}

.profile-progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.profile-progress-text {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary, #94a3b8);
    text-align: center;
}

/* Steps Section */
.profile-progress-steps {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color, #475569);
}

.steps-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    margin-bottom: 1.25rem;
}

.steps-title i {
    color: var(--accent-orange, #cbaf5e);
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Step Item */
.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-secondary, #2d3748);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-item:hover {
    background: var(--hover-bg, #475569);
    transform: translateX(-4px);
    border-color: var(--accent-blue, #1b3050);
}

.step-item.completed {
    background: rgba(16, 185, 129, 0.15);
    border-color: var(--accent-green, #10b981);
}

.step-item.pending {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--accent-orange, #cbaf5e);
}

/* Step Icon */
.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-item.pending .step-icon {
    background: var(--accent-orange, #cbaf5e);
    color: var(--bg-card, #334155);
    font-size: 0.8rem;
}

.step-item.completed .step-icon {
    background: var(--accent-green, #10b981);
    color: white;
    font-size: 1.2rem;
}

/* Step Content */
.step-content {
    flex: 1;
}

.step-title {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.step-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary, #94a3b8);
}

/* Step Action */
.step-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--accent-blue, #1b3050);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.step-action:hover {
    background: var(--accent-purple, #8b5cf6);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.5);
}

.step-action i {
    font-size: 0.9rem;
}

/* Step Status */
.step-status {
    flex-shrink: 0;
}

.status-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.success {
    background: var(--accent-green, #10b981);
    color: white;
}

/* Completed Steps Toggle */
.profile-progress-completed {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color, #475569);
}

.toggle-completed-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary, #2d3748);
    border: 2px solid var(--border-color, #475569);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
    transition: all 0.3s ease;
}

.toggle-completed-btn:hover {
    background: var(--hover-bg, #475569);
    border-color: var(--accent-green, #10b981);
}

.toggle-completed-btn i.fa-check-circle {
    color: var(--accent-green);
    margin-left: 0.5rem;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.completed-steps-list {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Complete Message */
.profile-complete-message {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    text-align: center;
    border: 2px solid var(--accent-orange, #cbaf5e);
}

.profile-complete-message i {
    font-size: 3rem;
    color: var(--accent-orange, #cbaf5e);
    margin-bottom: 1rem;
}

.profile-complete-message h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
    color: var(--text-primary, #f1f5f9);
}

.profile-complete-message p {
    margin: 0;
    color: var(--text-secondary, #94a3b8);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-progress-card {
        padding: 1.5rem;
    }
    
    .profile-progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .step-item {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
    
    .step-action {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-progress-title h3 {
        font-size: 1.1rem;
    }
    
    .profile-progress-percentage {
        font-size: 1rem;
        padding: 0.4rem 1rem;
    }
    
    .steps-title {
        font-size: 1rem;
    }
    
    .step-title {
        font-size: 0.95rem;
    }
    
    .step-description {
        font-size: 0.85rem;
    }
}
