/**
 * Airport Details Screen Styles
 * Magic UI MCP optimized design
 */

/* Retro Grid Background */
.retro-grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
    perspective: 200px;
    pointer-events: none;
    z-index: 0;
}

.retro-grid-background::after {
    content: '';
    position: absolute;
    inset: 0% 0px;
    margin-left: -200%;
    height: 300vh;
    width: 600vw;
    transform-origin: 100% 0 0;
    transform: rotateX(65deg);
    background-image: 
        linear-gradient(to right, rgba(144, 202, 249, 0.3) 1px, transparent 0),
        linear-gradient(to bottom, rgba(144, 202, 249, 0.3) 1px, transparent 0);
    background-size: 60px 60px;
    background-repeat: repeat;
    animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
    0% {
        transform: rotateX(65deg) translateY(0);
    }
    100% {
        transform: rotateX(65deg) translateY(-60px);
    }
}

/* Hero Section with Meteors */
.airport-details-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 100px 20px;
    text-align: center;
    margin-bottom: 60px;
    overflow: hidden;
    z-index: 1;
}

.meteors-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.meteor {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.4);
    animation: meteor-fall linear infinite;
}

.meteor::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), transparent);
}

.meteor-1 {
    top: -5%;
    left: 10%;
    animation-duration: 8s;
    animation-delay: 0s;
}

.meteor-2 {
    top: -5%;
    left: 40%;
    animation-duration: 6s;
    animation-delay: 2s;
}

.meteor-3 {
    top: -5%;
    left: 70%;
    animation-duration: 7s;
    animation-delay: 1s;
}

.meteor-4 {
    top: -5%;
    left: 25%;
    animation-duration: 9s;
    animation-delay: 3s;
}

.meteor-5 {
    top: -5%;
    left: 85%;
    animation-duration: 5s;
    animation-delay: 4s;
}

@keyframes meteor-fall {
    0% {
        transform: rotate(-45deg) translateX(0) translateY(0);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: rotate(-45deg) translateX(600px) translateY(600px);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(
        90deg,
        var(--text-primary) 0%,
        var(--accent-color-1) 20%,
        var(--accent-color-2) 40%,
        var(--accent-color-1) 60%,
        var(--text-primary) 80%,
        var(--text-primary) 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
    filter: drop-shadow(0 0 30px rgba(144, 202, 249, 0.5));
}

@keyframes shimmer {
    0% {
        background-position: 200% center;
    }
    100% {
        background-position: -200% center;
    }
}

.hero-subtitle {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-top: 15px;
    font-weight: 500;
}

.animated-fade-in {
    animation: fadeIn 1.2s ease-in-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Neon Cards */
.airport-details-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.neon-card {
    position: relative;
    padding: 35px 30px;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(144, 202, 249, 0.15);
}

.neon-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 0 25px rgba(144, 202, 249, 0.5),
        0 0 50px rgba(144, 202, 249, 0.3),
        0 25px 70px rgba(0, 0, 0, 0.6);
    border-color: rgba(144, 202, 249, 0.7);
}

.neon-border {
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(
        135deg,
        var(--accent-color-1),
        var(--accent-color-2),
        var(--accent-color-1)
    );
    background-size: 300% 300%;
    animation: neon-rotate 6s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(8px);
}

.neon-card:hover .neon-border {
    opacity: 0.8;
}

@keyframes neon-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.card-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.info-label {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 600;
    opacity: 0.9;
}

.info-value {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px rgba(144, 202, 249, 0.4));
}

/* Shimmer Divider */
.section-divider {
    height: 2px;
    margin: 60px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.shimmer-divider {
    background: linear-gradient(90deg, transparent, rgba(144, 202, 249, 0.3), transparent);
}

.shimmer-divider::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -100%;
    width: 50%;
    height: 4px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(144, 202, 249, 1),
        transparent
    );
    animation: shimmer-slide 4s ease-in-out infinite;
    filter: blur(2px);
}

@keyframes shimmer-slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(400%);
    }
}

/* Animated Gradient Text */
.gradient-text-animated {
    background: linear-gradient(
        90deg,
        var(--accent-color-1) 0%,
        var(--accent-color-2) 50%,
        var(--accent-color-1) 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 5s ease infinite;
    font-weight: 700;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

/* Table Containers with Border Beam */
.info-table-container,
.routes-table-container {
    position: relative;
    border-radius: 12px;
    padding: 2px;
    background: rgba(20, 20, 30, 0.5);
    margin: 30px 0;
    overflow: hidden;
}

.border-beam,
.border-beam-secondary {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent-color-1),
        var(--accent-color-2),
        transparent
    );
    animation: beam-travel 4s linear infinite;
    pointer-events: none;
    opacity: 0.6;
}

.border-beam-secondary {
    animation-delay: 2s;
}

@keyframes beam-travel {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.cell-label {
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: 0.9rem;
}

.cell-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
}

/* Route Count Badge */
.route-count-badge {
    display: inline-block;
    margin-left: 15px;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: var(--background-primary);
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(144, 202, 249, 0.4);
    animation: pulse-glow 2.5s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(144, 202, 249, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 5px 35px rgba(144, 202, 249, 0.7);
        transform: scale(1.05);
    }
}

/* Shine on Hover Effect */
.shine-on-hover {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.shine-on-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(144, 202, 249, 0.2),
        transparent
    );
    transition: left 0.6s ease;
}

.shine-on-hover:hover::after {
    left: 150%;
}

.shine-on-hover:hover {
    background-color: rgba(144, 202, 249, 0.05);
}

/* Direct Badge */
.direct-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(34, 197, 94, 0.25);
    color: var(--success-color);
    border-radius: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.no-routes-message {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 60px 20px;
    background: rgba(20, 20, 30, 0.4);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Airline Stats Grid */
.airline-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0 40px 0;
    position: relative;
    z-index: 1;
}

.airline-stat-card {
    position: relative;
    padding: 25px 20px;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(144, 202, 249, 0.15);
    text-align: center;
}

.airline-stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 0 20px rgba(144, 202, 249, 0.5),
        0 0 40px rgba(144, 202, 249, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.6);
    border-color: rgba(144, 202, 249, 0.6);
}

.card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(
        135deg,
        var(--accent-color-1),
        var(--accent-color-2),
        var(--accent-color-1)
    );
    background-size: 300% 300%;
    animation: neon-rotate 6s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
}

.airline-stat-card:hover .card-glow {
    opacity: 0.7;
}

.airline-name-display {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.airline-code-display {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.flight-count-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.count-number {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    filter: drop-shadow(0 0 15px rgba(144, 202, 249, 0.3));
}

.count-label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .airport-details-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .info-value {
        font-size: 1.8rem;
    }

    .neon-card {
        padding: 25px 20px;
    }

    .airline-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .airline-name-display {
        font-size: 1.1rem;
    }

    .airline-code-display {
        font-size: 0.9rem;
    }

    .count-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .airport-details-hero {
        padding: 60px 15px;
    }

    .hero-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .airport-details-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .info-value {
        font-size: 2rem;
    }

    .airline-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .airline-name-display {
        font-size: 1rem;
    }

    .airline-code-display {
        font-size: 0.85rem;
    }

    .count-number {
        font-size: 1.5rem;
    }

    .route-count-badge {
        display: block;
        margin: 15px auto 0;
        text-align: center;
        width: fit-content;
    }

    .meteor::before {
        width: 50px;
    }
}

