/**
 * RandeVip — çerez bildirimi (site teması: koyu yüzey + pembe/magenta vurgu)
 * index.php :root --primary, --bg-elevated ile uyumlu
 */
:root {
    --rv-cookie-bg: #0f0c12;
    --rv-cookie-bg-top: rgba(18, 14, 22, 0.98);
    --rv-cookie-primary: #f43b8a;
    --rv-cookie-primary-bright: #ff6ba8;
    --rv-cookie-primary-soft: rgba(244, 59, 138, 0.14);
    --rv-cookie-primary-glow: rgba(244, 59, 138, 0.38);
    --rv-cookie-border: rgba(255, 255, 255, 0.065);
    --rv-cookie-border-accent: rgba(244, 59, 138, 0.32);
    --rv-cookie-text: #f4f2f8;
    --rv-cookie-link: #f9a8d4;
}

.rv-cookie-banner {
    display: none;
    position: fixed;
    z-index: 1080;
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    max-width: min(40rem, calc(100% - 1.5rem));
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    /* Akışta yer kaplamaz; yalnızca üstte sabit kart */
    pointer-events: none;
}

.rv-cookie-banner.rv-cookie-banner--show {
    display: block;
    pointer-events: auto;
    animation: rv-cookie-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rv-cookie-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rv-cookie-banner__inner {
    background: linear-gradient(
        155deg,
        rgba(22, 16, 28, 0.97) 0%,
        var(--rv-cookie-bg) 48%,
        #08060c 100%
    );
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid var(--rv-cookie-border);
    box-shadow:
        0 0 0 1px var(--rv-cookie-border-accent),
        0 22px 56px rgba(0, 0, 0, 0.58),
        0 0 60px rgba(244, 59, 138, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    border-radius: 20px;
    padding: 1.1rem 1.2rem 1rem;
}

.rv-cookie-banner__text {
    margin: 0 0 1rem;
    color: rgba(244, 242, 248, 0.92);
}

.rv-cookie-banner__text a {
    color: var(--rv-cookie-link);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(244, 59, 138, 0.45);
}

.rv-cookie-banner__text a:hover {
    color: #fff;
    text-decoration-color: rgba(249, 168, 212, 0.85);
}

.rv-cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
}

.rv-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    line-height: 1.2;
    box-sizing: border-box;
}

/* Bootstrap reboot / tema butonları üzerine yazılmasın */
.rv-cookie-banner button.rv-cookie-btn--primary {
    background: linear-gradient(135deg, #ff4d94 0%, var(--rv-cookie-primary) 55%, #c11b51 100%);
    color: #fff;
    border-color: rgba(244, 59, 138, 0.55);
    box-shadow:
        0 4px 22px var(--rv-cookie-primary-glow),
        0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.rv-cookie-btn--primary:hover {
    background: linear-gradient(180deg, var(--rv-cookie-primary-bright) 0%, #e91e7a 100%);
    color: #fff;
    border-color: rgba(255, 182, 218, 0.45);
}

.rv-cookie-btn--primary:focus-visible {
    outline: 2px solid var(--rv-cookie-primary);
    outline-offset: 3px;
}

.rv-cookie-banner a.rv-cookie-btn--ghost {
    color: var(--rv-cookie-link);
}

.rv-cookie-btn--ghost {
    background: rgba(255, 255, 255, 0.03);
    color: var(--rv-cookie-link);
    border-color: rgba(244, 59, 138, 0.4);
}

.rv-cookie-btn--ghost:hover {
    background: var(--rv-cookie-primary-soft);
    border-color: rgba(244, 59, 138, 0.65);
    color: #fff;
}

.rv-cookie-btn--ghost:focus-visible {
    outline: 2px solid var(--rv-cookie-primary);
    outline-offset: 3px;
}

@media (min-width: 576px) {
    .rv-cookie-banner__inner {
        padding: 1.25rem 1.35rem 1.15rem;
    }
    .rv-cookie-banner__actions {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rv-cookie-banner.rv-cookie-banner--show {
        animation: none;
    }
}
