/* ==========================================================================
   Site Notices: noscript warning, offline banner, cookie consent, site toast
   ========================================================================== */

/* Site toast: flash success/error shown at the top of the page */
.site-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 14px 44px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.site-toast--success {
    background: #d1e7dd;
    color: #0f5132;
    border-bottom: 1px solid #badbcc;
}

.site-toast--error {
    background: #f8d7da;
    color: #842029;
    border-bottom: 1px solid #f5c2c7;
}

.site-toast__close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.site-toast__close:hover {
    opacity: 1;
}

.noscript-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #1c1c1c;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 3px solid #F87C02;
}

.noscript-warning strong {
    color: #F87C02;
}

/* Offline banner */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #1c1c1c;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

.offline-banner.is-visible {
    transform: translateY(0);
}

.offline-banner__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    margin-right: 8px;
    animation: offline-pulse 1.4s infinite;
}

@keyframes offline-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 28px;
    width: calc(100% - 200px);
    max-width: 740px;
    z-index: 99999;
    background: rgba(24, 20, 18, 0.86);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(248, 124, 2, 0.3);
    border-radius: 22px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
    padding: 26px 30px 24px;
    font-family: "Inter", sans-serif;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    transform: translate(-50%, 140%);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.cookie-consent.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.cookie-consent__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(145deg, #F87C02, #ffa53f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 18px rgba(248, 124, 2, 0.4);
}

.cookie-consent__body {
    flex: 1 1 280px;
    min-width: 0;
}

.cookie-consent__title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.cookie-consent__text {
    font-size: 13px;
    line-height: 1.65;
    color: #c9c1b6;
    margin-bottom: 0;
}

.cookie-consent__text a {
    color: #ffa53f;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 165, 63, 0.5);
}

.cookie-consent__text a:hover {
    border-bottom-color: #ffa53f;
}

.cookie-consent__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    flex: 0 0 auto;
    margin-left: auto;
}

.cookie-consent__btn {
    border: none;
    cursor: pointer;
    border-radius: 30px;
    padding: 10px 22px;
    font-size: 12.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-consent__btn:hover {
    transform: translateY(-1px);
}

.cookie-consent__btn--accept {
    background: #F87C02;
    color: #fff;
    box-shadow: 0 8px 18px rgba(248, 124, 2, 0.3);
}

.cookie-consent__btn--accept:hover {
    box-shadow: 0 10px 22px rgba(248, 124, 2, 0.4);
}

.cookie-consent__btn--reject {
    background: transparent;
    color: #c9c1b6;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.cookie-consent__btn--reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

@media (max-width: 767px) {
    .cookie-consent {
        width: calc(100% - 24px);
        bottom: 90px;
    }
}

@media (max-width: 575px) {
    .cookie-consent {
        bottom: 90px;
        padding: 18px;
    }

    .cookie-consent__actions {
        justify-content: stretch;
        margin-left: 0;
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1 1 0;
    }
}
