/* ============================================================
   HEAT Early Bird Bar — Frontend Styles
   ============================================================ */

#hebb-bar {
    --hebb-bg:     #1a1a2e;
    --hebb-text:   #ffffff;
    --hebb-accent: #c9a84c;

    position: fixed;
    left: 0;
    right: 0;
    z-index: 99999;
    background-color: var(--hebb-bg);
    color: var(--hebb-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 12px rgba(0,0,0,.35);
    transform: translateY(0);
    transition: transform .35s ease, opacity .35s ease;
}

#hebb-bar.hebb-position-top    { top: 0; }
#hebb-bar.hebb-position-bottom { bottom: 0; }

#hebb-bar.hebb-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}
#hebb-bar.hebb-position-bottom.hebb-hidden {
    transform: translateY(110%);
}

/* Inner layout */
.hebb-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 10px 48px 10px 20px; /* right pad for close btn */
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Message */
.hebb-message {
    font-size: 13.5px;
    font-weight: 500;
    opacity: .95;
    flex-shrink: 1;
}
.hebb-message strong { font-weight: 700; }

/* ---- Countdown ---- */
.hebb-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.hebb-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 38px;
}

.hebb-val {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: var(--hebb-accent);
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
}

.hebb-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .65;
    margin-top: 2px;
}

.hebb-sep {
    font-size: 18px;
    font-weight: 800;
    color: var(--hebb-accent);
    opacity: .7;
    margin-bottom: 8px;
    line-height: 1;
}

/* Timezone note */
.hebb-tz-note {
    font-size: 10px;
    opacity: .55;
    text-align: center;
    width: 100%;
    margin-top: -4px;
    letter-spacing: .03em;
}

/* ---- CTA Button ---- */
.hebb-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background-color: var(--hebb-accent);
    color: #0f0f1a !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    border-radius: 4px;
    white-space: nowrap;
    letter-spacing: .03em;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: filter .18s ease, transform .18s ease;
}
.hebb-btn:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}
.hebb-btn:active {
    transform: translateY(0);
    filter: brightness(.95);
}

/* ---- Close button ---- */
#hebb-bar .hebb-close, #hebb-bar button.hebb-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    cursor: pointer;
    color: var(--hebb-text) !important;
    opacity: .55;
    padding: 6px;
    line-height: 0;
    border-radius: 0;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    transition: opacity .18s ease;
}
#hebb-bar .hebb-close:hover, #hebb-bar button.hebb-close:hover {
    opacity: 1;
}

/* ---- Fallback / expired message ---- */
.hebb-expired-msg {
    font-size: 13.5px;
    font-weight: 500;
    opacity: .85;
    font-style: italic;
}

/* ---- Body push spacer ---- */
#hebb-spacer {
    width: 100%;
    transition: height .35s ease;
}

/* ============================================================
   Responsive
   ============================================================ */
@media ( max-width: 768px ) {
    .hebb-inner {
        gap: 8px 12px;
        padding: 8px 40px 8px 12px;
        justify-content: flex-start;
    }
    .hebb-message {
        font-size: 12.5px;
        width: 100%;
    }
    .hebb-val  { font-size: 17px; }
    .hebb-unit { min-width: 30px; }
    .hebb-btn  { padding: 7px 14px; font-size: 12px; }
}

@media ( max-width: 480px ) {
    .hebb-message { font-size: 12px; }
    .hebb-countdown { gap: 2px; }
    .hebb-val   { font-size: 15px; }
    .hebb-label { font-size: 8px; }
    .hebb-sep   { font-size: 14px; }
}
