﻿.transit-flight-card {
    background: rgba(26, 29, 46, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(184, 134, 11, 0.2);
}

.transit-flight-header {
    text-align: center;
    margin-bottom: 24px;
}

.transit-flight-number-large {
    font-size: 32px;
    font-weight: 800;
    color: #daa520;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.transit-route-header {
    text-align: center;
    margin-bottom: 32px;
}

.transit-route-title {
    font-size: 24px;
    font-weight: 700;
    color: #f7fafc;
    margin-bottom: 8px;
}

.transit-flight-info {
    text-align: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #a0aec0;
}

.transit-journey-time {
    font-weight: 600;
    color: #e2e8f0;
}

.transit-route-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0;
    position: relative;
    padding: 0 10px;
}

.transit-airport {
    text-align: center;
    flex: 1;
    z-index: 2;
    position: relative;
    max-width: 100px;
}

.transit-airport-code {
    font-size: 28px;
    font-weight: 800;
    color: #f7fafc;
    margin-bottom: 4px;
}

.transit-airport-city {
    font-size: 12px;
    color: #a0aec0;
    font-weight: 500;
}

.transit-airport-time {
    font-size: 18px;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 6px;
}

.transit-airport-date {
    font-size: 11px;
    color: #718096;
    font-weight: 500;
    margin-top: 2px;
}

.transit-stop-indicator {
    position: relative;
    z-index: 3;
}

    .transit-stop-indicator::after {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 12px;
        height: 12px;
        background: #daa520;
        border: 3px solid rgba(26, 29, 46, 0.95);
        border-radius: 50%;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

.transit-origin-indicator::after {
    background: #48bb78;
}

.transit-destination-indicator::after {
    background: #e53e3e;
}

.transit-layover-info {
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
    margin: 16px 0;
    padding: 8px 16px;
    background: rgba(74, 85, 104, 0.2);
    border-radius: 8px;
    display: inline-block;
    width: 100%;
}

.transit-layover-duration {
    font-weight: 600;
    color: #daa520;
}

.transit-button-container {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
}

.transit-flight-button {
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    border: none;
    padding: 16px 24px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .transit-flight-button:hover {
        background: rgba(255, 255, 255, 1);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

.transit-status-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.transit-status-badge {
    background: #e53e3e;
    color: white;
    padding: 12px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

    .transit-status-badge.transit-on-time {
        background: #48bb78;
        box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
    }

.transit-status-badge.arrived {
    background: #27ae60;
    color: white;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.transit-status-badge.delayed {
    background: #e74c3c;
    color: white;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.transit-status-badge.scheduled {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.transit-status-badge.inflight {
    background: #f39c12;
    color: white;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.transit-status-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.transit-date-badge {
    background: rgba(74, 85, 104, 0.3);
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid rgba(160, 174, 192, 0.2);
}

.transit-segments-container {
    margin: 24px 0;
}

.transit-segment {
    margin-bottom: 24px;
}

.transit-segment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #a0aec0;
}

.transit-segment-number {
    background: rgba(218, 165, 32, 0.2);
    color: #daa520;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

@media (max-width: 480px) {
    .transit-flight-card {
        padding: 24px;
        margin: 16px;
    }

    .transit-airport-code {
        font-size: 24px;
    }

    .transit-route-title {
        font-size: 20px;
    }

    .transit-airport-time {
        font-size: 16px;
    }

    .transit-route-container {
        flex-wrap: wrap;
        gap: 20px;
    }

    .transit-airport {
        min-width: 80px;
    }
}
