/**
 * Travelnet Banner – top notification bar
 */

.tn-banner {
    --tn-blue: #0b3c6d;
    --tn-blue-dark: #061f3a;
    --tn-cyan: #00c6d5;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #fff;
    background: linear-gradient(135deg, var(--tn-blue-dark) 0%, var(--tn-blue) 55%, #0e5a9e 100%);
    border-bottom: 2px solid rgba(0, 198, 213, 0.45);
    box-shadow: 0 8px 32px rgba(6, 31, 58, 0.35);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, visibility 0.45s ease;
    overflow: hidden;
}

.tn-banner--pending {
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
}

.tn-banner.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.tn-banner.is-closing {
    transform: translateY(-110%);
    opacity: 0;
}

.tn-banner__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 65%
    );
    background-size: 200% 100%;
    animation: tn-banner-shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes tn-banner-shimmer {
    0%, 100% { background-position: 200% 0; }
    50%      { background-position: -200% 0; }
}

.tn-banner__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.7rem 1rem 0.7rem 1.25rem;
}

.tn-banner__content {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    flex: 1;
    min-width: 0;
}

.tn-banner__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 0.45em;
    border-radius: 50%;
    background: var(--tn-cyan);
    box-shadow: 0 0 0 0 rgba(0, 198, 213, 0.5);
    animation: tn-banner-pulse 2.5s ease-out infinite;
}

@keyframes tn-banner-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 198, 213, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(0, 198, 213, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 198, 213, 0); }
}

.tn-banner__text {
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.tn-banner__identity {
    font-weight: 700;
    color: #fff;
}

.tn-banner__hook {
    display: inline;
    margin-left: 0.35rem;
    color: rgba(255, 255, 255, 0.82);
}

.tn-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.tn-banner__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    color: var(--tn-blue) !important;
    white-space: nowrap;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tn-banner__cta:hover,
.tn-banner__cta:focus {
    color: var(--tn-blue) !important;
    text-decoration: none !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.tn-banner__cta-arrow {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b3c6d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.tn-banner__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tn-banner__close:hover,
.tn-banner__close:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
}

.tn-banner__close span {
    display: block;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Body offset when banner visible */
body.tn-banner-active {
    transition: padding-top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 767px) {
    .tn-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        padding: 0.75rem 0.85rem;
    }

    .tn-banner__hook {
        display: block;
        margin-left: 0;
        margin-top: 0.2rem;
    }

    .tn-banner__actions {
        justify-content: space-between;
    }

    .tn-banner__cta {
        flex: 1;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tn-banner,
    .tn-banner__shimmer,
    .tn-banner__dot,
    body.tn-banner-active {
        animation: none;
        transition: none;
    }
}
