/* Epic Global Loops - Enhanced Styles */

.epic-hero {
    min-height: 420px;
    background: radial-gradient(circle at 20% 30%, #0a2f44, #05232e);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
    overflow: hidden;
}

.epic-hero::before {
    content: "✈️🌍✨";
    font-size: 220px;
    position: absolute;
    bottom: -40px;
    right: -30px;
    opacity: 0.08;
    pointer-events: none;
    white-space: pre;
}

.streak {
    position: absolute;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), transparent);
    height: 2px;
    width: 100%;
    animation: streakMove 8s linear infinite;
}

.streak:nth-child(1) { top: 15%; left: -100%; animation-delay: 0s; }
.streak:nth-child(2) { top: 35%; left: -100%; animation-delay: 2s; width: 70%; }
.streak:nth-child(3) { top: 55%; left: -100%; animation-delay: 4s; width: 85%; }
.streak:nth-child(4) { top: 75%; left: -100%; animation-delay: 6s; width: 60%; }

@keyframes streakMove {
    0% { left: -100%; opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { left: 100%; opacity: 0; }
}

.ribbon {
    position: absolute;
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 700;
    transform: rotate(-35deg);
    top: 20px;
    left: -35px;
    width: 140px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.epic-hero h1 {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFFFF, #FFE499, #D4AF37);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.epic-badge {
    background: rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 14px;
    color: #D4AF37;
    display: inline-block;
    margin-bottom: 20px;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-radius: 28px;
    padding: 16px 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: #D4AF37;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.search-panel {
    max-width: 1100px;
    margin: -48px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.search-card {
    background: var(--white);
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-lg);
    padding: 28px 32px;
}

.section {
    padding: 60px 24px 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 17px;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

.routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 28px;
    margin: 48px 0;
}

.route-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s;
    border: 1px solid var(--gray-200);
    position: relative;
    cursor: pointer;
}

.route-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.route-ribbon {
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 4px 30px;
    font-size: 11px;
    font-weight: 700;
    transform: rotate(45deg);
    width: 120px;
    text-align: center;
    z-index: 1;
}

.route-header {
    background: linear-gradient(135deg, #0B2B40, #1D7A6B);
    padding: 16px 20px;
    color: white;
}

.route-type {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
}

.route-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.route-stops {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 6px;
}

.route-body {
    padding: 20px;
}

.route-path {
    font-family: monospace;
    font-size: 12px;
    background: var(--gray-50);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
    word-break: break-word;
    line-height: 1.6;
}

.route-path span {
    color: var(--accent-gold);
    font-weight: 600;
}

.route-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--gray-600);
}

.route-price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.price-amount {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-gold);
}

.price-original {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: line-through;
}

.price-save {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.best-month {
    background: #fef3c7;
    color: #d97706;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.search-route-btn {
    background: var(--primary-navy);
    color: white;
    border: none;
    border-radius: 40px;
    padding: 12px 20px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
}

.search-route-btn:hover {
    background: var(--primary-teal);
    transform: translateY(-2px);
}

.info-ribbon {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 16px;
    padding: 20px 24px;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    border-left: 4px solid var(--accent-gold);
}

.info-ribbon-icon {
    font-size: 32px;
}

.info-ribbon-content {
    flex: 1;
}

.info-ribbon-title {
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 4px;
}

.info-ribbon-text {
    font-size: 13px;
    color: var(--gray-600);
}

.info-ribbon-link {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 24px;
}

.faq-item {
    background: var(--gray-50);
    margin-bottom: 14px;
    border-radius: 20px;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.faq-item:hover {
    background: var(--gray-200);
}

.faq-question {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    margin-top: 12px;
    color: var(--gray-600);
    line-height: 1.5;
    display: none;
}

.features {
    background: var(--gray-50);
    border-radius: 32px;
    margin: 20px 24px 0;
    padding: 48px 32px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.feature-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-navy);
}

.feature p {
    color: var(--gray-600);
    font-size: 14px;
}

@media (max-width: 768px) {
    .epic-hero h1 { font-size: 32px; }
    .stats-grid { gap: 16px; }
    .features-grid { grid-template-columns: 1fr; gap: 32px; }
    .routes-grid { grid-template-columns: 1fr; }
    .info-ribbon { flex-direction: column; text-align: center; }
    .search-card { padding: 20px; }
}