/* Landing Page Light Mode Theme Overrides */
/* Extracted and Adapted from app.css for public/index.html consistency */

/* =========================================
   LIGHT MODE OVERRIDES
   ========================================= */

body.light-mode {
    background: linear-gradient(135deg, #F9F5EB 0%, #F5EFE6 100%) !important;
    color: #2D3748 !important;
    /* Softer Charcoal for Beige theme */
}

/* Navigation - Light Mode */
body.light-mode .nav-dark {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .nav-dark.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .nav-dark a.nav-link {
    color: #374151 !important;
}

body.light-mode .nav-dark a.nav-link:hover {
    color: #319795 !important;
    /* Teal accent */
}

/* Auth Buttons in Light Mode */
body.light-mode .nav-dark .auth-buttons button.btn-secondary {
    background: transparent !important;
    border: 1px solid #CBD5E0 !important;
    color: #4A5568 !important;
}

body.light-mode .nav-dark .auth-buttons button.btn-secondary:hover {
    background: #EDF2F7 !important;
    color: #2D3748 !important;
}

/* Hero Section Overrides */
body.light-mode .hero-video-overlay {
    background: rgba(249, 245, 235, 0.75) !important;
    backdrop-filter: blur(4px) !important;
}

/* Fix Hero Container Transparency - Override generic section>div rule */
body.light-mode .hero-gradient>div {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Float particles in light mode */
body.light-mode .hero-gradient::before {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(49, 151, 149, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(72, 187, 120, 0.15) 0%, transparent 50%) !important;
}

body.light-mode .hero-gradient h1,
body.light-mode .hero-gradient p {
    color: #2D3748 !important;
    text-shadow: none !important;
}

/* Make "AI-Powered" pulse text stand out in light mode */
body.light-mode .pulse-text {
    background: linear-gradient(135deg, #319795 0%, #2C7A7B 100%) !important;
    background-clip: text !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    border-color: rgba(49, 151, 149, 0.6) !important;
    box-shadow: 0 0 20px rgba(49, 151, 149, 0.15) !important;
    backdrop-filter: none !important;
}

/* Important Requirements Box - Light Mode */
body.light-mode .important-reqs-box {
    background: rgba(230, 255, 250, 0.5) !important;
    border: 1px solid #38B2AC !important;
}

body.light-mode .important-reqs-box h6 {
    color: #234E52 !important;
}

body.light-mode .important-reqs-box i.fa-exclamation-triangle {
    color: #D69E2E !important;
    /* Darker yellow/orange for light mode */
}

body.light-mode .important-reqs-box ul li {
    color: #2D3748 !important;
}

body.light-mode .important-reqs-box i.fa-user-check,
body.light-mode .important-reqs-box i.fa-globe,
body.light-mode .important-reqs-box i.fa-sync {
    color: #319795 !important;
}

body.light-mode .important-reqs-box strong {
    color: #285E61 !important;
}

/* Headings - Light Mode */
body.light-mode h1,
body.light-mode h2 {
    background: none !important;
    -webkit-text-fill-color: initial !important;
    color: #111827 !important;
}

body.light-mode h3,
body.light-mode h4,
body.light-mode strong {
    color: #1f2937 !important;
}

body.light-mode p.text-gray-200,
body.light-mode p.text-gray-300,
body.light-mode p.text-gray-400 {
    color: #4b5563 !important;
}

/* Cards & Containers - Light Mode */
body.light-mode .bg-gray-800,
body.light-mode .bg-gray-900,
body.light-mode [class*="bg-gray-"],
body.light-mode section>div,
body.light-mode .glass-card,
body.light-mode .pricing-card,
body.light-mode .feature-card {
    background: #FFFDF5 !important;
    /* Warm Cream */
    box-shadow: 0 4px 6px -1px rgba(60, 40, 0, 0.05), 0 2px 4px -1px rgba(60, 40, 0, 0.03) !important;
    border: 1px solid #E2E8F0 !important;
    color: #2D3748 !important;
}

/* Fix specific gradient backgrounds on sections */
body.light-mode #app-options,
body.light-mode #features,
body.light-mode #pricing,
body.light-mode #faq,
body.light-mode #contact {
    background: transparent !important;
}

/* Remove border from specific layout containers if needed */
body.light-mode .app-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Text Colors in Containers */
body.light-mode .text-gray-300,
body.light-mode .text-gray-400 {
    color: #4b5563 !important;
    /* darkened for readability on white */
}

body.light-mode .text-white {
    color: #111827 !important;
}

body.light-mode .text-gray-200 {
    color: #374151 !important;
}

/* Footer - Light Mode */
body.light-mode .footer-dark {
    background: linear-gradient(135deg, #F5EFE6 0%, #F9F5EB 100%) !important;
    border-top: 1px solid #E2E8F0 !important;
}

body.light-mode .footer-dark h3 {
    color: #2D3748 !important;
}

body.light-mode .footer-dark p,
body.light-mode .footer-dark a {
    color: #4A5568 !important;
}

body.light-mode .footer-dark a:hover {
    color: #319795 !important;
}

/* Social Links */
body.light-mode .social-link {
    color: #4A5568 !important;
}

body.light-mode .social-link:hover {
    color: #319795 !important;
}

/* Toggle Switch Styles (Shared with App) */
/* The switch - the box around the slider */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
    margin-right: 15px;
}

/* Hide default HTML checkbox */
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #374151;
    /* Dark gray for invalid/dark state */
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    border: 1px solid #4b5563;
    overflow: hidden;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    z-index: 2;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.slider .fa-sun {
    color: #fff;
    /* White Sun */
    font-size: 14px;
    z-index: 1;
    transition: .4s;
    opacity: 0.5;
    transform: translateX(-2px);
}

.slider .fa-moon {
    color: #fbbf24;
    /* Amber Moon */
    font-size: 14px;
    z-index: 1;
    transition: .4s;
    opacity: 1;
    transform: translateX(2px);
}

/* Light Mode State for Switch */
body.light-mode .slider {
    background-color: #E2E8F0;
    /* Light border */
    border: 1px solid #CBD5E0;
}

body.light-mode .slider i.fa-moon {
    color: #A0AEC0;
}

input:checked+.slider {
    background-color: #bfdbfe;
    /* Light blueish bg for day */
}

input:checked+.slider:before {
    transform: translateX(24px);
    background-color: #ffffff;
    box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* Icons visibility toggling */
input:checked+.slider .fa-sun {
    opacity: 1;
    transform: translateX(0);
}

input:checked+.slider .fa-moon {
    opacity: 0;
    transform: translateX(-20px);
}

/* Hover effects */
.theme-switch:hover .slider {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

/* User Profile & Mobile Menu Dropdowns in Light Mode */
body.light-mode .user-profile .bg-gray-800,
body.light-mode #mobile-menu,
body.light-mode .absolute.right-0.bg-gray-800

/* Dropdown */
    {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .user-profile .text-gray-300,
body.light-mode .user-profile .text-white {
    color: #2D3748 !important;
}

body.light-mode .user-profile .border-gray-700 {
    border-color: #E2E8F0 !important;
}

body.light-mode .user-profile a:hover {
    background-color: #F7FAFC !important;
}

/* Mobile Menu specifically */
body.light-mode #mobile-menu .nav-link {
    color: #4A5568 !important;
}

body.light-mode #mobile-menu .nav-link:hover {
    color: #319795 !important;
    background-color: #F7FAFC !important;
}

/* Input Fields in Contact Form */
body.light-mode input,
body.light-mode textarea {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E0 !important;
    color: #2D3748 !important;
}

body.light-mode input:focus,
body.light-mode textarea:focus {
    border-color: #319795 !important;
    box-shadow: 0 0 0 3px rgba(49, 151, 149, 0.2) !important;
}

/* Generic Blue Keys - Muted Teal override */
body.light-mode .bg-blue-600 {
    background-color: #319795 !important;
}

body.light-mode .bg-blue-600:hover {
    background-color: #2C7A7B !important;
}

/* Force specific button colors for Teal */
body.light-mode .bg-teal-600 {
    background-color: #319795 !important;
    color: #ffffff !important;
}

body.light-mode .bg-teal-600:hover {
    background-color: #2C7A7B !important;
}

/* New Utility: Force solid teal in light mode for buttons that use gradients in dark mode */
body.light-mode .light-mode-teal {
    background: #319795 !important;
    background-image: none !important;
    color: #ffffff !important;
    border: none !important;
}

body.light-mode .light-mode-teal:hover {
    background: #2C7A7B !important;
}

body.light-mode .text-blue-400 {
    color: #319795 !important;
}

/* =========================================
   PART 6: DARK MODE BUTTON FIXES & ENFORCEMENT
   ========================================= */

/* Default (Dark Mode) Gradients - Enforce these to fix "missing background" issue */
.download-btn {
    background: linear-gradient(90deg, #319795 0%, #00B5D8 100%);
    color: white;
    border: none;
}

.desktop-toggle-btn {
    background: linear-gradient(90deg, #1f2937, #111827);
    color: white;
    border: 1px solid #374151;
    /* gray-700 */
}

/* Light Mode Overrides for these specific classes */
body.light-mode .download-btn,
body.light-mode .desktop-toggle-btn {
    background: #319795 !important;
    background-image: none !important;
    border: none !important;
    color: white !important;
}

body.light-mode .download-btn:hover,
body.light-mode .desktop-toggle-btn:hover {
    background: #2C7A7B !important;
}

/* =========================================
   PART 9: PRIVACY POLICY & CLEANUP
   ========================================= */

/* Fix Privacy Policy Background in Light Mode */
body.light-mode #privacy-policy {
    background: linear-gradient(135deg, #F9F5EB 0%, #F5EFE6 100%) !important;
}

/* =========================================
   PART 10: MODAL LIGHT MODE STYLING
   ========================================= */

/* Light Mode Modal Backgrounds */
body.light-mode #email-auth-modal>div,
body.light-mode #signup-thankyou-modal>div,
body.light-mode #email-verification-modal>div,
body.light-mode #terms-consent-modal>div {
    background: linear-gradient(135deg, #F9F5EB 0%, #F5EFE6 100%) !important;
}

/* Fix modal text colors in Light Mode */
body.light-mode #email-auth-modal h2,
body.light-mode #signup-thankyou-modal h2,
body.light-mode #email-verification-modal h2,
body.light-mode #terms-consent-modal h3 {
    color: #1a202c !important;
}

body.light-mode #email-auth-modal p,
body.light-mode #signup-thankyou-modal p,
body.light-mode #email-verification-modal p,
body.light-mode #terms-consent-modal p {
    color: #4a5568 !important;
}