/* ============================================================
   COOKIE CONSENT (gates GA4 + the Meta pixel)
   ============================================================ */
.blog-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    /* Above the back-to-top button (8990) and the Telegram float. */
    z-index: 9000;
    padding: 1rem;
    background: rgba(8, 3, 38, 0.92);
    border-top: 1px solid rgba(158, 107, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(100%);
    transition: transform 0.25s ease;
}
.blog-consent[hidden] {
    display: none;
}
.blog-consent--visible {
    transform: translateY(0);
}

.blog-consent__inner {
    max-width: 84.375rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-consent__heading {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.blog-consent__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--blog-text-muted, rgba(255, 255, 255, 0.72));
}

.blog-consent__link {
    color: rgba(76, 215, 196, 0.9);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}
.blog-consent__link:hover,
.blog-consent__link:focus-visible {
    color: rgba(76, 215, 196, 1);
}

.blog-consent__actions {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* Accept and Decline are deliberately identical in size, weight and contrast — a de-emphasised
   reject button is treated as invalid consent under GDPR. Only the hue differs. */
.blog-consent__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.6875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.blog-consent__btn:hover,
.blog-consent__btn:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

.blog-consent__btn--accept {
    background: rgba(158, 107, 255, 0.18);
    border-color: rgba(158, 107, 255, 0.45);
}
.blog-consent__btn--accept:hover,
.blog-consent__btn--accept:focus-visible {
    background: rgba(158, 107, 255, 0.3);
    border-color: rgba(158, 107, 255, 0.7);
}

.blog-consent__btn:focus-visible,
.blog-consent__link:focus-visible,
.blog-consent__reopen:focus-visible {
    outline: 2px solid rgba(76, 215, 196, 0.9);
    outline-offset: 2px;
}

/* Withdrawal control — GDPR requires consent be as easy to revoke as it was to give. Bottom-left,
   because the right corner already holds the Telegram float and the back-to-top button. */
.blog-consent__reopen {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 8989;
    min-height: 2.25rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    background: rgba(8, 3, 38, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--blog-text-muted, rgba(255, 255, 255, 0.72));
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.blog-consent__reopen[hidden] {
    display: none;
}
.blog-consent__reopen:hover,
.blog-consent__reopen:focus-visible {
    color: #fff;
    border-color: rgba(158, 107, 255, 0.5);
}

@media screen and (min-width: 48rem) {
    .blog-consent {
        padding: 1.125rem 1.5rem;
    }
    .blog-consent__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
    }
    .blog-consent__actions {
        flex-direction: row;
        flex-shrink: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-consent {
        transition: none;
    }
}
