/* ============================================
   User Profile Page Styles
   Dark Mode Compatible
   ============================================ */

/* User Profile Header */
.user-profile-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .user-profile-header {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.profile-content {
    position: relative;
    padding: 2rem;
    color: white;
}

.profile-avatar-section {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-avatar-default {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.verification-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #4caf50;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    color: white;
}

/* Profile Tabs */
.profile-tabs {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .profile-tabs {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.profile-tabs .nav-tabs {
    border-bottom: 1px solid var(--border-color);
    margin: 0;
    background-color: var(--card-bg);
}

.profile-tabs .nav-link {
    border: none;
    border-radius: 0;
    padding: 1rem 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background-color: transparent;
}

.profile-tabs .nav-link:hover {
    background-color: var(--bg-secondary);
    color: #667eea;
}

.profile-tabs .nav-link.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    border: none;
}

.profile-content-section {
    padding: 2rem;
    min-height: 300px;
    background-color: var(--card-bg);
    color: var(--text-primary);
}

.profile-content-section h4 {
    color: var(--text-primary);
}

.profile-content-section .text-muted {
    color: var(--text-secondary) !important;
}

/* Activity Cards */
.activity-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.activity-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .activity-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.activity-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.activity-info h5 {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.activity-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Sidebar Cards */
.user-info-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.user-info-item:last-child {
    border-bottom: none;
}

.user-info-item i {
    color: var(--text-secondary);
}

.user-info-item span {
    color: var(--text-primary);
}

/* Quick Stats */
.quick-stats {
    space-y: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-value {
    font-weight: bold;
    color: var(--text-primary);
}

/* Card Overrides for User Profile */
.user-profile-page .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

[data-theme="dark"] .user-profile-page .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-profile-page .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .user-profile-page .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-profile-page .card-header {
    background-color: var(--bg-secondary);
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

.user-profile-page .card-header h5 {
    color: var(--text-primary);
    margin: 0;
}

.user-profile-page .card-body {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

/* Button Styles */
.user-profile-page .btn {
    transition: all 0.3s ease;
}

.user-profile-page .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
}

.user-profile-page .btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.user-profile-page .btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
    background-color: transparent;
}

.user-profile-page .btn-outline-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

[data-theme="dark"] .user-profile-page .btn-outline-primary {
    border-color: #8a9fec;
    color: #8a9fec;
}

.user-profile-page .btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-primary);
    background-color: transparent;
}

.user-profile-page .btn-outline-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.user-profile-page .btn-outline-success {
    border-color: #4caf50;
    color: #4caf50;
    background-color: transparent;
}

.user-profile-page .btn-outline-success:hover {
    background-color: #4caf50;
    border-color: #4caf50;
    color: white;
}

/* Icons */
.user-profile-page .text-warning {
    color: #ffc107 !important;
}

.user-profile-page .text-primary {
    color: #667eea !important;
}

.user-profile-page .text-success {
    color: #4caf50 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-content {
        padding: 1rem;
    }
    
    .profile-name {
        font-size: 2rem;
    }
    
    .profile-avatar,
    .profile-avatar-default {
        width: 80px;
        height: 80px;
        font-size: 1.8rem;
    }
    
    .profile-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .profile-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .profile-content-section {
        padding: 1rem;
    }

    .activity-card {
        margin-bottom: 1rem;
    }
}

/* Smooth Transitions */
.user-profile-page * {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

