/* =============================================================================
   FIREBASE NOTIFICATION STYLES
   ============================================================================= */

/* Firebase-specific notification styling */
.firebase-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

.firebase-notification-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.firebase-notification-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.firebase-notification-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.firebase-notification-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =============================================================================
   PROFILE PAGE SPECIFIC STYLES
   ============================================================================= */

/*------------------------------------*\
  #PROFILE-LAYOUT-COMPONENTS
\*------------------------------------*/

/* Profile container - Main wrapper for all profile content */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Profile grid - Responsive grid layout for profile cards */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

/* Base profile card styling */
.profile-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.profile-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/*------------------------------------*\
  #DANGER-ZONE-COMPONENT
\*------------------------------------*/

/* Danger card - Special styling for critical account actions
   Used for account deletion and other destructive operations */
.profile-card.danger-card {
    background: linear-gradient(135deg, #fdf2f2 0%, #fef5f5 100%);
    border: 2px solid #fecaca;
    border-left: 6px solid #dc2626; /* Prominent left border for visual hierarchy */
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.profile-card.danger-card:hover {
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.2);
    transform: translateY(-1px); /* Subtle lift on hover */
}

/* Card header with warning icon and title */
.danger-card .card-header {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #fca5a5;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.danger-card .card-icon {
    width: 48px;
    height: 48px;
    background: #dc2626;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.danger-card .card-header h3 {
    margin: 0;
    color: #7f1d1d;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Card content area */
.danger-card .card-content {
    padding: 2rem;
}

/* Warning section styling */
.danger-warning {
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.danger-warning h4 {
    color: #7f1d1d;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.danger-warning h4::before {
    content: "⚠️";
    font-size: 1.1rem;
}

.danger-warning p {
    color: #991b1b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 500;
}

/*------------------------------------*\
  #FORM-COMPONENTS
\*------------------------------------*/

/* Delete account form container */
#delete-account-form {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(220, 38, 38, 0.2);
}

/* Delete button - Critical action styling with enhanced UX */
#delete-account-form .btn.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 2px solid #dc2626;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    
    /* Typography optimized for CJK characters */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
                 "Helvetica Neue", Arial, "Noto Sans", sans-serif, 
                 "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", 
                 "Noto Color Emoji", "Microsoft YaHei", "PingFang SC", 
                 "Hiragino Sans GB", "SimSun", serif;
    
    /* Layout and interaction */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    
    /* Smooth transitions for better UX */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Ensure text visibility */
    text-indent: 0;
    line-height: 1.2;
    
    /* Accessibility improvements */
    min-width: 160px;
    position: relative;
}

/* Enhanced hover state with visual feedback */
#delete-account-form .btn.btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    border-color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Focus state for keyboard navigation accessibility */
#delete-account-form .btn.btn-danger:focus,
#delete-account-form .btn.btn-danger:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

/* Active state for click feedback */
#delete-account-form .btn.btn-danger:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* Icon styling within the delete button */
#delete-account-form .btn.btn-danger i.fas.fa-trash-alt {
    font-size: 1rem;
    color: #ffffff;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

/*------------------------------------*\
  #RESPONSIVE-DESIGN
\*------------------------------------*/

/* Tablet and below - Responsive adjustments */
@media (max-width: 768px) {
    .profile-container {
        padding: 1rem 0.5rem;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .danger-card .card-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .danger-card .card-content {
        padding: 1.5rem;
    }
    
    .danger-warning {
        padding: 1rem;
    }
    
    #delete-account-form .btn.btn-danger {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

/* Mobile devices - Compact layout */
@media (max-width: 480px) {
    .profile-container {
        padding: 0.5rem;
    }
    
    .danger-card .card-header h3 {
        font-size: 1.25rem;
    }
    
    .danger-warning h4 {
        font-size: 1.1rem;
    }
    
    .danger-warning p {
        font-size: 0.9rem;
    }
}

/* filepath: c:\Users\yuanh\Box\tech\Python\side_projects\english\english-learning-app\static\css\profile.css */

/*
Profile Page Styles

This stylesheet contains styles specific to the user profile page,
including account management sections and interactive components.

Key features:
- Firebase notification styling for real-time feedback
- Danger zone styling for critical account actions
- Responsive layout for profile cards and forms
- Accessibility-focused button and form styling

Dependencies:
- Font Awesome (for icons)
- Bootstrap base styles (for .btn classes)
- Base typography and color system

Browser Support:
- Modern browsers (Chrome 70+, Firefox 65+, Safari 12+, Edge 79+)

Last Updated: June 10, 2025
Author: HowToolHelp/Intelligent
*/