/* =============================================================================
   VAYES Cookie Consent - Standalone stil
   Namespace: .vcc-  (site CSS'i ile cakismaz, tak-calistir)
   Bootstrap'e bagimli DEGILDIR; kendi stilini tasir.
   ============================================================================= */

.vcc,
.vcc * {
    box-sizing: border-box;
}

.vcc {
    --vcc-accent: #3843d0;
    --vcc-accent-hover: #005188;
    --vcc-ink: #1c1c1c;
    --vcc-muted: #5a5a5a;
    --vcc-line: #e6e6e8;
    --vcc-radius: 14px;
    --vcc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    font-family: var(--vcc-font);
    color: var(--vcc-ink);
    -webkit-font-smoothing: antialiased;
}

.vcc.is-open {
    display: flex;
}

.vcc__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 40, 0.55);
    animation: vccFade 0.25s ease both;
}

/* ---- Dialog kutusu -------------------------------------------------------- */
.vcc__dialog {
    position: relative;
    width: 100%;
    max-width: 902px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--vcc-radius);
    box-shadow: 0 24px 70px rgba(10, 14, 40, 0.35);
    overflow: hidden;
    animation: vccPop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

/* ---- Header --------------------------------------------------------------- */
.vcc__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--vcc-line);
}

.vcc__logo {
    height: 30px;
    width: auto;
    display: block;
}

.vcc__brand {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--vcc-muted);
    letter-spacing: 0.01em;
}

/* ---- Tabs ----------------------------------------------------------------- */
.vcc__tabs {
    display: flex;
    border-bottom: 1px solid var(--vcc-line);
    padding: 0 1.5rem;
}

.vcc__tab {
    flex: 1;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 1rem 0.5rem;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--vcc-ink);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    margin-bottom: -1px;
}

.vcc__tab:hover {
    color: var(--vcc-accent);
}

.vcc__tab.is-active {
    color: var(--vcc-accent);
    border-bottom-color: var(--vcc-accent);
}

/* ---- Body / panels -------------------------------------------------------- */
.vcc__body {
    overflow-y: auto;
    padding: 1.4rem 1.5rem 0.5rem;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
}

.vcc__panel {
    display: none;
}

.vcc__panel.is-active {
    display: block;
    animation: vccFade 0.2s ease both;
}

.vcc__title {
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 0.55rem;
}

.vcc__text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--vcc-muted);
    margin: 0 0 1.1rem;
}

.vcc__text a {
    color: var(--vcc-accent);
    text-decoration: underline;
}

/* ---- Kategori toggle satiri (Consent sekmesi) ----------------------------- */
.vcc__cats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--vcc-line);
    border-bottom: 1px solid var(--vcc-line);
}

.vcc__cat {
    padding: 1.25rem 0.75rem;
    text-align: center;
    border-right: 1px solid var(--vcc-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.vcc__cat:last-child {
    border-right: none;
}

.vcc__cat-name {
    font-size: 0.95rem;
    font-weight: 700;
}

/* ---- Toggle switch (ss'teki pill) ----------------------------------------- */
.vcc__switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.vcc__switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.vcc__slider {
    position: absolute;
    inset: 0;
    background: #1c1c1c;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.vcc__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.vcc__switch input:checked + .vcc__slider {
    background: var(--vcc-accent);
}

.vcc__switch input:checked + .vcc__slider::before {
    transform: translateX(24px);
}

.vcc__switch input:disabled + .vcc__slider {
    cursor: not-allowed;
    opacity: 0.85;
}

.vcc__switch input:focus-visible + .vcc__slider {
    outline: 2px solid var(--vcc-accent);
    outline-offset: 2px;
}

/* ---- Footer / butonlar ---------------------------------------------------- */
.vcc__footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.65rem;
    padding: 1.1rem 1.5rem;
    border-top: 1px solid var(--vcc-line);
}

.vcc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid var(--vcc-accent);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.vcc__btn--outline {
    background: #fff;
    color: var(--vcc-accent);
}

.vcc__btn--outline:hover {
    background: rgba(56, 67, 208, 0.06);
}

.vcc__btn--solid {
    background: var(--vcc-accent);
    color: #fff;
}

.vcc__btn--solid:hover {
    background: var(--vcc-accent-hover);
    border-color: var(--vcc-accent-hover);
}

/* ---- Details sekmesi: akordeon + tablo ------------------------------------ */
.vcc__acc {
    border: 1px solid var(--vcc-line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.vcc__acc-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.95rem 1rem;
    background: #fafafb;
    border: none;
    border-bottom: 1px solid transparent;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.vcc__acc.is-open .vcc__acc-head {
    border-bottom-color: var(--vcc-line);
}

.vcc__acc-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    color: var(--vcc-muted);
}

.vcc__acc.is-open .vcc__acc-chevron {
    transform: rotate(180deg);
}

.vcc__acc-title {
    font-size: 0.95rem;
    font-weight: 700;
    flex: 1;
}

.vcc__acc-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--vcc-muted);
    background: #ececf3;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.vcc__acc-body {
    display: none;
    padding: 0.5rem 1rem 1rem;
}

.vcc__acc.is-open .vcc__acc-body {
    display: block;
}

.vcc__acc-desc {
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--vcc-muted);
    margin: 0.6rem 0 0.9rem;
}

.vcc__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.vcc__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 620px;
}

.vcc__table th,
.vcc__table td {
    text-align: left;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--vcc-line);
    vertical-align: top;
    line-height: 1.45;
}

.vcc__table th {
    font-weight: 700;
    color: var(--vcc-ink);
    background: #fafafb;
    white-space: nowrap;
}

.vcc__table td:first-child {
    font-weight: 600;
    white-space: nowrap;
}

.vcc__pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.vcc__pill--yes {
    background: #e6f4ea;
    color: #1e7d3a;
}

.vcc__pill--no {
    background: #fdeaea;
    color: #b42323;
}

.vcc__pill--first {
    background: #e8ecfd;
    color: #2a37b8;
}

.vcc__pill--third {
    background: #fef2e0;
    color: #a4650a;
}

/* ---- About sekmesi -------------------------------------------------------- */
.vcc__about-block {
    margin-bottom: 1.3rem;
}

.vcc__about-block h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.vcc__tool-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.6rem;
}

.vcc__tool {
    border: 1px solid var(--vcc-line);
    border-radius: 8px;
    padding: 0.7rem 0.8rem;
}

.vcc__tool strong {
    display: block;
    font-size: 0.85rem;
}

.vcc__tool small {
    display: block;
    color: var(--vcc-muted);
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

/* ---- Floating re-open / withdrawal button --------------------------------- */
.vcc-fab {
    position: fixed;
    bottom: 18px;
    left: 18px;
    z-index: 2147482000;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #1c1c1c;
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}

.vcc-fab.is-visible {
    display: inline-flex;
}

.vcc-fab:hover,
.vcc-fab:focus {
    background: #3843d0;
    color: #fff;
    transform: translateY(-2px);
}

.vcc-fab svg path,
.vcc-fab svg circle {
    stroke: currentColor;
    fill: none;
}

.vcc-fab svg circle {
    fill: currentColor;
    stroke: none;
}

.vcc-fab svg {
    width: 24px;
    height: 24px;
}

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 720px) {
    .vcc__cats {
        grid-template-columns: repeat(2, 1fr);
    }

    .vcc__cat:nth-child(2n) {
        border-right: none;
    }

    .vcc__cat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--vcc-line);
    }

    .vcc__footer {
        grid-template-columns: 1fr;
    }

    .vcc__tab {
        font-size: 0.88rem;
        padding: 0.85rem 0.3rem;
    }

    .vcc__header {
        padding: 0.9rem 1.1rem;
    }

    .vcc__body {
        padding: 1.1rem 1.1rem 0.4rem;
    }
}

/* ---- Alt bar (bottom bar - ilk ekran, bloklamaz) -------------------------- */
.vcc-bar,
.vcc-bar * {
    box-sizing: border-box;
}

.vcc-bar {
    --vcc-accent: #3843d0;
    --vcc-accent-hover: #005188;
    --vcc-ink: #1c1c1c;
    --vcc-muted: #5a5a5a;
    --vcc-line: #e6e6e8;
    --vcc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147482500;
    display: none;
    background: #fff;
    border-top: 1px solid var(--vcc-line);
    box-shadow: 0 -8px 30px rgba(10, 14, 40, 0.12);
    font-family: var(--vcc-font);
    color: var(--vcc-ink);
    -webkit-font-smoothing: antialiased;
    animation: vccBarUp 0.3s ease both;
}

.vcc-bar.is-visible {
    display: block;
}

.vcc-bar__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.vcc-bar__text {
    flex: 1 1 auto;
    min-width: 0;
}

.vcc-bar__title {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.vcc-bar__desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: var(--vcc-muted);
}

.vcc-bar__desc a {
    color: var(--vcc-accent);
    text-decoration: underline;
}

.vcc-bar__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.vcc-bar .vcc__btn {
    padding: 0.72rem 1.2rem;
}

/* Bar acikken sabit widget'i (sag alt cagri/chat) bar yuksekligi kadar yukari al.
   Yalnizca masaustu; mobilde bar dikey buyudugu icin dokunulmaz. */
@media (min-width: 721px) {
    body.vcc-bar-open .widget-call-wrap {
        bottom: calc(10% + 130px);
        transition: bottom 0.25s ease;
    }
}

/* ---- Ghost buton (Cerez Ayarlari) ----------------------------------------- */
.vcc__btn--ghost {
    background: #fff;
    color: var(--vcc-ink);
    border-color: var(--vcc-line);
}

.vcc__btn--ghost:hover {
    border-color: var(--vcc-accent);
    color: var(--vcc-accent);
}

/* ---- Modal kapat (X) butonu ----------------------------------------------- */
.vcc__header {
    position: relative;
    justify-content: flex-start;
}

.vcc__close {
    margin-left: auto;
    padding: 0.35rem;
    background: none;
    border: none;
    line-height: 0;
    border-radius: 8px;
    color: var(--vcc-muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.vcc__close:hover {
    color: var(--vcc-ink);
    background: #f1f1f4;
}

.vcc__close svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 720px) {
    .vcc-bar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
        padding: 0.9rem 1rem;
    }

    .vcc-bar__actions {
        flex-wrap: wrap;
    }

    .vcc-bar__actions .vcc__btn {
        flex: 1 1 auto;
    }
}

@keyframes vccFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes vccPop {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes vccBarUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .vcc-bar,
    .vcc__backdrop,
    .vcc__dialog,
    .vcc__panel.is-active {
        animation: none;
    }
}
