/* =========================================================
   KVKK uyumlu çerez onay bildirimi — Aydınlar Dişli renkleri
   (Venüs Ajans şablonundan uyarlandı)
   ========================================================= */
#vc-consent {
    --vc-navy: #03326c;        /* site ana lacivert (--first-color) */
    --vc-blue: #064b93;        /* sektör çarkı mavisi */
    --vc-orange: #fd5e04;      /* site turuncu vurgu */
    --vc-soft: #eef3f8;        /* açık zemin */
    --vc-ink: #12304b;         /* metin */
    --vc-muted: #4a5d70;       /* ikincil metin */
    --vc-line: #dbe4ee;        /* çizgiler */
    --vc-white: #ffffff;
    --vc-radius: 14px;
    --vc-shadow: 0 14px 44px rgba(3, 30, 64, .24);
    --vc-font: Barlow, "Segoe UI", Arial, sans-serif;

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    font-family: var(--vc-font);
    pointer-events: none;      /* kapalıyken alttaki içeriği engellemesin */
}
#vc-consent *,
#vc-consent *::before,
#vc-consent *::after {
    box-sizing: border-box;
}

/* ---------- Banner ---------- */
#vc-consent .vc-banner {
    position: relative;
    display: none;
    max-width: 1040px;
    margin: 0 auto 20px;
    padding: 22px 26px 22px 30px;
    background: var(--vc-white);
    border: 1px solid var(--vc-line);
    border-radius: var(--vc-radius);
    box-shadow: var(--vc-shadow);
    pointer-events: auto;
    overflow: hidden;
}
#vc-consent .vc-banner::before {           /* sitedeki turuncu köşe vurgusu */
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--vc-orange);
}
#vc-consent .vc-banner.vc-open {
    display: flex;
    align-items: center;
    gap: 28px;
    animation: vc-rise .35s ease both;
}
@keyframes vc-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    #vc-consent .vc-banner.vc-open,
    #vc-consent .vc-modal.vc-open { animation: none; }
}
#vc-consent .vc-text {
    flex: 1 1 auto;
    min-width: 0;
}
#vc-consent .vc-banner h2 {
    margin: 0 0 6px;
    color: var(--vc-navy);
    font-family: var(--vc-font);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.25;
}
#vc-consent .vc-banner p {
    margin: 0;
    color: var(--vc-muted);
    font-size: 15px;
    line-height: 1.55;
}
#vc-consent a {
    color: var(--vc-blue);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
#vc-consent a:hover {
    color: var(--vc-orange);
}

#vc-consent .vc-actions {
    flex: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 210px;
}
#vc-consent .vc-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 11px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
#vc-consent .vc-btn:focus-visible {
    outline: 3px solid var(--vc-orange);
    outline-offset: 2px;
}
#vc-consent .vc-btn-accept {
    background: var(--vc-navy);
    border-color: var(--vc-navy);
    color: var(--vc-white);
}
#vc-consent .vc-btn-accept:hover {
    background: var(--vc-blue);
    border-color: var(--vc-blue);
}
#vc-consent .vc-btn-reject {                /* reddetmek kabul etmek kadar görünür */
    background: var(--vc-white);
    border-color: var(--vc-navy);
    color: var(--vc-navy);
}
#vc-consent .vc-btn-reject:hover {
    background: var(--vc-soft);
}
#vc-consent .vc-btn-prefs {
    padding: 6px 8px;
    background: transparent;
    color: var(--vc-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#vc-consent .vc-btn-prefs:hover {
    color: var(--vc-orange);
}

/* ---------- Tercih modalı ---------- */
#vc-consent .vc-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(3, 30, 64, .55);
    pointer-events: auto;
}
#vc-consent .vc-overlay.vc-open {
    display: flex;
}
#vc-consent.vc-prefs-open .vc-banner {   /* modal açıkken banner arkada görünmesin */
    visibility: hidden;
}
#vc-consent .vc-modal {
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px;
    background: var(--vc-white);
    border-top: 5px solid var(--vc-orange);
    border-radius: var(--vc-radius);
    box-shadow: var(--vc-shadow);
}
#vc-consent .vc-modal.vc-open {
    animation: vc-rise .3s ease both;
}
#vc-consent .vc-modal h3 {
    margin: 0 0 6px;
    color: var(--vc-navy);
    font-family: var(--vc-font);
    font-size: 22px;
    font-weight: 600;
}
#vc-consent .vc-modal > p {
    margin: 0 0 18px;
    color: var(--vc-muted);
    font-size: 14.5px;
    line-height: 1.5;
}
#vc-consent .vc-cat {
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--vc-line);
    border-radius: 10px;
}
#vc-consent .vc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
#vc-consent .vc-cat-head strong {
    color: var(--vc-ink);
    font-size: 15.5px;
    font-weight: 600;
}
#vc-consent .vc-cat p {
    margin: 8px 0 0;
    color: var(--vc-muted);
    font-size: 13.5px;
    line-height: 1.5;
}
#vc-consent .vc-always {
    color: var(--vc-orange);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

/* Anahtar */
#vc-consent .vc-switch {
    position: relative;
    flex: none;
    width: 44px;
    height: 24px;
    margin: 0;
}
#vc-consent .vc-switch input {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
#vc-consent .vc-slider {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: #c3cfda;
    transition: background .15s ease;
    pointer-events: none;
}
#vc-consent .vc-slider::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--vc-white);
    transition: transform .15s ease;
}
#vc-consent .vc-switch input:checked + .vc-slider {
    background: var(--vc-blue);
}
#vc-consent .vc-switch input:checked + .vc-slider::before {
    transform: translateX(20px);
}
#vc-consent .vc-switch input:focus-visible + .vc-slider {
    outline: 3px solid var(--vc-orange);
    outline-offset: 2px;
}
#vc-consent .vc-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

/* ---------- Tablet / telefon ---------- */
@media (max-width: 860px) {
    #vc-consent .vc-banner.vc-open {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin: 0 12px 12px;
    }
    #vc-consent .vc-actions {
        flex-direction: row;
        flex-wrap: wrap;
        min-width: 0;
    }
    #vc-consent .vc-actions .vc-btn-accept,
    #vc-consent .vc-actions .vc-btn-reject {
        flex: 1 1 160px;
    }
    #vc-consent .vc-actions .vc-btn-prefs {
        flex: 1 1 100%;
    }
}
@media (max-width: 560px) {
    #vc-consent .vc-banner.vc-open {
        margin: 0;
        padding: 18px 16px 16px 20px;
        border-radius: var(--vc-radius) var(--vc-radius) 0 0;
        border-bottom: 0;
        max-height: 80vh;
        overflow-y: auto;
    }
    #vc-consent .vc-banner h2 {
        font-size: 18px;
    }
    #vc-consent .vc-banner p {
        font-size: 14px;
    }
    #vc-consent .vc-modal {
        padding: 22px 18px;
    }
    #vc-consent .vc-modal-actions .vc-btn {
        flex: 1 1 100%;
    }
}
