/* ============================================================
   Announcement Bar
   ============================================================ */

#announcement-bar {
    width: 100%;
    z-index: 9999;
    position: relative;
    box-sizing: border-box;
}

#announcement-bar.is-hidden {
    display: none;
}

/* Fade-in animace při zobrazení (Google Sheet mode) */
#announcement-bar.announcement-bar--visible {
    animation: announcebar-fadein 0.3s ease-out;
}

@keyframes announcebar-fadein {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
}

.announcement-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 40px 10px 16px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
}

.announcement-bar__text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.01em;
}

.announcement-bar__emoji {
    margin-right: 6px;
    font-style: normal;
}

/* Countdown */
.announcement-bar__countdown-wrap {
    white-space: nowrap;
}

.announcement-bar__countdown {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0.03em;
}

/* CTA tlačítko */
.announcement-bar__cta {
    display: inline-block;
    margin-left: 20px;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    line-height: 1.4;
}

.announcement-bar__cta:hover,
.announcement-bar__cta:focus {
    opacity: 0.82;
    text-decoration: none !important;
}

/* Tlačítko zavřít */
.announcement-bar__close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
    opacity: 0.75;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-bar__close:hover,
.announcement-bar__close:focus {
    opacity: 1;
    outline: none;
}

/* Responsivní */
@media (max-width: 575px) {
    .announcement-bar__inner {
        padding: 8px 36px 8px 12px;
    }

    .announcement-bar__text {
        font-size: 14px;
    }

    .announcement-bar__countdown-wrap {
        display: block;
        margin-top: 3px;
    }
}
