/* LatAm English Academy Brand Theme */

:root {
    /* Brand Colors */
    --brand-primary: #0EA5E9;
    --brand-accent: #10B981;
    --brand-ink: #0F172A;
    --brand-bg: #F8FAFC;
    --brand-white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

/* Global Styles */
body {
    font-family: var(--font-body);
    color: var(--brand-ink);
    background-color: var(--brand-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
}

h3 {
    font-size: 1.875rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Card Styles */
.brand-card {
    background: var(--brand-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: all 250ms ease-out;
}

.brand-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

/* Button Overrides */
.mud-button-root {
    border-radius: var(--radius-md) !important;
    text-transform: none !important;
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    padding: 0.75rem 2rem !important;
    transition: all 250ms ease-out !important;
}

.mud-button-filled-primary {
    background-color: var(--brand-primary) !important;
}

.mud-button-filled-primary:hover {
    background-color: #0284c7 !important;
    transform: scale(1.02);
}

.mud-button-filled-secondary {
    background-color: var(--brand-accent) !important;
}

.mud-button-filled-secondary:hover {
    background-color: #059669 !important;
    transform: scale(1.02);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0284c7 100%);
    padding: var(--spacing-2xl) var(--spacing-md);
    color: var(--brand-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Final CTA Section - No bottom radius to connect to footer */
.final-cta-section {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0284c7 100%);
    color: var(--brand-white);
    margin-bottom: 0 !important;
}

/* Coming Soon Hero */
.coming-soon-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, #0284c7 100%);
    padding: 4rem var(--spacing-md) 5rem var(--spacing-md);
    color: var(--brand-white);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.waitlist-form {
    background: var(--brand-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    max-width: 500px;
    margin: 2rem auto 0 auto;
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
    .hero-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .coming-soon-hero {
        padding: 3rem var(--spacing-md);
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .coming-soon-badge {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .waitlist-form {
        padding: var(--spacing-lg);
    }
}

/* Level Chips */
.level-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0.25rem;
    cursor: pointer;
    transition: all 200ms ease-out;
}

.level-chip:hover {
    transform: scale(1.05);
}

.level-chip-a1 {
    background-color: #FEF3C7;
    color: #92400E;
}

.level-chip-a2 {
    background-color: #FED7AA;
    color: #9A3412;
}

.level-chip-b1 {
    background-color: #BFDBFE;
    color: #1E40AF;
}

.level-chip-b2 {
    background-color: #A5F3FC;
    color: #155E75;
}

.level-chip-c1 {
    background-color: #D9F99D;
    color: #3F6212;
}

.level-chip-c2 {
    background-color: #BBF7D0;
    color: #14532D;
}

/* Stats/Features Section */
.stats-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-primary);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    color: #64748B;
    font-weight: 500;
}

/* Testimonial Card */
.testimonial-card {
    background: var(--brand-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--brand-accent);
}

.testimonial-text {
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    color: #475569;
}

.testimonial-author {
    font-weight: 600;
    color: var(--brand-ink);
}

.testimonial-role {
    font-size: 0.875rem;
    color: #64748B;
}

/* Pricing Card */
.pricing-card {
    background: var(--brand-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: all 250ms ease-out;
    border: 2px solid transparent;
}

.pricing-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-color: var(--brand-primary);
    box-shadow: var(--shadow-xl);
}

.pricing-badge {
    display: inline-block;
    background: var(--brand-accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--brand-ink);
    font-family: var(--font-heading);
}

.pricing-period {
    font-size: 1rem;
    color: #64748B;
}

/* Utilities */
.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-spacing {
    padding: var(--spacing-2xl) 0;
}

.text-primary {
    color: var(--brand-primary);
}

.text-accent {
    color: var(--brand-accent);
}

.bg-primary {
    background-color: var(--brand-primary);
}

.bg-accent {
    background-color: var(--brand-accent);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 250ms ease-out;
}

/* Footer Styles */
.footer-section {
    background-color: #0F172A;
    color: white;
}

.footer-title {
    color: white !important;
}

.footer-text {
    color: white !important;
}

.footer-link {
    color: white !important;
    opacity: 0.8;
    text-decoration: none;
}

.footer-link:hover {
    opacity: 1;
}

.footer-divider {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Dark Mode Support */
[data-theme="dark"] {
    --brand-ink: #F8FAFC;
    --brand-bg: #0F172A;
    --brand-white: #1E293B;
}

[data-theme="dark"] .brand-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .pricing-card {
    background: var(--brand-white);
}

[data-theme="dark"] .stats-label,
[data-theme="dark"] .testimonial-text,
[data-theme="dark"] .pricing-period {
    color: #94A3B8;
}

[data-theme="dark"] body {
    background-color: var(--brand-bg);
    color: var(--brand-ink);
}

/* Footer Styles - Base (Light Mode) */
.footer-section {
    background-color: var(--brand-ink) !important;
    color: white !important;
}

.footer-title,
.footer-subtitle {
    color: white !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
}

.footer-text {
    color: white !important;
    opacity: 0.8 !important;
}

.footer-link {
    color: white !important;
    opacity: 0.8 !important;
}

.footer-link:hover {
    opacity: 1 !important;
}

.footer-divider {
    opacity: 0.2 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.footer-copyright {
    color: white !important;
    opacity: 0.6 !important;
}

/* Dark Mode Footer - Keep footer dark in dark mode */
[data-theme="dark"] .footer-section,
[data-theme="dark"] .mud-container.footer-section,
body[data-theme="dark"] .footer-section,
html[data-theme="dark"] .footer-section {
    background-color: #1E293B !important;
    color: white !important;
}

[data-theme="dark"] .footer-title,
[data-theme="dark"] .footer-subtitle,
[data-theme="dark"] .mud-typography.footer-title,
[data-theme="dark"] .mud-typography.footer-subtitle,
body[data-theme="dark"] .footer-title,
body[data-theme="dark"] .footer-subtitle {
    color: white !important;
}

[data-theme="dark"] .footer-text,
[data-theme="dark"] .mud-typography.footer-text,
body[data-theme="dark"] .footer-text {
    color: white !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .footer-link,
[data-theme="dark"] .mud-link.footer-link,
[data-theme="dark"] a.footer-link,
body[data-theme="dark"] .footer-link {
    color: white !important;
    opacity: 0.8 !important;
}

[data-theme="dark"] .footer-copyright,
[data-theme="dark"] .mud-typography.footer-copyright,
body[data-theme="dark"] .footer-copyright {
    color: white !important;
    opacity: 0.6 !important;
}

[data-theme="dark"] .footer-divider,
[data-theme="dark"] .mud-divider.footer-divider,
body[data-theme="dark"] .footer-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
    opacity: 1 !important;
}

/* Footer Language Selector Styling */
.footer-language-select,
.footer-language-select.mud-select,
.footer-language-select .mud-input,
.footer-language-select .mud-input-control,
.footer-language-select .mud-input-outlined,
.footer-language-select .mud-input-root,
.footer-language-select .mud-select-input {
    background-color: transparent !important;
    background: transparent !important;
}

.footer-language-select .mud-input-label,
.footer-language-select label {
    color: white !important;
}

.footer-language-select .mud-input-outlined fieldset {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.footer-language-select .mud-input-outlined:hover fieldset {
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.footer-language-select .mud-input-label {
    background-color: transparent !important;
}

.footer-language-select .mud-input-label.mud-input-label-shrink {
    background-color: #0F172A !important;
    padding: 0 4px !important;
}

.footer-language-select input,
.footer-language-select .mud-input-slot {
    color: white !important;
    background-color: transparent !important;
}

/* Dark Mode Footer Language Selector */
[data-theme="dark"] .footer-language-select,
[data-theme="dark"] .footer-language-select.mud-select,
[data-theme="dark"] .footer-language-select .mud-input,
[data-theme="dark"] .footer-language-select .mud-input-control,
[data-theme="dark"] .footer-language-select .mud-input-outlined,
[data-theme="dark"] .footer-language-select .mud-input-root,
[data-theme="dark"] .footer-language-select .mud-select-input {
    background-color: transparent !important;
    background: transparent !important;
}

[data-theme="dark"] .footer-language-select .mud-input-label,
[data-theme="dark"] .footer-language-select label {
    color: white !important;
}

[data-theme="dark"] .footer-language-select .mud-input-outlined fieldset {
    border-color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="dark"] .footer-language-select .mud-input-outlined:hover fieldset {
    border-color: rgba(255, 255, 255, 0.7) !important;
}

[data-theme="dark"] .footer-language-select .mud-input-label.mud-input-label-shrink {
    background-color: #1E293B !important;
    color: white !important;
    padding: 0 4px !important;
}

[data-theme="dark"] .footer-language-select input,
[data-theme="dark"] .footer-language-select .mud-input-slot {
    color: white !important;
    background-color: transparent !important;
}

/* Dark Mode MudSelect (Language Selector) - Ultra Specific */
[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined .mud-input-outlined,
[data-theme="dark"] .language-selector-dark-mode .mud-input-outlined {
    background-color: var(--brand-white) !important;
}

[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined .mud-input-outlined fieldset,
[data-theme="dark"] .language-selector-dark-mode .mud-input-outlined fieldset,
[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined fieldset,
[data-theme="dark"] .language-selector-dark-mode fieldset,
[data-theme="dark"] .language-selector-dark-mode .mud-input-outlined fieldset legend,
[data-theme="dark"] .language-selector-dark-mode.mud-input-outlined fieldset legend {
    border-color: var(--brand-ink) !important;
    border-width: 1px !important;
}

[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined .mud-input-outlined:hover fieldset,
[data-theme="dark"] .language-selector-dark-mode:hover .mud-input-outlined fieldset,
[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined:hover fieldset {
    border-color: var(--brand-ink) !important;
}

[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined .mud-input-outlined.mud-input-focused fieldset,
[data-theme="dark"] .language-selector-dark-mode.mud-input-focused .mud-input-outlined fieldset,
[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined.mud-input-focused fieldset {
    border-color: var(--brand-primary) !important;
    border-width: 2px !important;
}

[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined .mud-input-root input,
[data-theme="dark"] .language-selector-dark-mode .mud-input-root input,
[data-theme="dark"] .language-selector-dark-mode.mud-select-outlined input,
[data-theme="dark"] .language-selector-dark-mode input,
[data-theme="dark"] .language-selector-dark-mode .mud-select-input {
    color: var(--brand-ink) !important;
}

[data-theme="dark"] .language-selector-dark-mode .mud-input-label,
[data-theme="dark"] .language-selector-dark-mode label {
    color: var(--brand-ink) !important;
    opacity: 0.7 !important;
}

[data-theme="dark"] .language-selector-dark-mode .mud-input-label.mud-input-label-shrink {
    color: var(--brand-primary) !important;
    background-color: var(--brand-white) !important;
}

/* MudBlazor Theme Overrides */
.mud-paper {
    border-radius: var(--radius-xl) !important;
}

.mud-chip {
    border-radius: var(--radius-md) !important;
}

/* Language Selector Contrast Fix - Ultra Aggressive */
.language-select,
.language-select * {
    color: white !important;
}

.language-select .mud-input-slot,
.language-select .mud-select-input,
.language-select input,
.language-select .mud-input-root input {
    color: white !important;
}

/* Label - Override ALL MudBlazor default colors */
.language-select label,
.language-select .mud-input-label,
.language-select .mud-input-label-text,
.language-select .mud-select-label,
.mud-select.language-select label,
.mud-select.language-select .mud-input-label,
.mud-input-control.language-select label,
.mud-input-control.language-select .mud-input-label,
.language-select.mud-input-outlined label,
.language-select.mud-input-outlined .mud-input-label,
.language-select .mud-input-label.mud-shrink,
.language-select .mud-input-label-inputcontrol,
.language-select .mud-input-label-animated,
.language-select label.mud-shrink {
    color: white !important;
    background-color: var(--brand-ink) !important;
    padding: 0 4px !important;
    opacity: 1 !important;
}

/* Override MudBlazor's disabled/inactive color */
.language-select .mud-input-label.mud-disabled,
.language-select label.mud-disabled {
    color: white !important;
    opacity: 1 !important;
}

.language-select .mud-select-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Ensure select border is visible on dark background */
.language-select fieldset,
.language-select .mud-input-outlined fieldset,
.language-select.mud-input-outlined fieldset {
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.language-select:hover fieldset,
.language-select.mud-input-outlined:hover fieldset {
    border-color: rgba(255, 255, 255, 0.8) !important;
}

/* Legend (label container) - Force white */
.language-select legend,
.language-select legend *,
.language-select .mud-input-outlined legend,
.language-select .mud-input-outlined legend * {
    color: white !important;
    opacity: 1 !important;
}

.language-select legend span {
    color: white !important;
    padding: 0 4px !important;
    opacity: 1 !important;
}

