/* ============== PROFILE PAGE STYLES ============== */

.profile-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.profile-header-card {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    flex-shrink: 0;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-info-main {
    flex: 1;
}

.profile-info-main h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-info-main p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.profile-stats-quick {
    display: flex;
    gap: 2rem;
}

.quick-stat {
    text-align: center;
}

.quick-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.quick-stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-tabs {
    display: flex;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.profile-tab-btn {
    flex: 1;
    padding: 1.5rem 1rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-tab-btn:hover {
    background: rgba(99, 102, 241, 0.05);
    color: #6366f1;
}

.profile-tab-btn.active {
    background: #6366f1;
    color: white;
}

.profile-tab-content {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.profile-tab-pane {
    display: none;
}

.profile-tab-pane.active {
    display: block;
}

.profile-overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.profile-card {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.profile-card h3 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievements-content {
    padding: 0;
}

.achievements-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: var(--border-radius);
}

.achievements-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.achievement-stat {
    text-align: center;
}

.achievement-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.achievement-stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card.unlocked {
    border-color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
}

.achievement-card.unlocked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.achievement-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    background: #f3f4f6;
    color: #6b7280;
}

.achievement-card.unlocked .achievement-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.achievement-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #374151;
}

.achievement-description {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.achievement-progress {
    background: #f3f4f6;
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.achievement-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 100px;
    transition: width 0.3s ease;
}

.achievement-progress-text {
    font-size: 0.8rem;
    color: #6b7280;
}

.achievement-card.unlocked .achievement-progress-fill {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.achievement-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.5rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8651c 100%);
    color: white;
}

.badge-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: white;
}

.badge-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #333;
}

.badge-platinum {
    background: linear-gradient(135deg, #e5e4e2 0%, #d1d0ce 100%);
    color: #333;
}

@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .profile-avatar-large {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .profile-info-main h2 {
        font-size: 2rem;
    }

    .profile-stats-quick {
        justify-content: center;
        gap: 1.5rem;
    }

    .profile-tabs {
        overflow: visible;
        flex-wrap: wrap;
    }

    .profile-tab-btn {
        white-space: nowrap;
        min-width: 0;
        flex: 1 1 0;
        padding: 1rem 0.5rem;
        font-size: 0.85rem;
    }

    .profile-overview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievements-stats {
        gap: 1rem;
    }
}

/* Additional Profile Page Styles */
.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: #374151;
}

.info-item span {
    color: #6b7280;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.activity-meta {
    font-size: 0.875rem;
    color: #6b7280;
}

.goals-stats-profile {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.goal-stat-item {
    text-align: center;
}

.goal-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #6366f1;
    margin-bottom: 0.25rem;
}

.goal-stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-goal-card {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.goal-info h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.1rem;
}

.goal-info p {
    margin: 0 0 1rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.goal-progress {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.goal-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.status-completed {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.status-paused {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stats-grid-profile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.stat-item-profile {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.stat-item-profile i {
    font-size: 2rem;
    color: #6366f1;
}

.stat-info {
    text-align: center;
}

.stat-item-profile .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.25rem;
}

.stat-item-profile .stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-unlocked-date {
    font-size: 0.875rem;
    color: #10b981;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .goals-stats-profile {
        gap: 1rem;
    }

    .goal-stat-value {
        font-size: 1.5rem;
    }

    .stats-grid-profile {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item-profile {
        padding: 1rem;
    }

    .stat-item-profile i {
        font-size: 1.5rem;
    }

    .stat-item-profile .stat-value {
        font-size: 1.2rem;
    }
}
