/* =========================================================================
   BAUGO Online - Cerez Onay Sistemi (KVKK / GDPR)
   Tum sinif adlari `bgc-` on ekiyle baslar; app.css / main.css / custom.css /
   mobil.css kurallariyla cakismaz.

   Yukleme sirasi: bu dosya mobil.css'ten SONRA yuklenmelidir.
   ========================================================================= */

.bgc-root {
    --bgc-bg: #16171a;
    --bgc-bg-soft: #1e1f24;
    --bgc-border: #2c2d34;
    --bgc-border-soft: #24252b;
    --bgc-text: #e7e7e9;
    --bgc-text-muted: #9a9ba3;
    --bgc-accent: #e91e63;
    --bgc-accent-2: #f35000;
    --bgc-green: #48bb78;
    --bgc-green-ink: #06180d;
    --bgc-radius: 18px;
    --bgc-shadow: 0 18px 48px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .4);

    font-family: "Karla", "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Ekran okuyucuya ozel */
.bgc-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* JS yok / JS var ayrimi */
.bgc-nojs {
    display: none;
}

/* =========================================================================
   BANT
   ========================================================================= */

.bgc-banner {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    right: 0;
    bottom: 0;
    box-sizing: border-box;
    /* Panel diliyle aynı buzlu cam yüzey: bant artık sayfanın üstüne
       yapıştırılmış opak bir kutu değil, arkasındaki içeriği hafifçe
       süzen bir katman. Saydamlık desteklenmezse aşağıdaki @supports
       yedeği düz renge düşüyor. */
    background: linear-gradient(180deg, rgba(30, 31, 36, .72), rgba(22, 23, 26, .82));
    backdrop-filter: blur(26px) saturate(165%);
    -webkit-backdrop-filter: blur(26px) saturate(165%);
    color: var(--bgc-text);
    border-top: 1px solid var(--bgc-border);
    border-radius: var(--bgc-radius) var(--bgc-radius) 0 0;
    box-shadow: var(--bgc-shadow);
    overflow: hidden;
    padding: 21px 16px calc(18px + env(safe-area-inset-bottom, 0px));
    animation: bgc-slide-up .32s cubic-bezier(.22, .61, .36, 1) both;
}

/* Üst marka şeridi. 3px keskin bir pembe→turuncu bant, panelin hiçbir
   yerinde olmayan bir dil konuşuyordu; 2px'e indi ve iki uca doğru sönüyor
   — kartın kenarına yapıştırılmış bir etiket değil, yüzeyin bir vurgusu. */
.bgc-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        rgba(243, 122, 82, 0) 0%,
        var(--bgc-accent-2) 30%,
        var(--bgc-accent) 70%,
        rgba(233, 30, 99, 0) 100%);
    opacity: .75;
}

.bgc-banner.bgc-is-open {
    display: block;
}

/* Saydamlık yoksa okunabilirlik saydamlığa bağlı kalmasın. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .bgc-banner { background: var(--bgc-bg); }
}

/* Gecerli onay cerezi varsa bant hicbir kosulda gorunmez (FOUC onleyici). */
.bgc-root.bgc-consented .bgc-banner {
    display: none;
}

.bgc-banner *,
.bgc-modal * {
    box-sizing: border-box;
}

.bgc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bgc-banner-title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: var(--bgc-text);
}

.bgc-banner-desc {
    margin: 0;
    font-size: .8125rem;
    line-height: 1.6;
    color: var(--bgc-text-muted);
}

.bgc-banner-desc strong {
    color: var(--bgc-text);
    font-weight: 700;
}

/* Bağlantılar marka turuncusu. Yeşil yalnız bu bileşende vardı. */
.bgc-banner-desc a,
.bgc-modal-foot-note a {
    color: #f79c7b;
    text-decoration: underline;
    text-decoration-color: rgba(247, 156, 123, .45);
    text-underline-offset: 3px;
    transition: color .15s ease, text-decoration-color .15s ease;
}

.bgc-banner-desc a:hover,
.bgc-modal-foot-note a:hover {
    color: #ffd0ae;
    text-decoration-color: currentColor;
}

.bgc-banner-desc a:hover,
.bgc-modal-foot-note a:hover {
    color: #6fd396;
}

.bgc-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

/* =========================================================================
   BUTONLAR
   KVKK: "Reddet" secenegi "Kabul Et" ile ayni boyut, ayni erisilebilirlikte.
   ========================================================================= */

.bgc-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .2px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}

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

.bgc-btn:focus-visible {
    outline: 2px solid #f37a52;
    outline-offset: 2px;
}

/* Birincil eylem MARKA turuncusu. Yeşil, sitenin başka hiçbir yerinde
   birincil eylem rengi değil; bant tek başına farklı bir dil konuşuyordu. */
/* BİRİNCİL EYLEM — `/auth` ekranındaki `.au-btn` ile AYNI DESEN, YEŞİL ton.
   Desen: dinlenme hâlinde dolgu neredeyse görünmez (%7) ve düğmeyi KENARLIK
   tanımlar; hover renkleri yakar (%38). Üç durak, turuncunun yeşil karşılığı:
   açık yeşil → ana yeşil (--bgc-green) → turkuaz.

   RENK NEDEN YEŞİL: buradaki birincil eylem bir ONAY. Turuncu, sitenin her
   yerinde "devam et / satın al" demek; onayı da aynı renkte göstermek rıza
   ile satışı aynı sinyale bağlardı. Desen aynı kaldığı için düğme yine
   sitenin dilini konuşuyor, yalnız anlamı ayrışıyor. */
.bgc-btn-primary {
    color: #fff;
    border-color: rgba(72, 187, 120, .55);
    background: linear-gradient(96deg,
        rgba(126, 226, 168, .07) 0%,
        rgba(72, 187, 120, .07) 45%,
        rgba(52, 201, 163, .07) 100%);
    transition: background .25s ease, border-color .25s ease;
}

.bgc-btn-primary:hover {
    color: #fff;
    border-color: rgba(126, 226, 168, .95);
    background: linear-gradient(96deg,
        rgba(126, 226, 168, .38) 0%,
        rgba(72, 187, 120, .38) 45%,
        rgba(52, 201, 163, .38) 100%);
}

/* Odak halkası da bu düğmede yeşil — kenarlığıyla aynı aileden. */
.bgc-btn-primary:focus-visible { outline-color: var(--bgc-green); }

.bgc-btn-secondary {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .14);
    color: var(--bgc-text);
}

.bgc-btn-secondary:hover {
    background: #2a2b31;
    border-color: #52535c;
    color: #fff;
}

/* Üçüncül eylem: altı çizili bir link, iki hap butonun altında farklı bir
   nesne gibi duruyordu. Aynı hap biçimi, ama sessiz. */
.bgc-btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--bgc-text-muted);
    font-weight: 600;
    padding-left: 12px;
    padding-right: 12px;
}

.bgc-btn-ghost:hover {
    color: var(--bgc-text);
    background: rgba(255, 255, 255, .05);
}

/* =========================================================================
   MODAL
   ========================================================================= */

.bgc-modal {
    display: none;
    position: fixed;
    z-index: 100001;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.bgc-modal[hidden] {
    display: none;
}

.bgc-modal.bgc-is-open {
    display: flex;
}

.bgc-modal-backdrop {
    position: absolute;
    inset: 0;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, .78);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.bgc-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: var(--bgc-bg);
    color: var(--bgc-text);
    border: 1px solid var(--bgc-border);
    border-radius: var(--bgc-radius);
    box-shadow: var(--bgc-shadow);
    overflow: hidden;
    animation: bgc-zoom-in .22s cubic-bezier(.22, .61, .36, 1) both;
}

.bgc-modal-dialog::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--bgc-accent), var(--bgc-accent-2));
}

.bgc-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--bgc-border-soft);
}

.bgc-modal-title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #fff;
}

.bgc-modal-close {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--bgc-text-muted);
    font-size: 1.5rem;
    line-height: 1;
    width: 34px;
    height: 34px;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

.bgc-modal-close:hover {
    color: #fff;
    background: var(--bgc-bg-soft);
}

.bgc-modal-close:focus-visible {
    outline: 2px solid var(--bgc-green);
    outline-offset: 2px;
}

.bgc-modal-body {
    padding: 16px 18px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bgc-modal-desc {
    margin: 0 0 16px;
    font-size: .8125rem;
    line-height: 1.65;
    color: var(--bgc-text-muted);
    text-align: justify;
}

.bgc-modal-foot-note {
    margin: 14px 0 0;
    font-size: .75rem;
    color: var(--bgc-text-muted);
}

.bgc-modal-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--bgc-border-soft);
    background: #131418;
}

/* =========================================================================
   KATEGORI KARTLARI + ANAHTAR (SWITCH)
   ========================================================================= */

.bgc-group {
    background: var(--bgc-bg-soft);
    border: 1px solid var(--bgc-border-soft);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.bgc-group:last-of-type {
    margin-bottom: 0;
}

.bgc-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bgc-group-title {
    flex: 1 1 auto;
    margin: 0;
    font-size: .875rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

.bgc-badge {
    flex: 0 0 auto;
    font-size: .625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--bgc-green);
    background: rgba(72, 187, 120, .12);
    border: 1px solid rgba(72, 187, 120, .35);
    border-radius: 999px;
    padding: 3px 9px;
}

.bgc-group-desc {
    margin: 10px 0 0;
    font-size: .75rem;
    line-height: 1.6;
    color: var(--bgc-text-muted);
}

.bgc-switch {
    position: relative;
    flex: 0 0 auto;
    display: inline-block;
    width: 46px;
    height: 26px;
}

.bgc-switch input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.bgc-switch input:disabled {
    cursor: not-allowed;
}

.bgc-switch-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #3a3b43;
    border: 1px solid #4a4b53;
    transition: background-color .2s ease, border-color .2s ease;
    pointer-events: none;
}

.bgc-switch-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #c9cad1;
    transition: transform .2s cubic-bezier(.22, .61, .36, 1), background-color .2s ease;
}

.bgc-switch input:checked ~ .bgc-switch-track {
    background: var(--bgc-green);
    border-color: var(--bgc-green);
}

.bgc-switch input:checked ~ .bgc-switch-track .bgc-switch-knob {
    background: #fff;
    transform: translateX(20px);
}

.bgc-switch input:focus-visible ~ .bgc-switch-track {
    outline: 2px solid var(--bgc-green);
    outline-offset: 2px;
}

.bgc-switch-locked {
    opacity: .55;
}

/* =========================================================================
   CEREZ POLITIKASI SAYFASI (Legal::cookiePolicy)
   Bu blok acik zeminli `.tos-container` icinde calisir.
   ========================================================================= */

.bgc-policy-status {
    background: #f6f7f9;
    border: 1px solid #e2e4e8;
    border-left: 4px solid #e91e63;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 28px;
}

.bgc-policy-status-title {
    margin: 0 0 10px !important;
    font-weight: 700;
    color: #2f3033;
}

.bgc-policy-status-list {
    list-style: none !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.bgc-policy-status-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: .875rem;
    color: #5d5a5a;
}

.bgc-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.bgc-dot-on {
    background: #48bb78;
}

.bgc-dot-off {
    background: #c9ccd2;
}

.bgc-policy-status-note {
    margin: 0 0 14px !important;
    font-size: .8125rem;
    color: #7a7a7a;
}

.bgc-policy-open {
    background: #16171a;
    border-color: #16171a;
    color: #fff;
}

.bgc-policy-open:hover {
    background: #2c2d34;
    border-color: #2c2d34;
    color: #fff;
}

/* =========================================================================
   ANIMASYONLAR
   ========================================================================= */

@keyframes bgc-slide-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bgc-zoom-in {
    from {
        opacity: 0;
        transform: scale(.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) and (prefers-reduced-motion: no-preference) /* ETKİSİZ: hareket azaltma yok sayılıyor */ {

    .bgc-banner,
    .bgc-modal-dialog {
        animation: none !important;
    }

    .bgc-btn,
    .bgc-switch-track,
    .bgc-switch-knob,
    .bgc-modal-close {
        transition: none !important;
    }

    .bgc-btn:active {
        transform: none;
    }
}

/* =========================================================================
   DUYARLI DUZEN
   Mobil: tam genislik alt bant.  Masaustu: sol alt kose karti.
   ========================================================================= */

@media screen and (max-width: 768px) {
    .bgc-banner-actions .bgc-btn {
        flex: 1 1 auto;
        min-width: calc(50% - 5px);
    }

    .bgc-banner-actions .bgc-btn-ghost {
        min-width: 100%;
    }

    .bgc-modal-dialog {
        max-height: calc(100vh - 24px);
    }

    .bgc-modal-foot {
        flex-direction: column-reverse;
    }

    .bgc-modal-foot .bgc-btn {
        width: 100%;
    }
}

@media screen and (min-width: 769px) {
    .bgc-banner {
        left: 24px;
        right: auto;
        bottom: 24px;
        width: 440px;
        max-width: calc(100vw - 48px);
        /* Kenar sabit gri değil şeffaf ton — panel bileşeniyle aynı. */
        border: 1px solid rgba(255, 255, 255, .09);
        border-radius: var(--bgc-radius);
        padding: 22px 20px 18px;
    }

    .bgc-banner-inner {
        gap: 16px;
    }

    .bgc-banner-actions .bgc-btn-primary,
    .bgc-banner-actions .bgc-btn-secondary {
        flex: 1 1 calc(50% - 5px);
    }

    .bgc-banner-actions .bgc-btn-ghost {
        flex: 1 1 100%;
    }
}

@media screen and (min-width: 1024px) {
    .bgc-banner-title {
        font-size: 1.0625rem;
    }
}

@media print {

    .bgc-banner,
    .bgc-modal {
        display: none !important;
    }
}
