/* assets/css/style.css */

/* Custom Variables for Modern Luxury Aesthetic */
:root {
    --primary-color: #3b82f6; /* Modern Blue */
    --secondary-color: #8b5cf6; /* Vibrant Purple */
    --accent-color: #f59e0b; /* Bright Amber for Taxi/Warnings */
    --bg-dark: #0f172a; /* Slate 900 */
    --bg-glass: rgba(30, 41, 59, 0.4); /* Slate 800 with opacity */
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --danger: #ef4444;
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-dark);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Space Orbs Background Animation */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: float 10s infinite ease-in-out alternate;
}
.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, 0.15); /* Primary */
    top: -100px;
    left: -100px;
}
.orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.15); /* Secondary */
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}
.orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.1); /* Accent */
    top: 40%;
    left: 60%;
    animation-duration: 15s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography Upgrade */
h1, h2, h3, h4, h5, h6, .nav-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: 0.3s ease;
}
a:hover {
    color: var(--secondary-color);
}

/* Glassmorphism Classes with Hover Glow */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px; /* More rounded */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
}

.glass-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-nav {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }

/* Navigation */
.navbar { padding: 1rem 0; }
.nav-brand {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}
.nav-links li a {
    color: var(--text-muted);
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    position: relative;
    padding: 0.5rem 0;
}
.nav-links li a:hover { color: #fff; }
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}
.nav-links li a:hover::after { width: 100%; }

/* Form Controls */
.form-group { margin-bottom: 1.5rem; }
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.9);
}
select.form-control option { background: var(--bg-dark); color: #fff; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: #fff;
}
.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: #fff;
}

/* --- MIXUP HOMEPAGE & GLOBAL THEME CSS --- */
:root {
    --primary: #0f172a;
    --secondary: #2ecc71;
    --secondary-hover: #27ae60;
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
    --amazon: #ff9900;
    --decathlon: #0082c3;
    --flipkart: #2874f0;
}

body.home-theme { background: #ffffff; color: var(--text-dark); }
.home-theme a { text-decoration: none; color: inherit; }

/* Top Bar */
.top-bar { background: var(--primary); color: #fff; padding: 0.5rem 0; font-size: 0.85rem; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar .right-info { display: flex; gap: 1.5rem; align-items: center; }
.top-bar i { color: var(--secondary); margin-right: 5px; }

/* Header Navigation */
.main-header { padding: 1rem 0; background: #fff; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.main-header .logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.5rem; color: var(--primary); }
.main-header .nav-links { display: flex; gap: 2rem; font-weight: 500; font-size: 0.95rem; margin-bottom: 0; }
.main-header .nav-links a { color: var(--text-dark); }
.main-header .nav-links a:hover { color: var(--secondary); }
.main-header .auth-buttons { display: flex; gap: 1rem; align-items: center; }

/* Hero Section */
.hero { position: relative; padding: 5rem 0 10rem; background: linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(15,23,42,0.8)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2070&auto=format&fit=crop') center/cover; color: #fff; text-align: center; }
.hero-title { font-size: 4rem; font-weight: 800; line-height: 1.1; margin-bottom: 1rem; }
.hero-title span { color: var(--secondary); }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 2rem; opacity: 0.9; }
.hero-features { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 3rem; font-size: 0.95rem; }
.hero-features div { display: flex; align-items: center; gap: 8px; }

/* Floating Search Widget */
.search-widget { background: #fff; border-radius: 12px; padding: 1.5rem; max-width: 1000px; margin: -5rem auto 0; position: relative; z-index: 10; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 1px solid var(--border-light); }
.search-tabs { display: flex; gap: 2rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-light); padding-bottom: 1rem; }
.search-tabs span { font-weight: 600; color: var(--text-gray); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.search-tabs span.active { color: var(--secondary); border-bottom: 2px solid var(--secondary); padding-bottom: 1rem; margin-bottom: -1rem; }
.search-form { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 1rem; }
.search-form .input-group { display: flex; flex-direction: column; text-align: left; position: relative; padding-right: 1rem; border-right: 1px solid var(--border-light); }
.search-form .input-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-gray); margin-bottom: 5px; }
.search-form .input-group input, .search-form .input-group select { border: none; font-size: 1rem; font-weight: 500; color: var(--text-dark); background: transparent; padding: 0; outline: none; }

/* Trust Stats */
.trust-stats { display: flex; justify-content: space-around; max-width: 1000px; margin: 3rem auto; background: var(--bg-light); border-radius: 12px; padding: 2rem; border: 1px solid var(--border-light); }
.stat-item { display: flex; align-items: center; gap: 1rem; }
.stat-icon { width: 40px; height: 40px; background: rgba(46,204,113,0.1); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.stat-text h4 { font-size: 1.2rem; font-weight: 700; color: var(--primary); margin: 0; }
.stat-text p { font-size: 0.85rem; color: var(--text-gray); margin: 0; }

/* Section Titles */
.home-theme .section-title { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 3rem; color: var(--primary); }

/* PDF Guides */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.guide-card { display: flex; gap: 1.5rem; align-items: center; padding: 1.5rem; border: 1px solid var(--border-light); border-radius: 12px; background: #fff; transition: 0.3s; }
.guide-card:hover { border-color: var(--secondary); box-shadow: 0 10px 20px rgba(0,0,0,0.05); transform: translateY(-3px); }
.guide-card img { width: 90px; height: 120px; object-fit: cover; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.guide-info h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--primary); }
.guide-price { font-weight: 700; color: var(--secondary); margin-bottom: 1rem; font-size: 1.2rem; }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; padding: 3rem 0; }
.feature-card { border: 1px solid var(--border-light); padding: 2rem; border-radius: 12px; text-align: center; transition: 0.3s; background: #fff; }
.feature-card:hover { border-color: var(--secondary); box-shadow: 0 10px 20px rgba(46,204,113,0.05); transform: translateY(-5px); }
.feature-card .icon { width: 60px; height: 60px; background: var(--bg-light); border-radius: 12px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--secondary); }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; color: var(--primary); }
.feature-card p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.5; }

/* Destinations */
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.dest-card { border-radius: 12px; overflow: hidden; position: relative; height: 300px; cursor: pointer; transition: 0.3s; }
.dest-card:hover { transform: scale(1.02); }
.dest-card img { width: 100%; height: 100%; object-fit: cover; }
.dest-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; display: flex; justify-content: space-between; align-items: flex-end; }
.dest-info h3 { font-size: 1.3rem; margin-bottom: 5px; }
.dest-info p { font-size: 0.85rem; opacity: 0.8; margin: 0;}
.dest-rating { background: rgba(0,0,0,0.5); padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; color: #f1c40f; display: flex; align-items: center; gap: 4px; backdrop-filter: blur(4px); }

/* Essentials / Affiliate */
.essentials-section { background: rgba(241,196,15,0.03); border: 1px solid rgba(241,196,15,0.1); padding: 4rem 0; border-radius: 16px; margin: 4rem 0; }
.product-grid { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
.product-grid::-webkit-scrollbar { display: none; }
.product-card { scroll-snap-align: start; min-width: 260px; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 1.5rem; text-align: center; }
.product-card img { height: 120px; object-fit: contain; margin-bottom: 1rem; width: 100%; }
.product-card h4 { font-size: 1rem; margin-bottom: 5px; color: var(--primary); }
.product-card p { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 1rem; height: 35px; overflow: hidden; }
.price-row { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 1rem; }
.price { font-weight: 700; font-size: 1.2rem; color: var(--text-dark); }
.old-price { color: var(--text-gray); text-decoration: line-through; font-size: 0.85rem; }
.discount { color: var(--secondary); font-size: 0.85rem; font-weight: 600; }
.btn-amazon { background: var(--amazon); color: #fff !important; width: 100%; border-radius: 8px; padding: 0.6rem; font-weight: 600; display: block; border: none; }
.btn-decathlon { background: var(--decathlon); color: #fff !important; width: 100%; border-radius: 8px; padding: 0.6rem; font-weight: 600; display: block; border: none; }
.btn-flipkart { background: var(--flipkart); color: #fff !important; width: 100%; border-radius: 8px; padding: 0.6rem; font-weight: 600; display: block; border: none; }

/* Top Deals */
.deals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.deal-card { border: 1px solid var(--border-light); border-radius: 12px; padding: 2rem 1.5rem; text-align: center; background: #fff; transition: 0.3s; }
.deal-card:hover { border-color: var(--secondary); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.deal-card img { height: 30px; object-fit: contain; margin-bottom: 1rem; }
.deal-card h4 { font-size: 1rem; margin-bottom: 5px; color: var(--primary); }
.deal-card p { font-size: 0.85rem; color: var(--text-gray); margin-bottom: 1.5rem; }
.deal-discount { font-weight: 700; color: var(--secondary); margin-bottom: 1rem; }

/* How it Works */
.steps-container { display: flex; justify-content: space-between; align-items: center; padding: 4rem 0; }
.step { flex: 1; text-align: center; background: var(--bg-light); border: 1px solid var(--border-light); padding: 2.5rem 1.5rem; border-radius: 12px; position: relative; }
.step-arrow { color: var(--border-light); font-size: 1.5rem; margin: 0 1rem; }
.step .icon { width: 60px; height: 60px; background: rgba(46,204,113,0.1); color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }
.step-label { color: var(--secondary); font-size: 0.8rem; font-weight: 700; margin-bottom: 5px; text-transform: uppercase; }
.step h3 { color: var(--primary); }

/* Footer */
.footer { background: var(--primary); color: #fff; padding: 5rem 0 2rem; margin-top: 5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 2rem; margin-bottom: 3rem; }
.footer h4 { margin-bottom: 1.5rem; font-size: 1.1rem; color: #fff; }
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 0.8rem; }
.footer ul li a { color: var(--text-gray); font-size: 0.9rem; transition: 0.3s; }
.footer ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-gray); }
.newsletter-input { width: 100%; padding: 0.8rem; border-radius: 8px; border: none; margin-bottom: 1rem; outline: none; }

/* Global overrides for mixup components */
.btn-outline { border: 1px solid var(--secondary); color: var(--secondary); background: transparent; padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; cursor: pointer; display: inline-block; text-align: center; transition: 0.3s;}
.btn-outline:hover { background: var(--secondary); color: #fff; }

/* Fixes for home theme overlaps and buttons */
body.home-theme .bg-orb { display: none !important; }

/* Home theme buttons */
.home-theme .btn { font-family: 'Inter', sans-serif; }
.home-theme .btn-primary { background: var(--primary) !important; color: #fff !important; box-shadow: none !important; border: none !important; }
.home-theme .btn-primary:hover { background: #1e293b !important; }
.home-theme .btn-secondary { background: var(--secondary) !important; color: #fff !important; border: none !important; box-shadow: none !important; }
.home-theme .btn-secondary:hover { background: var(--secondary-hover) !important; color: #fff !important; }

/* Footer buttons globally */
.footer .btn-secondary { background: var(--secondary) !important; color: #fff !important; border: none !important; box-shadow: none !important; }
.footer .btn-secondary:hover { background: var(--secondary-hover) !important; color: #fff !important; }

/* ========================================= */
/* RESPONSIVE DESIGN & MEDIA QUERIES         */
/* ========================================= */

.menu-toggle { display: none; }
.nav-wrapper { display: flex; align-items: center; gap: 2rem; flex: 1; justify-content: space-between; }

@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .features-grid, .dest-grid, .guides-grid, .deals-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

@media (max-width: 768px) {
    /* Header & Nav */
    .menu-toggle { display: block !important; }
    .main-header .container { flex-wrap: wrap; justify-content: space-between; }
    .nav-wrapper { 
        display: none; 
        width: 100%; 
        flex-direction: column; 
        gap: 1.5rem; 
        margin-top: 1rem; 
        background: #fff;
        padding: 1.5rem 0;
        border-top: 1px solid var(--border-light);
    }
    .nav-wrapper.active { display: flex; }
    .nav-links { flex-direction: column; gap: 1rem; width: 100%; text-align: center; }
    .auth-buttons { flex-direction: column; gap: 0.8rem; width: 100%; }
    .auth-buttons .btn { width: 100%; }

    /* Top Bar */
    .top-bar .right-info { display: none; } /* Hide secondary info to save space */
    .top-bar .container { justify-content: center; text-align: center; }

    /* Hero */
    .hero { padding: 3rem 0 6rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-features { flex-direction: column; align-items: center; gap: 0.8rem; }

    /* Search Widget */
    .search-widget { margin-top: -3rem; padding: 1rem; }
    .search-tabs { 
        overflow-x: auto; 
        white-space: nowrap; 
        padding-bottom: 0.5rem; 
        margin-bottom: 1rem; 
        gap: 1.5rem; 
        -webkit-overflow-scrolling: touch;
    }
    /* Hide scrollbar for search tabs */
    .search-tabs::-webkit-scrollbar { display: none; }
    .search-tabs { -ms-overflow-style: none; scrollbar-width: none; }

    .search-form { grid-template-columns: 1fr; gap: 0.5rem; }
    .search-form .input-group { border-right: none; border-bottom: 1px solid var(--border-light); padding-right: 0; padding-bottom: 0.8rem; }
    .search-form .input-group:nth-last-child(2) { border-bottom: none; }

    /* Layout Grids */
    .features-grid, .dest-grid, .guides-grid, .deals-grid { grid-template-columns: 1fr; }
    .trust-stats { flex-direction: column; gap: 2rem; padding: 1.5rem; }
    
    /* Universal Dashboard & Portal Fixes */
    .flex { flex-wrap: wrap !important; }
    .search-tabs { flex-wrap: nowrap !important; }
    .top-bar .container { flex-wrap: wrap !important; }
    .main-header .container { flex-wrap: wrap !important; }
    .nav-wrapper { flex-direction: column !important; align-items: stretch !important; }
    
    /* Fix inline flex elements in dashboards */
    div[style*="flex: 1"], div[style*="flex: 2"] {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }

    /* Fix Trip Designer Vibes Grid */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Tables */
    table { width: 100% !important; display: block; overflow-x: auto; white-space: nowrap; }
    
    /* Essentials Section Mobile */
    .essentials-section { padding: 2rem 1rem !important; margin: 2rem 0 !important; }
    .product-card { min-width: 200px !important; padding: 1rem !important; }

    /* Steps (How it works) */
    .steps-container { flex-direction: column; gap: 2rem; padding: 2rem 0; }
    .step-arrow { transform: rotate(90deg); margin: 1rem 0; }

    /* Footer */
    .footer { padding: 3rem 0 1rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .glass-panel { padding: 1.5rem; }
}
