/**
 * Airports Pages Stylesheet
 * =========================
 * Custom styling for "Ski Resorts Near [Airport]" pages
 * Uses .airports-* namespace to prevent collisions
 */

/* ==========================================================================
   CSS Variables (Airports-specific)
   ========================================================================== */
:root {
    --airports-max-width: 1200px;
    --airports-accent: #0066cc;
    --airports-accent-hover: #0052a3;
    --airports-text: #1a2a3a;
    --airports-text-light: #5a6a7a;
    --airports-bg: #f0f5f9;
    --airports-surface: #ffffff;
    --airports-border: #d0dde8;
    --airports-gradient-start: #1e3a5f;
    --airports-gradient-end: #3498db;
}

/* ==========================================================================
   Airports Page Container
   ========================================================================== */
.airports-page {
    padding: 0 2rem 4rem;
    max-width: var(--airports-max-width);
    margin: 0 auto;
}

/* ==========================================================================
   Airports Hero Header
   ========================================================================== */
.airports-hero {
    background: linear-gradient(135deg, var(--airports-gradient-start) 0%, var(--airports-gradient-end) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.airports-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 20 L60 40 L80 50 L60 60 L50 80 L40 60 L20 50 L40 40 Z' fill='%23ffffff' fill-opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

.airports-hero h1 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.airports-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Inline header styling fallback */
.airports-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-top: 2rem;
}

.airports-header h1 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--airports-text);
    margin-bottom: 0.5rem;
}

.airports-header p {
    color: var(--airports-text-light);
    font-size: 1.1rem;
}

/* ==========================================================================
   Airports Grid
   ========================================================================== */
.airports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* ==========================================================================
   Airport Card
   ========================================================================== */
.airport-card {
    display: block;
    background: linear-gradient(135deg, var(--airports-gradient-start), var(--airports-gradient-end));
    color: white;
    padding: 1.75rem;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(26, 58, 92, 0.2);
}

/* Plane icon decoration */
.airport-card::before {
    content: '✈';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.2;
    transition: all 0.3s ease;
}

.airport-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(26, 58, 92, 0.35);
    color: white;
}

.airport-card:hover::before {
    opacity: 0.4;
    transform: translateX(4px) translateY(-4px);
}

.airport-card h3 {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: white;
    position: relative;
    z-index: 1;
}

.airport-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* Card color variations by region */
.airport-card[href*="denver"],
.airport-card[href*="eagle-vail"],
.airport-card[href*="aspen"] {
    background: linear-gradient(135deg, #1a365d, #3182ce);
}

.airport-card[href*="salt-lake"],
.airport-card[href*="jackson"] {
    background: linear-gradient(135deg, #2d3748, #4a5568);
}

.airport-card[href*="reno"],
.airport-card[href*="san-francisco"] {
    background: linear-gradient(135deg, #1e4d6b, #2980b9);
}

.airport-card[href*="bozeman"] {
    background: linear-gradient(135deg, #22543d, #38a169);
}

.airport-card[href*="burlington"],
.airport-card[href*="boston"] {
    background: linear-gradient(135deg, #44337a, #805ad5);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .airports-hero {
        padding: 3rem 1.5rem;
    }

    .airports-page {
        padding: 0 1.5rem 3rem;
    }

    .airports-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .airport-card {
        padding: 1.5rem;
    }

    .airport-card h3 {
        font-size: 1.15rem;
    }

    .airport-card::before {
        font-size: 1.5rem;
    }
}