
/* ═══════════════════════════════════════════
   SHAPE CUSTOM OVERLAYS
   ═══════════════════════════════════════════ */

:root {
    --blue: #7AAEC8;
    --blue-glow: rgba(122, 174, 200, 0.4);
    --bg-black: #0A0A0A;
}

/* 0. Override React-rendered announcement bar */
.fixed.w-full.z-\[101\] > .bg-\[\#111111\].border-b {
    background: linear-gradient(135deg, #D67554 0%, #C4583A 50%, #D67554 100%) !important;
    background-size: 200% 200% !important;
    animation: bar-shimmer 4s ease infinite !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    box-shadow: 0 2px 20px rgba(214, 117, 84, 0.3) !important;
    position: relative !important;
    overflow: hidden !important;
}

.fixed.w-full.z-\[101\] > .bg-\[\#111111\].border-b::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: bar-shine 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bar-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes bar-shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Announcement bar link + text overrides */
.fixed.w-full.z-\[101\] [data-cookbook-announcement="true"] {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.fixed.w-full.z-\[101\] [data-cookbook-announcement="true"] span[style] {
    color: #0A0A0A !important;
    font-style: italic;
    text-decoration: underline;
    text-decoration-color: rgba(0,0,0,0.3);
    text-underline-offset: 3px;
}

.fixed.w-full.z-\[101\] .shape-cookbook-arrow {
    color: #fff !important;
    filter: drop-shadow(0 0 4px rgba(255,255,255,0.4));
}

/* 1. Sleek Announcement Bar */
.shape-announcement-bar {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    transition: background 0.3s ease;
    position: relative;
    z-index: 10001;
}

.shape-announcement-bar:hover {
    background: #161616;
}

.shape-announcement-bar span {
    color: var(--blue);
}

.shape-announcement-bar svg {
    color: var(--blue);
}

.shape-cookbook-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.shape-cookbook-link-text {
    position: relative;
}

.shape-cookbook-link-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    opacity: 0.22;
    transition: opacity 0.25s ease;
}

.shape-cookbook-arrow {
    width: 16px;
    height: 16px;
    color: var(--blue);
    animation: shape-arrow-nudge 1.2s ease-in-out infinite;
    transition: transform 0.25s ease;
}

.shape-cookbook-link:hover .shape-cookbook-link-text::after {
    opacity: 0.5;
}

.shape-cookbook-link:hover .shape-cookbook-arrow {
    transform: translateX(2px);
}

@keyframes shape-arrow-nudge {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}

/* 2. Premium Newsletter Popup */
.newsletter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-overlay.active {
    display: flex;
    opacity: 1;
}

.newsletter-popup {
    background: #0D0D0D;
    border: 1px solid rgba(122, 174, 200, 0.2);
    border-radius: 2px;
    max-width: 480px;
    width: 100%;
    padding: 56px 40px;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.newsletter-overlay.active .newsletter-popup {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #444;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.popup-close:hover { color: var(--blue); }

.popup-eyebrow {
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: block;
}

.newsletter-popup h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 38px;
    line-height: 1.1;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 16px;
}

.newsletter-popup p {
    color: #888;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form input {
    background: #151515;
    border: 1px solid #222;
    padding: 18px 20px;
    border-radius: 0;
    color: #fff;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}

.newsletter-form input:focus { border-color: var(--blue); }

.newsletter-form button {
    background: var(--blue);
    color: #0A0A0A;
    border: none;
    padding: 18px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* ── Announcement bar responsive ─────────────────────── */
@media (max-width: 768px) {
    .fixed.w-full.z-\[101\] > .bg-\[\#111111\].border-b {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    .fixed.w-full.z-\[101\] [data-cookbook-announcement="true"] {
        font-size: 14px !important;
        letter-spacing: 0.08em !important;
        gap: 6px !important;
    }
    .fixed.w-full.z-\[101\] .shape-cookbook-arrow {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 480px) {
    .newsletter-popup { padding: 48px 24px; }
    .newsletter-popup h2 { font-size: 32px; }
    .shape-announcement-bar { font-size: 11px; }
    .fixed.w-full.z-\[101\] > .bg-\[\#111111\].border-b {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
    .fixed.w-full.z-\[101\] [data-cookbook-announcement="true"] {
        font-size: 11px !important;
        letter-spacing: 0.06em !important;
        gap: 4px !important;
    }
    .fixed.w-full.z-\[101\] .shape-cookbook-arrow {
        width: 12px !important;
        height: 12px !important;
    }
}

@media (max-width: 360px) {
    .fixed.w-full.z-\[101\] [data-cookbook-announcement="true"] {
        font-size: 10px !important;
        letter-spacing: 0.04em !important;
    }
}
