/* Profile Page Styles */

.profile-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.profile-header {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-header h1 {
    color: #2d3748;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.profile-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin: 0;
}

/* Loading and error states */
.loading-state {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.not-logged-in {
    text-align: center;
    padding: 3rem 1rem;
}

.auth-required {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.auth-required h2 {
    color: #2d3748;
    margin-bottom: 1rem;
}

.auth-required p {
    color: #718096;
    margin-bottom: 1.5rem;
}

/* Profile sections */
.profile-section {
    margin-bottom: 2rem;
}

.profile-section h2 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.profile-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* User info section */
.profile-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.user-avatar-section {
    flex-shrink: 0;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
}

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e2e8f0;
}

.avatar-initials {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-info {
    flex: 1;
}

.info-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

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

.info-row label {
    font-weight: 600;
    color: #4a5568;
    min-width: 140px;
    margin-right: 1rem;
}

.info-value {
    color: #2d3748;
    font-weight: 500;
}

/* Password form */
.password-form {
    display: block;
}

.password-form .profile-card {
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.btn-danger {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.btn-danger:hover {
    background: #fbb6ce;
    border-color: #f687b3;
}

.btn-loader {
    font-size: 0.9rem;
}

/* Messages */
.message {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.message.error {
    background: #fed7d7;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.message.info {
    background: #bee3f8;
    color: #2a69ac;
    border: 1px solid #90cdf4;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .user-avatar-section {
        align-self: center;
    }
    
    .info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.25rem;
    }
    
    .info-row label {
        min-width: auto;
        margin-right: 0;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary, .btn-danger {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 1.75rem;
    }
    
    .profile-card {
        padding: 1rem;
    }
    
    .profile-avatar, .avatar-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .avatar-initials {
        font-size: 1.25rem;
    }
}
