/* ==========================================================================
   TAIIR - Luxury Flight Booking Platform
   Style Sheet
   Glassmorphism Design System with Golden Ratio
   ========================================================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ======================================== */
:root {
    /* Color Palette - Luxury Dark Theme */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    /* Gold Accents - Primary & Variants */
    --gold-primary: #FFD700;
    --gold-light: #FFE44D;
    --gold-dark: #C9A800;
    --gold-glow: rgba(255, 215, 0, 0.3);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* UI Colors */
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-strong: rgba(255, 255, 255, 0.15);
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.2);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Golden Ratio Typography Scale */
    --font-xs: 0.618rem;
    --font-sm: 0.786rem;
    --font-base: 1rem;
    --font-lg: 1.272rem;      /* φ¹ × base */
    --font-xl: 1.618rem;      /* φ² × base */
    --font-2xl: 2.058rem;     /* φ³ × base */
    --font-3xl: 2.618rem;     /* φ⁴ × base */
    --font-4xl: 3.236rem;     /* φ⁵ × base */
    
    /* Spacing Scale (Golden Ratio) */
    --space-xs: 0.382rem;
    --space-sm: 0.618rem;
    --space-base: 1rem;
    --space-md: 1.272rem;
    --space-lg: 1.618rem;
    --space-xl: 2.058rem;
    --space-2xl: 2.618rem;
    --space-3xl: 3.236rem;
    --space-4xl: 4.236rem;
    
    /* Layout */
    --container-max: 1200px;
    --container-padding: var(--space-lg);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;
}

/* ========================================
   RESET & BASE STYLES
   Critical Rendering Path Optimization
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-primary);
    color: var(--bg-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: var(--space-md);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--font-4xl); }
h2 { font-size: var(--font-3xl); }
h3 { font-size: var(--font-2xl); }
h4 { font-size: var(--font-xl); }
h5 { font-size: var(--font-lg); }
h6 { font-size: var(--font-base); }

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--gold-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--gold-light);
}

/* ========================================
   GLASSMORPHISM UTILITIES
   ======================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
}

.glass-footer {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-top: 1px solid var(--glass-border);
}

.glass-modal {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--bg-primary);
    box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.4);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-glass:hover {
    background: var(--glass-bg-hover);
    border-color: var(--border-glass-strong);
}

/* ========================================
   HEADER
   ======================================== */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    font-size: var(--font-xl);
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    gap: var(--space-md);
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: var(--radius-full);
    color: var(--gold-primary);
    font-size: var(--font-sm);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.home-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
    transition: left var(--transition-slow);
}

.home-button:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25), rgba(255, 215, 0, 0.1));
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
}

.home-button:hover::before {
    left: 100%;
}

.home-button:hover .home-icon {
    transform: scale(1.1);
}

.home-icon {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-base);
}

.home-text {
    position: relative;
    z-index: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-4xl) + var(--space-xl)) var(--space-lg) var(--space-3xl);
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        var(--bg-primary);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FFD700' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    color: var(--gold-primary);
    margin-bottom: var(--space-lg);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-title {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.gold-text {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   WIDGET SECTION - Above the Fold
   ======================================== */
.widget-section {
    padding: 0 var(--space-lg);
    margin-top: calc(var(--space-xl) * -1);
    position: relative;
    z-index: 10;
}

.widget-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-md);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--glass-shadow);
}

/* Widget iframe styling */
.widget-container iframe {
    border-radius: var(--radius-lg);
    width: 100%;
    min-height: 400px;
    display: block;
}



/* ========================================
   FEATURES SECTION
   ======================================== */
.features-section {
    padding: var(--space-3xl) var(--space-lg);
    max-width: var(--container-max);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: var(--font-2xl);
    margin-bottom: var(--space-2xl);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    margin: var(--space-md) auto 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow-gold);
}

.feature-icon {
    font-size: var(--font-3xl);
    margin-bottom: var(--space-md);
}

.feature-title {
    font-size: var(--font-lg);
    margin-bottom: var(--space-sm);
}

.feature-text {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   SEO CONTENT SECTION
   ======================================== */
.seo-content-section {
    padding: var(--space-3xl) var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.seo-content-card {
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.seo-subtitle {
    font-size: var(--font-xl);
    margin-bottom: var(--space-md);
    color: var(--gold-primary);
}

.seo-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.seo-text:last-child {
    margin-bottom: 0;
}

.seo-text strong {
    color: var(--gold-primary);
}

/* ========================================
   TRUST SECTION
   ======================================== */
.trust-section {
    padding: var(--space-3xl) var(--space-lg);
    background: rgba(255, 215, 0, 0.02);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trust-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2xl);
}

.trust-item {
    text-align: center;
}

.trust-number {
    display: block;
    font-size: var(--font-3xl);
    font-weight: 800;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-label {
    font-size: var(--font-sm);
    color: var(--text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */
.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--space-lg);
}

.footer-logo .logo-text {
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: var(--font-sm);
    color: var(--text-muted);
    margin: var(--space-xs) 0 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.footer-link,
.footer-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--font-sm);
    cursor: pointer;
    transition: all var(--transition-base);
}

.footer-link:hover,
.footer-btn:hover {
    background: var(--glass-bg-hover);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.copyright {
    font-size: var(--font-xs);
    color: var(--text-muted);
    margin: 0;
}

/* ========================================
   MODAL OVERLAYS - SPA Behavior
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.modal-overlay:not([hidden]) {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    background: rgba(10, 10, 10, 0.98);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.modal-overlay:not([hidden]) .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.98);
    z-index: 1;
}

.modal-title {
    font-size: var(--font-xl);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: var(--font-xl);
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-close:hover {
    background: var(--glass-bg-hover);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.modal-body {
    padding: var(--space-lg);
    line-height: 1.8;
}

.modal-body h3 {
    font-size: var(--font-xl);
    margin-bottom: var(--space-sm);
    color: var(--gold-primary);
}

.modal-body h4 {
    font-size: var(--font-lg);
    margin: var(--space-lg) 0 var(--space-sm);
    color: var(--text-primary);
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.modal-body p:last-child {
    margin-bottom: 0;
}

.modal-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--glass-border);
    text-align: center;
    position: sticky;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
}

.modal-accept-btn {
    padding: var(--space-md) var(--space-2xl);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
   ======================================== */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    :root {
        --font-xl: 1.4rem;
        --font-2xl: 1.8rem;
        --font-3xl: 2.2rem;
        --font-4xl: 2.8rem;
    }
    
    .hero-title {
        font-size: var(--font-3xl);
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    :root {
        --font-4xl: 3.2rem;
    }
    
    .header-content {
        padding: var(--space-md) var(--space-xl);
    }
    
    .hero-section {
        min-height: 60vh;
        padding: calc(var(--space-4xl) * 2) var(--space-xl) var(--space-3xl);
    }
    
    .widget-section,
    .cta-section,
    .features-section,
    .seo-content-section {
        padding-left: var(--space-xl);
        padding-right: var(--space-xl);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-container {
        gap: var(--space-3xl);
    }
    
    .trust-number {
        font-size: var(--font-4xl);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    :root {
        --font-4xl: 3.6rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cta-card {
        padding: var(--space-3xl);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    :root {
        --font-4xl: 4rem;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --glass-border: rgba(255, 255, 255, 0.3);
        --text-secondary: #ffffff;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .glass-header,
    .glass-footer,
    .modal-overlay,
    .cta-section,
    .trust-section {
        display: none;
    }
    
    .hero-section {
        background: none;
        padding: 0;
        min-height: auto;
    }
    
    .hero-title {
        color: black;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Content visibility for below-the-fold content */
.features-section,
.seo-content-section,
.trust-section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}
