/**
 * ITSWEBER CMS – Site Notice Plugin Styles
 * Version: 1.0.0
 *
 * Displays a full-width announcement bar below the site header.
 * Four variants: info (default), success, warning, danger.
 */

/* ── Base ─────────────────────────────────────────────────────────────────── */

.site-notice {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    border-bottom: 1px solid transparent;
    box-sizing: border-box;
}

.site-notice__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.site-notice__text {
    flex: 1 1 auto;
    text-align: center;
}

.site-notice__link {
    flex-shrink: 0;
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

.site-notice__dismiss {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    font-size: 1rem;
    line-height: 1;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.15s;
}

.site-notice__dismiss:hover,
.site-notice__dismiss:focus-visible {
    opacity: 1;
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* ── Variants ─────────────────────────────────────────────────────────────── */

.site-notice--info {
    background-color: #eff6ff;
    color: #1e40af;
    border-bottom-color: #bfdbfe;
}

.site-notice--info .site-notice__link {
    color: #1d4ed8;
}

.site-notice--success {
    background-color: #f0fdf4;
    color: #166534;
    border-bottom-color: #bbf7d0;
}

.site-notice--success .site-notice__link {
    color: #15803d;
}

.site-notice--warning {
    background-color: #fffbeb;
    color: #92400e;
    border-bottom-color: #fde68a;
}

.site-notice--warning .site-notice__link {
    color: #b45309;
}

.site-notice--danger {
    background-color: #fef2f2;
    color: #991b1b;
    border-bottom-color: #fecaca;
}

.site-notice--danger .site-notice__link {
    color: #b91c1c;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .site-notice {
        font-size: 0.85rem;
        padding: 0.55rem 0.75rem;
    }

    .site-notice__inner {
        gap: 0.5rem;
    }
}
