/* Cookie consent banner — shared across all pages.
   Injected by /assets/js/consent.js. Keep in sync with it. */

#cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    display: none;
    padding: 14px clamp(16px, 4vw, 40px);
    background: rgba(11, 11, 12, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(229, 72, 77, 0.28);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    font-family: 'Space Grotesk', sans-serif;
    transform: translateY(110%);
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

#cookie-banner.is-visible {
    display: block;
}

#cookie-banner.is-shown {
    transform: translateY(0);
}

.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cookie-text {
    flex: 1 1 320px;
    color: #C9C7C2;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: #E8E6E1;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(229, 72, 77, 0.6);
    transition: color 0.2s ease;
}

.cookie-text a:hover {
    color: #E5484D;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.cookie-btn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cookie-btn:active {
    transform: translateY(1px);
}

.cookie-btn--primary {
    background: rgba(229, 72, 77, .85);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
}

.cookie-btn--primary:hover {
    background: #E5484D;
}

.cookie-btn--ghost {
    background: rgba(255, 255, 255, .06);
    color: #C9C7C2;
}

.cookie-btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(229, 72, 77, .6);
    color: #E8E6E1;
}

@media (max-width: 767px) {
    /* Mobil: ince, düz bir şerit. backdrop-filter mobil GPU'da pahalı ve
       intro animasyonuyla çakışıyor; opak arka plan kullanılır. */
    #cookie-banner {
        padding: 8px 12px;
        background: rgba(11, 11, 12, .97);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, .35);
    }

    .cookie-inner {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }

    .cookie-text {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 11px;
        line-height: 1.3;
    }

    .cookie-actions {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 6px;
        width: auto;
    }

    .cookie-btn {
        flex: 0 0 auto;
        font-size: 11px;
        padding: 8px 10px;
        min-height: 38px;
        border-radius: 8px;
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    #cookie-banner {
        transition: none;
        transform: translateY(0);
    }
}
