/* ═══════════════════════════════════════════════
   ANNOUNCEMENTS & ADS — PUBLIC CSS
   ═══════════════════════════════════════════════ */

/* ── Announcement Top Bar ── */
.announcement-strip {
    font-size: .88rem;
    line-height: 1.4;
    position: relative;
    z-index: 1040;
    animation: slideDown .4s ease;
}

.announcement-strip+.announcement-strip {
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.announcement-content {
    flex: 1;
    text-align: center;
}

.announcement-badge {
    display: inline-block;
    padding: .15em .55em;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .2);
    margin-right: .5rem;
    vertical-align: middle;
}

.announcement-link {
    margin-left: .6rem;
    font-weight: 600;
    text-decoration: underline;
    opacity: .9;
    transition: opacity .2s;
}

.announcement-link:hover {
    opacity: 1;
    text-decoration: none;
}

.announcement-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    line-height: 1;
    opacity: .6;
    cursor: pointer;
    padding: 0 0 0 1rem;
    transition: opacity .2s;
}

.announcement-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ── Header Banner Ad ── */
.header-ad-banner {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.header-ad-img {
    max-height: 90px;
    max-width: 100%;
    border-radius: 4px;
    transition: transform .2s;
}

.header-ad-img:hover {
    transform: scale(1.02);
}

/* ── Sidebar Ad ── */
.sidebar-ad-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}

.sidebar-ad-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.sidebar-ad-card img {
    width: 100%;
    height: auto;
    display: block;
}

.sidebar-ad-card .ad-label {
    display: block;
    text-align: center;
    padding: .3rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #999;
    background: #f8f9fa;
}

/* ── Inline Content Ad ── */
.inline-ad-container {
    padding: 1rem 0;
    text-align: center;
}

.inline-ad-container img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 6px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .announcement-strip {
        font-size: .8rem;
    }

    .announcement-badge {
        display: none;
    }

    .header-ad-img {
        max-height: 60px;
    }
}
