/* ============================================
   TradeAon Landing Page - Modern SaaS Theme
   Clean, Unified, Easy-on-the-Eyes Design
   ============================================ */

/* Note: theme.css is loaded via <link> in HTML, no need for @import */

/* Override body background with mesh gradient */
body.landing-page {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 25%, #f0fdfa 50%, #eef2ff 75%, #f8fafc 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Dark mode landing background */
[data-theme="dark"] body.landing-page,
body.landing-page[data-theme="dark"] {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 25%, #134e4a 50%, #1e1b4b 75%, #0f172a 100%);
}

/* Carousel Base Styles */
.carousel-slide {
    display: none;
    width: 100%;
    height: 100vh;
    padding: 2rem;
    animation: slideIn 0.5s ease-out;
}

.carousel-slide.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Slide Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 2rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.05),
        0 20px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 10px 15px -3px rgba(99, 102, 241, 0.1),
        0 20px 25px -5px rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .glass-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Modal Overlay */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal.hidden {
    display: none;
}

/* Modern Tab Buttons */
.tab-btn {
    color: #64748b;
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    transition: all 0.25s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
}

.tab-btn:hover {
    color: #1e293b;
    background: rgba(99, 102, 241, 0.08);
}

.tab-btn.active {
    color: #4f46e5;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .tab-btn {
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tab-btn.active {
    color: white;
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Fixed Footer - add padding to main container */
body {
    padding-bottom: 60px;
}

/* Pricing Modal Scroll */
#pricingModal .max-h-\[90vh\] {
    max-height: 90vh;
}

/* Enhanced Scrollbar for Pricing Modal Table */
#pricingModal .overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #1e293b;
}

#pricingModal .overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

#pricingModal .overflow-x-auto::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 4px;
}

#pricingModal .overflow-x-auto::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

#pricingModal .overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #60a5fa;
}

/* Sticky Feature Column in Modal Table */
#pricingModal table th:first-child,
#pricingModal table td:first-child {
    position: sticky;
    left: 0;
    z-index: 10;
}

/* Modal Table Section Headers */
#pricingModal table tr[class*="bg-"] td:first-child {
    background: inherit !important;
}

/* Slide Indicator Dots */
.slide-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-dot:hover {
    background: #94a3b8;
    transform: scale(1.2);
}

.slide-dot.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .slide-dot {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .slide-dot:hover {
    background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .slide-dot.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* Progress Bar */
#progressBar {
    background: linear-gradient(90deg, #6366f1, #14b8a6);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

/* Loading Overlay */
#loadingOverlay {
    display: flex;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

#loadingOverlay.hidden {
    display: none;
}

/* Navigation Arrows */
.nav-arrow {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #334155;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
}

.nav-arrow:hover {
    background: white;
    color: #4f46e5;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .nav-arrow {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

[data-theme="dark"] .nav-arrow:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Top Navigation Island */
.nav-island {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .nav-island {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Login Button */
.login-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.login-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] .login-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

[data-theme="dark"] .login-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Accent Colors for Features */
.text-indigo { color: #6366f1; }
.text-teal { color: #14b8a6; }
.text-amber { color: #f59e0b; }
.text-rose { color: #f43f5e; }
.text-emerald { color: #10b981; }

/* Pricing Cards Enhancement */
.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.pricing-card.popular {
    border: 2px solid #6366f1;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .pricing-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Code Block Styling */
pre.code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 1rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    color: #10b981;
    overflow-x: auto;
}

[data-theme="light"] pre.code-block {
    background: #0f172a;
}


/* OAuth Error Toast */
#oauthError {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-slide {
        padding: 1rem;
        padding-top: 5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    /* Hide arrow buttons on mobile */
    button.fixed.left-8,
    button.fixed.right-8 {
        display: none;
    }

    /* Adjust tab navigation on mobile */
    .tab-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }

    /* Stack logo and login button */
    .fixed.top-6.right-6 {
        right: 1rem;
    }

    .fixed.top-6.left-6 {
        left: 1rem;
    }
}

@media (max-width: 640px) {
    /* Hide tabs on very small screens, keep dots */
    .fixed.bottom-8 > div {
        display: none;
    }

    /* Move dots down */
    #slideIndicators {
        bottom: 2rem !important;
    }
}

/* Button hover effects */
a[href*="/billing"],
a[href*="/auth/google"] {
    transition: all 0.2s ease;
}

a[href*="/billing"]:hover,
a[href*="/auth/google"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* =================== Landing Page Pricing Grid =================== */
.landing-pricing-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .landing-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .landing-pricing-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Pricing Card Compact Style for Landing */
#slide-pricing .glass-card {
    padding: 1.25rem;
}

#slide-pricing .glass-card h3 {
    font-size: 1.125rem;
}

#slide-pricing .glass-card ul {
    margin-bottom: 1rem;
}

#slide-pricing .glass-card ul li {
    font-size: 0.8125rem;
}

/* Max width for pricing section */
#slide-pricing .max-w-7xl {
    max-width: 1280px;
}

/* Highlighted plan animation */
.pricing-card.highlighted,
.glass-card.highlighted {
    animation: pulse 2s ease-in-out;
    border-color: #00d4ff !important;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(0, 212, 255, 0); }
}
