/* Flytrippers Top Bar — Frontend Styles */

/* ═══════════════════════════════════
   Shared
   ═══════════════════════════════════ */

#ftbp-top-bar {
    position: fixed;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;
    cursor: pointer;
}

.ftbp-close-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    opacity: .75;
    background: none;
    border: none;
    padding: 4px;
}

.ftbp-close-btn:hover {
    opacity: 1;
}

/* ═══════════════════════════════════
   Classic Template
   ═══════════════════════════════════ */

#ftbp-top-bar.ftbp-classic {
    padding: 7px 40px 7px 7px;
    font-weight: bold;
    text-align: center;
}

#ftbp-top-bar.ftbp-classic a {
    color: #fff;
    text-decoration: none;
}

/* ═══════════════════════════════════
   Featured Template
   ═══════════════════════════════════ */

#ftbp-top-bar.ftbp-featured {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 44px 6px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Inner wrapper: matches site content width, pill at left edge, CTA at right edge */
.ftbp-feat-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.ftbp-feat-content {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ftbp-pill {
    display: inline-block;
    color: #fff;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ftbp-feat-content.ftbp-has-pill .ftbp-feat-text {
    padding-left: 2px;
}

.ftbp-feat-image {
    height: 32px;
    width: auto;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.ftbp-feat-text {
    color: #fff;
    font-size: 14px;
    line-height: 1.3;
}

.ftbp-feat-title {
    font-weight: 700;
}

.ftbp-feat-tagline {
    font-weight: 400;
    opacity: .92;
}

.ftbp-feat-cta {
    display: inline-block;
    background: #fff;
    color: #222 !important;
    padding: 5px 18px;
    border-radius: 9999px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity .15s;
    line-height: 1.4;
}

.ftbp-feat-cta:hover {
    opacity: .88;
}

/* ═══════════════════════════════════
   Mobile (≤ 768px)
   ═══════════════════════════════════ */

@media (max-width: 768px) {
    #ftbp-top-bar.ftbp-featured {
        flex-wrap: wrap;
        padding: 6px 36px 6px 10px;
        justify-content: flex-start;
    }

    .ftbp-feat-inner {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 6px;
    }

    .ftbp-feat-content {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px;
    }

    .ftbp-feat-image {
        height: 22px;
    }

    .ftbp-feat-text {
        font-size: 12px;
        text-align: left;
    }

    .ftbp-pill {
        font-size: 9px;
        padding: 2px 8px;
    }

    .ftbp-feat-content.ftbp-has-pill .ftbp-feat-text {
        padding-left: 4px;
    }
}

@media (max-width: 480px) {
    #ftbp-top-bar.ftbp-classic {
        font-size: 13px;
        padding: 6px 32px 6px 6px;
    }

    .ftbp-feat-image {
        height: 18px;
    }
}
