/* ============================================================
   NYT-Inspired Cookie Consent Banner
   ============================================================ */

.nyt-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #fff;
    border-top: 1px solid #e2e2e2;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

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

.nyt-cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.nyt-cookie-banner__content {
    flex: 1;
    min-width: 0;
}

.nyt-cookie-banner__title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #121212;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.nyt-cookie-banner__text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.nyt-cookie-banner__text a {
    color: #121212;
    font-weight: 700;
    text-decoration: underline;
}

.nyt-cookie-banner__text a:hover {
    color: #567b95;
}

/* Actions */
.nyt-cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    min-width: 160px;
}

.nyt-cookie-btn {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #121212;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nyt-cookie-btn--accept {
    background: #121212;
    color: #fff;
    border-color: #121212;
}

.nyt-cookie-btn--accept:hover {
    background: #333;
    border-color: #333;
}

.nyt-cookie-btn--reject {
    background: #fff;
    color: #121212;
    border-color: #121212;
}

.nyt-cookie-btn--reject:hover {
    background: #f0f0f0;
}

.nyt-cookie-btn--manage {
    background: #fff;
    color: #121212;
    border-color: #121212;
}

.nyt-cookie-btn--manage:hover {
    background: #f0f0f0;
}

/* ---- Dark Mode ---- */
[data-theme="dark"] .nyt-cookie-banner {
    background: #1a1a1a;
    border-top-color: #333;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .nyt-cookie-banner__title {
    color: #e8e8e8;
}

[data-theme="dark"] .nyt-cookie-banner__text {
    color: #999;
}

[data-theme="dark"] .nyt-cookie-banner__text a {
    color: #e8e8e8;
}

[data-theme="dark"] .nyt-cookie-btn--accept {
    background: #e8e8e8;
    color: #121212;
    border-color: #e8e8e8;
}

[data-theme="dark"] .nyt-cookie-btn--accept:hover {
    background: #ccc;
    border-color: #ccc;
}

[data-theme="dark"] .nyt-cookie-btn--reject,
[data-theme="dark"] .nyt-cookie-btn--manage {
    background: transparent;
    color: #e8e8e8;
    border-color: #555;
}

[data-theme="dark"] .nyt-cookie-btn--reject:hover,
[data-theme="dark"] .nyt-cookie-btn--manage:hover {
    background: #333;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .nyt-cookie-banner__inner {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .nyt-cookie-banner__actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        min-width: 0;
    }

    .nyt-cookie-btn {
        flex: 1;
        min-width: 100px;
    }

    .nyt-cookie-banner {
        padding: 16px 0;
    }
}

@media (max-width: 480px) {
    .nyt-cookie-banner__actions {
        flex-direction: column;
    }

    .nyt-cookie-btn {
        width: 100%;
    }
}
