/* ==========================================================================
   Announcement Bar (Free Version)
   ========================================================================== */

   .blog-over-announcement-wrapper {
    position: relative;
    z-index: 99;
}

.blog-over-announcement-pos-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.blog-over-announcement-pos-fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Adjust WordPress Admin bar */
body.admin-bar .blog-over-announcement-pos-fixed-top {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .blog-over-announcement-pos-fixed-top {
        top: 46px;
    }
}

.blog-over-announcement-bar {
    padding: 0 15px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}

.blog-over-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: nowrap;
    text-align: center;
    line-height: 1.3;
    width: 100%;
}

.blog-over-announcement-text {
    font-size: inherit;
    font-weight: 500;
    line-height: 1.4;
}

.blog-over-announcement-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.blog-over-announcement-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Dark color text handling (e.g. if user sets yellow background and dark text) */
.blog-over-announcement-bar[style*="color: #0"] .blog-over-announcement-btn,
.blog-over-announcement-bar[style*="color:#0"] .blog-over-announcement-btn,
.blog-over-announcement-bar[style*="color: rgb(0"] .blog-over-announcement-btn,
.blog-over-announcement-bar[style*="color: black"] .blog-over-announcement-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
}

.blog-over-announcement-bar[style*="color: #0"] .blog-over-announcement-btn:hover,
.blog-over-announcement-bar[style*="color:#0"] .blog-over-announcement-btn:hover,
.blog-over-announcement-bar[style*="color: rgb(0"] .blog-over-announcement-btn:hover,
.blog-over-announcement-bar[style*="color: black"] .blog-over-announcement-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

.blog-over-announcement-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 20px;
    line-height: 1;
    padding: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.blog-over-announcement-close:hover {
    opacity: 1;
}

.blog-over-announcement-dismissible .blog-over-container {
    padding-right: 40px;
}

@media (max-width: 768px) {
    .blog-over-announcement-inner {
        flex-wrap: nowrap;
        gap: 8px;
        padding: 0 8px;
    }
    .blog-over-announcement-text {
        font-size: 12px;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1 1 auto;
    }
    .blog-over-announcement-btn {
        font-size: 10px;
        padding: 3px 10px;
        white-space: nowrap;
        flex-shrink: 0;
    }
}
