/* ====================================
   CLEAN NEUTRAL DESIGN SYSTEM
   Sleek, minimal aesthetics with excellent mobile support
   ==================================== */

:root {
    /* Neutral Color Palette */
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    
    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-blue-dark: #2563eb;
    
    /* Functional Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: var(--neutral-50);
    --bg-tertiary: var(--neutral-100);
    
    /* Text */
    --text-primary: var(--neutral-900);
    --text-secondary: var(--neutral-600);
    --text-tertiary: var(--neutral-400);
    
    /* Borders & Shadows */
    --border-light: 1px solid var(--neutral-200);
    --border-medium: 1px solid var(--neutral-300);
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --space-unit: 0.5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme overrides for Replit */
[data-bs-theme="dark"] {
    --bg-primary: var(--neutral-900);
    --bg-secondary: var(--neutral-800);
    --bg-tertiary: var(--neutral-700);
    --text-primary: var(--neutral-50);
    --text-secondary: var(--neutral-300);
    --text-tertiary: var(--neutral-500);
    --border-light: 1px solid var(--neutral-800);
    --border-medium: 1px solid var(--neutral-700);
}

/* ====================================
   GLOBAL RESETS & BASE STYLES
   ==================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====================================
   NAVIGATION
   ==================================== */

.navbar {
    background: var(--bg-primary) !important;
    border-bottom: var(--border-light);
    padding: 1rem 0;
    transition: all var(--transition-base);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-base);
}

.nav-link:hover {
    color: var(--accent-blue) !important;
}

/* ====================================
   HERO SECTION
   ==================================== */

.hero-section {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    padding: 6rem 0 4rem;
    min-height: auto;
}

[data-bs-theme="dark"] .hero-section {
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-800) 100%);
}

.hero-section h1 {
    color: var(--text-primary) !important;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-section .lead {
    color: var(--text-secondary) !important;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero-section .text-info {
    color: var(--accent-blue) !important;
    font-weight: 600;
}

/* Stats Cards */
.stats-card {
    background: var(--bg-primary);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    transition: all var(--transition-base);
}

.stats-card:hover {
    border-color: var(--neutral-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.stats-card .h4 {
    color: var(--accent-blue) !important;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stats-card small {
    color: var(--text-secondary) !important;
    font-size: 0.75rem;
}

/* Hero SVG */
.hero-svg {
    max-width: 100%;
    height: auto;
    opacity: 0.9;
}

/* ====================================
   BUTTONS
   ==================================== */

.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-base);
    border: none;
}

.btn-primary {
    background: var(--accent-blue) !important;
    color: white !important;
    padding: 0.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-blue-dark) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
}

.btn-success {
    background: var(--success) !important;
    color: white !important;
}

.btn-outline-info {
    border: 1.5px solid var(--info);
    color: var(--info) !important;
    background: transparent;
}

.btn-outline-info:hover {
    background: var(--info) !important;
    color: white !important;
}

/* ====================================
   FEATURE CARDS
   ==================================== */

.feature-card {
    background: var(--bg-primary);
    border: var(--border-light);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-slow);
    height: 100%;
}

.feature-card:hover {
    border-color: var(--neutral-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--neutral-100);
    margin-bottom: 1rem;
    transition: all var(--transition-base);
}

[data-bs-theme="dark"] .feature-icon {
    background: var(--neutral-800);
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
}

.feature-icon i {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-card h4 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ====================================
   TRUST MARKERS & TESTIMONIALS
   ==================================== */

#trustMarkersCarousel {
    min-height: 60px;
}

.trust-marker-win .h5 {
    color: var(--success) !important;
    font-weight: 600;
}

.trust-marker-testimonial {
    text-align: center;
}

.trust-marker-testimonial .stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Recent Wins Ticker */
.recent-wins-ticker {
    padding: 1rem 0;
    overflow: hidden;
}

.wins-scroll-container {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.wins-scroll-track {
    display: flex;
    gap: 1rem;
    animation: scroll-wins 30s linear infinite;
}

@keyframes scroll-wins {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.win-badge .badge {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Testimonial Cards */
.testimonial-card {
    background: var(--bg-primary);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all var(--transition-base);
    height: 100%;
}

.testimonial-card:hover {
    border-color: var(--neutral-300);
    box-shadow: var(--shadow-md);
}

.testimonial-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
}

/* ====================================
   HOW IT WORKS SECTION
   ==================================== */

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    color: white;
    box-shadow: var(--shadow-md);
}

/* ====================================
   CTA SECTION
   ==================================== */

.cta-section {
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
    padding: 4rem 0;
}

[data-bs-theme="dark"] .cta-section {
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-700) 100%);
}

.cta-section h2 {
    color: var(--text-primary) !important;
    font-weight: 700;
}

.cta-section .lead {
    color: var(--text-secondary) !important;
}

.cta-section small {
    color: var(--text-tertiary) !important;
}

/* ====================================
   DASHBOARD STYLES
   ==================================== */

.card {
    background: var(--bg-primary);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-sm);
}

.card-body {
    padding: 1.5rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-dark) 100%) !important;
}

/* Destination Tracker */
.destination-tracker-section {
    background: var(--bg-secondary) !important;
    border: var(--border-light) !important;
}

.destination-card {
    background: var(--bg-primary);
    border: var(--border-light);
    transition: all var(--transition-base);
}

.destination-card:hover {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Input Groups */
.input-group-text {
    background: var(--accent-blue);
    color: white;
    border: none;
}

.form-control {
    border: var(--border-medium);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

/* ====================================
   ALERTS
   ==================================== */

.alert {
    border-radius: var(--radius-md);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.alert-info {
    background: rgba(6, 182, 212, 0.1);
    color: var(--info);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

/* ====================================
   BADGES
   ==================================== */

.badge {
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
}

.badge.bg-warning {
    background: var(--warning) !important;
}

.badge.bg-info {
    background: var(--info) !important;
}

.badge.bg-success {
    background: var(--success) !important;
}

.badge.bg-primary {
    background: var(--accent-blue) !important;
}

/* ====================================
   MOBILE OPTIMIZATIONS
   ==================================== */

@media (max-width: 768px) {
    /* Hero */
    .hero-section {
        padding: 3rem 0 2rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Buttons */
    .btn-lg {
        width: 100%;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
    }
    
    /* Cards */
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1.25rem !important;
    }
    
    /* Stats */
    .stats-card {
        padding: 0.875rem !important;
    }
    
    .stats-card .h4 {
        font-size: 1.25rem !important;
    }
    
    /* Navigation */
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
    
    /* Spacing */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Input Groups */
    .input-group .form-control {
        font-size: 1rem !important;
        padding: 0.875rem 1rem !important;
        min-height: 48px;
    }
    
    .input-group-text {
        padding: 0.875rem 1rem !important;
    }
    
    /* Quick Destination Buttons */
    .quick-destination {
        font-size: 0.875rem !important;
        padding: 0.625rem 1rem !important;
        min-height: 44px !important;
        touch-action: manipulation;
    }
    
    /* Destination Cards */
    .destination-card .card-body {
        padding: 1rem !important;
    }
    
    .destination-card h6 {
        font-size: 1rem !important;
    }
    
    /* Better mobile spacing */
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 1.75rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .step-number {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

/* ====================================
   TOUCH-FRIENDLY INTERACTIONS
   ==================================== */

.btn,
.quick-destination,
.form-control,
.nav-link,
.dropdown-toggle {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn:active,
.quick-destination:active {
    transform: scale(0.98);
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

*:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.btn:focus-visible,
.form-control:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* ====================================
   UTILITIES
   ==================================== */

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

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-muted {
    color: var(--text-tertiary) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.border-0 {
    border: none !important;
}
