/* Profile-specific styles */

.profile-card {
    max-width: 600px;
    width: 95%;
}

.profile-content {
    margin-bottom: 2rem;
}

.profile-section {
    margin-bottom: 2.5rem;
}

.profile-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

[data-theme="dark"] .profile-section h3 {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

/* Profile header */
header h2 {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    font-weight: 600;
    text-align: center;
}

[data-theme="dark"] header h2 {
    color: var(--text-secondary);
}

/* Field styling */
.readonly-field {
    background: var(--alternate-bg) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.readonly-field:focus {
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

.editable-field {
    border-color: var(--accent-color);
    transition: all 0.3s ease;
}

.editable-field:focus {
    border-color: var(--highlight-color);
    box-shadow: 0 0 0 3px rgba(58, 93, 255, 0.1);
}

[data-theme="dark"] .readonly-field {
    background: rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .editable-field:focus {
    box-shadow: 0 0 0 3px rgba(58, 93, 255, 0.2);
}

/* Profile actions */
.profile-actions {
    display: flex;
    gap: 1rem;
    flex-direction: column;
}

.auth-button.secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.auth-button.secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .auth-button.secondary {
    color: var(--text-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] .auth-button.secondary:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* Password strength indicator adjustments */
.password-strength {
    margin-top: 0.5rem;
}

/* Success/Error messages */
.success-message {
    background: var(--success-color);
    color: var(--charcoal-black);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.error-message {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

[data-theme="dark"] .success-message {
    background: rgba(185, 251, 192, 0.2);
    color: var(--success-color);
}

[data-theme="dark"] .error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Responsive design */
@media (max-width: 480px) {
    .profile-card {
        padding: 2rem 1.5rem;
    }
    
    .profile-actions {
        gap: 0.75rem;
    }
    
    .profile-section {
        margin-bottom: 2rem;
    }
    
    .profile-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}