/**
 * Airplane Banner Carousel - Complete Styles
 * Exact animation: Plane flies in from left with banner, hovers, exits right on click/swipe
 */

/* WRAPPER */
.airplane-banner-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    background: linear-gradient(180deg, #F8FAFB 0%, #FFFFFF 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* AIRPLANE */
.airplane-plane {
    position: absolute;
    left: -350px;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: 150px;
    z-index: 100;
    will-change: transform, left;
    transition: left 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.airplane-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

.propeller {
    animation: spin 0.08s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.exhaust-trail circle {
    animation: exhaustPuff 2s ease-in-out infinite;
}

.exhaust-trail circle:nth-child(1) { animation-delay: 0s; }
.exhaust-trail circle:nth-child(2) { animation-delay: 0.3s; }
.exhaust-trail circle:nth-child(3) { animation-delay: 0.6s; }

@keyframes exhaustPuff {
    0% { opacity: 0; transform: translateX(0) scale(0.8); }
    50% { opacity: 0.3; transform: translateX(-20px) scale(1); }
    100% { opacity: 0; transform: translateX(-40px) scale(0.6); }
}

.airplane-plane.fly-in {
    left: calc(50% - 700px);
}

.airplane-plane.hovering {
    animation: planeHover 4s ease-in-out infinite;
}

@keyframes planeHover {
    0%, 100% { transform: translateY(-50%) translateX(0) rotate(0deg); }
    25% { transform: translateY(-48%) translateX(8px) rotate(2deg); }
    50% { transform: translateY(-52%) translateX(0) rotate(0deg); }
    75% { transform: translateY(-48%) translateX(-8px) rotate(-2deg); }
}

.airplane-plane.fly-out {
    left: calc(100% + 350px);
    transition: left 1.8s cubic-bezier(0.6, 0, 0.8, 1);
}

/* BANNER ROPE */
.banner-rope {
    position: absolute;
    left: calc(50% - 450px);
    top: 50%;
    width: 300px;
    height: 100px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s ease, left 2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    pointer-events: none;
}

.banner-rope.visible { opacity: 1; }
.banner-rope.rope-fly-in { left: calc(50% - 450px); }
.banner-rope.rope-fly-out {
    left: calc(100% + 100px);
    transition: left 1.8s cubic-bezier(0.6, 0, 0.8, 1), opacity 0.3s ease;
}

.banner-rope svg path {
    animation: ropeDash 30s linear infinite;
}

@keyframes ropeDash {
    to { stroke-dashoffset: -200; }
}

/* BANNER CARDS */
.banner-cards-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.banner-card {
    position: absolute;
    width: 100%;
    max-width: 550px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 56px 48px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(164, 177, 185, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-200%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.banner-card.card-fly-in {
    animation: cardFlyIn 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cardFlyIn {
    0% { opacity: 0; transform: translateX(-200%); }
    100% { opacity: 1; transform: translateX(0); }
}

.banner-card.card-fly-out {
    animation: cardFlyOut 1.8s cubic-bezier(0.6, 0, 0.8, 1) forwards;
}

@keyframes cardFlyOut {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(200%); }
}

.banner-card-inner { text-align: center; }

.banner-icon {
    font-size: 72px;
    margin-bottom: 24px;
    animation: iconFloat 3.5s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

.banner-title {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 500;
    color: #1A1D21;
    margin: 0 0 20px;
    line-height: 1.2;
}

.banner-description {
    font-size: 17px;
    color: #6B7280;
    line-height: 1.7;
    margin: 0 0 32px;
}

.banner-features {
    list-style: none;
    padding: 0;
    margin: 32px 0;
    text-align: left;
}

.banner-features li {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    font-size: 16px;
    color: #2C3338;
    font-weight: 500;
}

.banner-features li svg {
    flex-shrink: 0;
}

.banner-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    background: #a4b1b9;
    color: white;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(164, 177, 185, 0.3);
    margin-top: 16px;
}

.banner-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(164, 177, 185, 0.5);
}

/* NAVIGATION */
.banner-controls {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 200;
}

.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(164, 177, 185, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2C3338;
    pointer-events: all;
    z-index: 201;
}

.banner-nav:hover {
    background: #a4b1b9;
    color: white;
    border-color: #a4b1b9;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 24px rgba(164, 177, 185, 0.4);
}

.banner-prev { left: 32px; }
.banner-next { right: 32px; }

.banner-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    pointer-events: all;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(164, 177, 185, 0.25);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.indicator:hover {
    background: rgba(164, 177, 185, 0.5);
    transform: scale(1.25);
}

.indicator.active {
    background: #a4b1b9;
    width: 36px;
    border-radius: 7px;
    box-shadow: 0 0 20px rgba(164, 177, 185, 0.6);
}

/* LOADING */
.banner-loading {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 251, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.airplane-banner-wrapper.loaded .banner-loading {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(164, 177, 185, 0.2);
    border-top-color: #a4b1b9;
    border-radius: 50%;
    animation: spinLoader 0.8s linear infinite;
}

@keyframes spinLoader {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .airplane-banner-wrapper { min-height: 500px; padding: 60px 20px; }
    .airplane-plane { width: 180px; height: 90px; left: -220px; }
    .airplane-plane.fly-in { left: calc(50% - 400px); }
    .banner-card { padding: 36px 28px; }
    .banner-title { font-size: 24px; }
    .banner-nav { width: 48px; height: 48px; }
    .banner-prev { left: 16px; }
    .banner-next { right: 16px; }
}

@media (max-width: 480px) {
    .airplane-plane { width: 150px; height: 75px; }
    .banner-card { padding: 28px 24px; }
    .banner-title { font-size: 20px; }
    .banner-nav { width: 44px; height: 44px; }
}

/* ACCESSIBILITY */
.banner-nav:focus, .indicator:focus {
    outline: 3px solid #a4b1b9;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .airplane-plane, .banner-card, .propeller, .banner-icon, 
    .exhaust-trail circle, .banner-rope svg path {
        animation: none !important;
    }
    .airplane-plane { transition: left 0.5s ease !important; }
}
