/* ===== PROFILE.HTML - PAGE SPECIFIC STYLES ===== */

body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
    padding-top: 80px; /* Space for fixed navbar */
    min-height: 100vh;
}

.profile-header {
    background: linear-gradient(135deg, #1a4b84 0%, #0f3054 100%);
    padding: 3rem 0 6rem;
    margin-bottom: -4rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.profile-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.profile-header p {
    position: relative;
    z-index: 1;
}

.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    position: relative;
    z-index: 2;
}

.profile-avatar-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(26, 75, 132, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-avatar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.avatar-upload-btn {
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.avatar-upload-btn input[type=file] {
    position: absolute;
    left: -9999px;
}

.profile-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    height: 100%;
    border: 1px solid rgba(26, 75, 132, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.profile-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a4b84;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.profile-info-item {
    padding: 0.875rem;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 0.75rem;
    transition: all 0.2s;
}

.profile-info-item:last-child {
    margin-bottom: 0;
}

.profile-info-item:hover {
    background: #f1f5f9;
}

.profile-info-label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-info-value {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 500;
}

.profile-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

.profile-stat {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.profile-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a4b84;
    line-height: 1;
    display: block;
}

.profile-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 991px) {
    .profile-header {
        padding: 2rem 0 5rem;
    }
    
    .profile-header h1 {
        font-size: 1.5rem;
    }
    
    .profile-container {
        padding: 0 1rem 2rem;
    }
    
    .profile-avatar {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 60px;
    }
    
    .profile-header {
        padding: 1.5rem 0 4.5rem;
        margin-bottom: -3.5rem;
    }
    
    .profile-header h1 {
        font-size: 1.35rem;
    }
    
    .profile-container {
        padding: 0 0.75rem 2rem;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-avatar-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .profile-card {
        padding: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .profile-card-title {
        font-size: 1rem;
        margin-bottom: 0.875rem;
        padding-bottom: 0.625rem;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .profile-stat {
        padding: 0.625rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
    }
    
    .profile-stat-number {
        font-size: 1.25rem;
        order: 2;
    }
    
    .profile-stat-label {
        order: 1;
        margin-top: 0;
    }
    
    .profile-info-item {
        padding: 0.75rem;
    }
    
    .profile-info-label {
        font-size: 0.7rem;
    }
    
    .profile-info-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 575px) {
    .profile-header {
        padding: 1.25rem 0 4rem;
        margin-bottom: -3rem;
    }
    
    .profile-header h1 {
        font-size: 1.25rem;
    }
    
    .profile-container {
        padding: 0 0.5rem 1.5rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        border-width: 3px;
    }
    
    .profile-avatar-card,
    .profile-card {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .profile-card-title {
        font-size: 0.95rem;
    }
    
    .profile-info-item {
        padding: 0.625rem;
        border-radius: 6px;
    }
    
    /* Full width form inputs */
    .profile-card .form-control,
    .profile-card .form-select {
        width: 100%;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Stack buttons on mobile */
    .profile-card .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .profile-card .btn:last-child {
        margin-bottom: 0;
    }
}
