/* Main notification bar styles */
.notification-bar {
    width: 100%;
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    box-sizing: border-box;
    transform: translateY(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.notification-bar.hide {
    transform: translateY(-100%);
    opacity: 0;
}

/* Container and content */
.notification-bar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.notification-bar-content {
    flex: 1;
    text-align: center;
}

.notification-bar-content p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Close button */
.notification-bar-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-bar-close:hover {
    opacity: 1;
}

.notification-bar-close svg {
    width: 16px;
    height: 16px;
}

/* WordPress admin bar adjustments */
.admin-bar .notification-bar {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .notification-bar {
        top: 46px;
    }
}

/* Body adjustments for fixed header */
body.notification-bar-active {
    --notification-bar-height: 50px; /* Default height, updated by JS */
}

body.notification-bar-active.has-fixed-header .site-header {
    top: var(--notification-bar-height);
    transition: top 0.3s ease;
}

body.notification-bar-active.admin-bar.has-fixed-header .site-header {
    top: calc(32px + var(--notification-bar-height));
}

@media (max-width: 782px) {
    body.notification-bar-active.admin-bar.has-fixed-header .site-header {
        top: calc(46px + var(--notification-bar-height));
    }
}

/* Scroll padding for anchor links */
html {
    scroll-padding-top: var(--notification-bar-height, 0);