/**
 * AerialMedia Reusable Components
 * Nordic Blue Theme - Flat Design System
 *
 * This file contains common UI patterns extracted from templates
 * to reduce duplication and maintain consistency.
 */

/* ============================================
   DESIGN TOKENS & CSS VARIABLES
   ============================================ */

:root {
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'DM Sans', -apple-system, sans-serif;

    /* Nordic Blue Color Palette */
    --color-primary: #2563EB;
    --color-primary-dark: #1E40AF;
    --color-primary-light: #60A5FA;
    --color-secondary: #93C5FD;
    --color-sky: #E0F2FE;

    /* Semantic Colors */
    --color-success: #10B981;
    --color-error: #EF4444;
    --color-warning: #F59E0B;

    /* Neutrals */
    --color-neutral-900: #111827;
    --color-neutral-800: #1F2937;
    --color-neutral-700: #374151;
    --color-neutral-600: #4B5563;
    --color-neutral-500: #6B7280;
    --color-neutral-400: #9CA3AF;
    --color-neutral-100: #F3F4F6;

    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
}


/* ============================================
   HERO SECTIONS
   ============================================ */

.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0F172A;
}

.hero-overlay,
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    padding: 2rem;
    max-width: 64rem;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 0.9;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.8);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #E2E8F0;
}

/* Ken Burns Animation */
@keyframes kenBurns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.2) translate(-5%, -5%);
    }
}

.ken-burns-effect {
    animation: kenBurns 20s ease-in-out infinite alternate;
    transform-origin: center center;
    will-change: transform;
}


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

.btn-primary,
.btn-aerial-primary {
    background: var(--color-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover,
.btn-aerial-primary:hover {
    background: #F59E0B;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
}

.btn-primary:focus,
.btn-aerial-primary:focus {
    background: #F59E0B;
    color: white;
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.btn-primary:active,
.btn-aerial-primary:active {
    background: #D97706;
    color: white;
    transform: translateY(0);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid #E5E7EB;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-ghost {
    background: transparent;
    color: #6B7280;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-ghost:hover {
    background: #F3F4F6;
    color: #111827;
}

.btn-aerial-outline {
    background: transparent;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    border: 2px solid white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
}

.btn-aerial-outline:hover {
    background: white;
    color: var(--color-primary);
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}


/* ============================================
   TOUR CARDS
   ============================================ */

.tour-card-premium {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tour-card-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.tour-card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.tour-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tour-card-premium:hover .tour-card-image {
    transform: scale(1.1);
}

.tour-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: #F59E0B;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.tour-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tour-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.tour-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.tour-card-description {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tour-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
    margin-top: auto;
}

.tour-card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.tour-card-price-label {
    font-size: 0.75rem;
    color: #6B7280;
}


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

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(229, 231, 235, 0.5);
    overflow: hidden;
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: rgba(37, 99, 235, 0.03);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
    border-color: #60A5FA;
}

.feature-card__icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 28px;
    background: var(--color-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 16px -6px rgba(37, 99, 235, 0.3);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card__icon svg {
    width: 42px;
    height: 42px;
    color: white;
}

.feature-card__title {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.feature-card__description {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.65;
}


/* ============================================
   SECTION HEADERS
   ============================================ */

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #111827;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: #6B7280;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.01em;
}


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

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-elevated {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-interactive {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-interactive:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}

.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--color-primary);
}


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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.badge-primary {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FED7AA;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-neutral {
    background: #F3F4F6;
    color: #374151;
}


/* ============================================
   INSTRUCTOR/TEAM CARDS
   ============================================ */

.instructor-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.instructor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.instructor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
    border-color: #DBEAFE;
}

.instructor-card__avatar {
    width: 140px;
    height: 140px;
    margin: 0 auto 24px;
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.08);
}

.instructor-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.instructor-card:hover .instructor-card__avatar img {
    transform: scale(1.1);
}

.instructor-card__name {
    font-family: var(--font-accent);
    font-size: 1.625rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 6px;
}

.instructor-card__role {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.instructor-card__bio {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #6B7280;
    line-height: 1.65;
    margin-bottom: 24px;
}

.instructor-card__stats {
    display: flex;
    justify-content: center;
    gap: 36px;
    padding-top: 24px;
    border-top: 2px solid rgba(229, 231, 235, 0.8);
}

.instructor-card__stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.instructor-card__stat-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.instructor-card__stat-label {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #6B7280;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}


/* ============================================
   FILTERS
   ============================================ */

.filter-sidebar {
    background: white;
}

.filter-group {
    padding: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.filter-title {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #374151;
    margin-bottom: 1rem;
}


/* ============================================
   STATS
   ============================================ */

.stat-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Fix hero sections to compensate for navbar height on mobile */
    .hero-aerial,
    .hero-section,
    .hero-parallax {
        padding-top: 80px;
        min-height: var(--viewport-height, calc(100vh - 80px));
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }

    .section-title {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }

    .feature-card,
    .instructor-card {
        padding: 32px 24px;
    }

    .tour-card-image-wrapper {
        height: 200px;
    }
}
