/**
 * Flight Card component styles
 *
 * @package MBM_Theme
 * @since 1.0.0
 */

.flight-card {
    position: relative;
    width: 355px;
    min-height: 650px;
    border-radius: 28px;
    border: 1px solid rgb(255 255 255 / 18%);
    background: radial-gradient(72% 42% at 50% 0%, rgb(255 255 255 / 12%) 0%, rgb(255 255 255 / 0%) 70%), linear-gradient(180deg, #0d111800 0%, #05070c0f 100%);
    color: #d8deea;
    box-shadow: 0 34px 58px rgb(0 0 0 / 21%), inset 0 1px 0 rgb(255 255 255 / 8%);
    overflow: hidden;
    background: #0e0239;
    max-width: 100%;
}

@media (min-width: 1400px) {
    .flight-card {
        width: min(100%, 355px);
    }
}

.flight-card__glow {
    position: absolute;
    inset: -30% -20% auto -20%;
    height: 52%;
    background: radial-gradient(circle at center, rgb(255 255 255 / 14%) 0%, rgb(255 255 255 / 0%) 75%);
    pointer-events: none;
    animation: cardGlowPulse 4.2s ease-in-out infinite;
}

.flight-card__inner {
    position: relative;
    z-index: 1;
    padding: 1rem 1rem 0.95rem;
}

.flight-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.flight-card__logo {
    width: 145px;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.flight-card__status-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
}

.flight-card__status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #ffffff;
    background: linear-gradient(180deg, #36d588 0%, #0c5c31 100%);
}

.flight-card__status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
}

.flight-card__flight-no {
    color: #9ea6ba;
    font-size: 0.8rem;
    font-weight: 600;
}

.flight-card__route {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
}

.flight-card__airport {
    border-radius: 16px;
    background: rgb(255 255 255 / 8%);
    padding: 0.72rem;
}

.flight-card__label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #8e95a7;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
}

.flight-card__label img {
    width: 11px;
    height: 11px;
    opacity: 0.9;
}

.flight-card__iata {
    color: var(--la-gold-40);
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 0.35rem;
    letter-spacing: 0.04em;
    font-weight: 400;
}

.flight-card__code-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.flight-card__flag {
    font-size: 1.05rem;
    line-height: 1;
}

.flight-card__city {
    color: #8d93a4;
    font-size: 0.78rem;
}

.flight-card__duration-block {
    text-align: center;
    min-width: 100px;
}

.flight-card__arc {
    width: 116px;
    height: auto;
    display: block;
    margin: 0 auto -0.35rem;
}

.flight-card__arc .white {
    stroke: #ffffff;
    stroke-width: 10;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: bevel;
    stroke-dasharray: 25 25;
    animation: arcWhiteDash 4.6s linear infinite;
}

.flight-card__arc .green {
    stroke: #cb8c00;
    stroke-width: 20;
    fill: none;
    stroke-linecap: round;
    animation: arcProgressPulse 3.8s ease-in-out infinite;
}

.flight-card__duration {
    color: #c3cada;
    font-size: 0.95rem;
    font-weight: 600;
}

.flight-card__eta {
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #cb8c00;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.flight-card__eta-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cb8c00;
}

.flight-card__eta-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid #eca20096;
    /* animation: etaPulse 1.4s ease-in-out infinite; */
    animation: etaPulse 1.3s cubic-bezier(0, 0, 0.25, 1) infinite;
}

.flight-card__stats {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    text-align: center;
}

.flight-card__stat-label {
    display: block;
    color: #8a90a2;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
}

.flight-card__stat-value {
    display: block;
    color: #d2d7e2;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.2rem;
}

.flight-card__plane-wrap {
    position: relative;
    margin-top: 1.15rem;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
}

.flight-card__plane {
    position: relative;
    z-index: 2;
    width: 250px;
    height: auto;
    opacity: 0.98;
    filter: drop-shadow(0 14px 28px rgb(0 0 0 / 55%));
    animation: planeFloat 3.8s ease-in-out infinite;
}

.flight-card__cloud {
    position: absolute;
    z-index: 1;
    width: 120px;
    height: 36px;
    object-fit: contain;
    display: block;
    opacity: 0.65;
    pointer-events: none;
}

.flight-card__cloud--one {
    left: -34%;
    right: auto;
    bottom: 30px;
    animation: cloudMoveA 6s linear infinite;
}

.flight-card__cloud--two {
    left: -42%;
    right: auto;
    bottom: 170px;
    width: 120px;
    opacity: 1;
    animation: cloudMoveB 13s linear infinite;
}

.flight-card__aircraft-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    color: #6f778b;
    font-size: 0.75rem;
    margin-top: -0.2rem;
}

.flight-card__aircraft-title img {
    width: auto;
    height: 11px;
    flex-shrink: 0;
    opacity: 1;
    filter: brightness(2.5) contrast(0);
}

.flight-card__aircraft {
    text-align: center;
    color: #cb8c00;
    font-size: 0.86rem;
    margin-top: 0.2rem;
}

.flight-card__footer {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.flight-card__footer-item {
    border-radius: 14px;
    background: rgb(255 255 255 / 11%);
    text-align: center;
    padding: 0.45rem 0.35rem;
}

.flight-card__footer-label {
    display: block;
    color: #8d95a7;
    font-size: 0.68rem;
}

.flight-card__footer-value {
    display: block;
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.flight-card__features {
    margin-top: 0.9rem;
    justify-content: space-between;
    color: #7e8598;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;
}

.flight-card__feature {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.flight-card__feature img {
    width: auto;
    height: 10px;
    flex-shrink: 0;
    opacity: 0.9;
}
/* 
@keyframes etaPulse {
    0% { transform: scale(0.8); opacity: 0.8; }
    70% { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1.25); opacity: 0; }
} */


@keyframes etaPulse {
    from {
      transform: scale(1);
      opacity: 1;
    }
    to {
      transform: scale(2);
      opacity: 0;
    }
  }


@keyframes arcWhiteDash {
    from { stroke-dashoffset: 1000; }
    to { stroke-dashoffset: 0; }
}

@keyframes arcProgressPulse {
    0% { opacity: 1; }
    50% { opacity: 1; }
    100% { opacity: 1; }
}

@keyframes cloudMoveA {
    0% { transform: translateX(0) scale(2.9); opacity: 0; }
    10% { opacity: 0.55; }
    70% { opacity: 0.45; }
    100% { transform: translateX(430px) scale(2.78); opacity: 0; }
}

@keyframes cloudMoveB {
    0% { transform: translateX(0) scale(1.92) scaleX(-1); opacity: 0; }
    12% { opacity: 0.25; }
    75% { opacity: 0.15; }
    100% { transform: translateX(460px) scale(2.1) scaleX(-1); opacity: 0; }
}

@keyframes planeFloat {
    0% { transform: translate3d(0, 0, 0) scaleX(-1) rotate(3.8deg); }
    50% { transform: translate3d(0, -10px, 0) scaleX(-1) rotate(4.4deg); }
    100% { transform: translate3d(0, 0, 0) scaleX(-1) rotate(3.8deg); }
}

@keyframes cardGlowPulse {
    0% { opacity: 0.5; }
    50% { opacity: 0.9; }
    100% { opacity: 0.5; }
}


@media (max-width: 560px) {
    .flight-card {
        max-width: 100%;
    }
}