/* ==========================================================================
   Nirvana · TEMA KATMANI — slotjack9.pro / thesog34.com yüzey dili
   (analiz: _tasarim/referans-sog-jack-analiz.md)

   Bu dosya renk SEÇMEZ; renkler assets/css/default.css ve tema_*.css içindeki --th-* değişkenlerinden gelir.
   Burada yalnız "nasıl uygulanır" var:
     · yüzeyler düz renk değil, dikey gradyan; 1px serin gri çizgi; üstte iç parlama; uzun negatif yayılımlı gölge
     · gövdede 2 katmanlı yumuşak ışık (sol üst yardımcı ton, sağ üst vurgu)
     · header / alt bar / footer kenarında 1px "edge" çizgisi (yardımcı ton → vurgu)
     · ana düğme: dikey gradyan + üst parlak çizgi + düşük alfa vurgu gölgesi (dolgulu neon halo YOK)
     · büyük kutularda vurgu / yardımcı tonlardan radyal ışıma (alfa .12-.35)
   Tüm hareket kısa ve küçük alanlarda; prefers-reduced-motion'da kapanır.
   Geri almak için: modules/header.php içindeki polish-theme.css satırını silmek yeterli.
   ========================================================================== */

/* ---------- Gövde: iki katmanlı yumuşak ışık ---------- */
body {
    background-image:
        radial-gradient(1100px 560px at 10% -12%, rgba(var(--th-tone-b-rgb, 74, 163, 255), 0.09), transparent 60%),
        radial-gradient(900px 560px at 100% 0%, rgba(var(--th-accent-rgb, 229, 9, 20), 0.07), transparent 60%);
    background-attachment: fixed;
}

/* ---------- Header: gradyan + alt kenar çizgisi ---------- */
body .navbar {
    background: var(--th-header);
    border-bottom-color: transparent;
    box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.75);
}

body .navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--th-edge);
    opacity: 0.6;
    pointer-events: none;
}

/* ---------- Alt bar (mobil) ---------- */
body .mobile-nav-bar {
    background: var(--th-header);
    border-top-color: var(--th-stroke);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 -10px 28px -14px rgba(0, 0, 0, 0.75);
}

body .mobile-nav-bar::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--th-edge);
    opacity: 0.55;
    pointer-events: none;
}

/* ---------- Footer ---------- */
body .site-footer {
    background: var(--th-side);
    border-top-color: transparent;
}

body .site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--th-edge);
    opacity: 0.45;
    pointer-events: none;
}

/* ---------- Bölüm başlığı: sağında kaybolan çizgi ---------- */
body .section-title::after {
    background: linear-gradient(90deg, rgba(177, 186, 211, 0.3), rgba(var(--th-tone-b-rgb, 74, 163, 255), 0.12) 40%, transparent);
}

/* ---------- Kartlar: gradyan yüzey zaten --nv-card-grad üzerinden geliyor; hover'ı referans gibi yap ---------- */
body :is(
    .step-card:not(.step-card-daily-register),
    .event-strip,
    .win-card,
    .sponsorlar-card-item-link-desktop-v2
):hover {
    transform: translateY(-3px);
    border-color: var(--th-stroke-hi);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05), 0 20px 34px -20px rgba(0, 0, 0, 0.95);
}

/* ---------- Kutucuklar (hızlı erişim, sayı kartları): tile gradyanı + sağ üstte ton ışıması ---------- */
body :is(.step-card:not(.step-card-daily-register), .store-stat-card-inner, .bl-stat-item, .cekilis-stat-card) {
    background:
        radial-gradient(180px 140px at 84% 30%, rgba(var(--g, var(--th-accent-rgb)), 0.16), transparent 72%),
        var(--th-tile);
}

/* ---------- Ana düğme: dikey gradyan + üst parlak çizgi + düşük alfa vurgu gölgesi ---------- */
body :is(
    .buttonGradientv2:not(.navbar-action-register),
    .login-submit-button,
    .bl-btn-primary,
    .event-strip-cta.event-card-button,
    .store-warning-button,
    .navbar-action-login,
    .cekilis-join-button,
    .store-product-buy-button,
    .profile-connection-save-btn,
    .profile-account-save-btn,
    .giris-gerekli-btn,
    .btn-primary-premium-new,
    .btn.btn-primary,
    .sc__cta
) {
    background: var(--th-btn);
    box-shadow: 0 6px 16px -8px rgba(var(--th-accent-rgb), 0.7), inset 0 1px rgba(255, 255, 255, 0.35);
}

body :is(
    .buttonGradientv2:not(.navbar-action-register),
    .login-submit-button,
    .bl-btn-primary,
    .event-strip-cta.event-card-button,
    .store-warning-button,
    .navbar-action-login,
    .cekilis-join-button,
    .store-product-buy-button,
    .profile-connection-save-btn,
    .profile-account-save-btn,
    .giris-gerekli-btn,
    .btn-primary-premium-new,
    .btn.btn-primary,
    .sc__cta
):hover {
    background: var(--th-btn);
    filter: brightness(1.08);
    box-shadow: 0 8px 20px -8px rgba(var(--th-accent-rgb), 0.85), inset 0 1px rgba(255, 255, 255, 0.4);
}

/* ---------- İkincil düğme ---------- */
body :is(
    .navbar-action-register,
    .buttonGradientv2.navbar-action-register,
    .bl-btn:not(.bl-btn-primary),
    .cekilis-action-button,
    .profile-connection-edit-btn,
    .btn-secondary-premium-new,
    .cekilis-help-button,
    .slot-page-btn
) {
    background: var(--th-surface-hi);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
    border: 1px solid var(--th-stroke);
}

body :is(
    .navbar-action-register,
    .buttonGradientv2.navbar-action-register,
    .bl-btn:not(.bl-btn-primary),
    .cekilis-action-button,
    .profile-connection-edit-btn,
    .btn-secondary-premium-new,
    .cekilis-help-button,
    .slot-page-btn
):hover {
    background: var(--th-surface-hi);
    border-color: var(--th-stroke-hi);
    filter: brightness(1.12);
}

/* ---------- Açılır pencere ---------- */
body .login-modal-content {
    background: var(--th-surface-hi);
    border: 1px solid var(--th-stroke-hi);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -30px rgba(0, 0, 0, 0.95), 0 0 50px -24px rgba(var(--th-accent-rgb), 0.45);
}

/* ---------- Odak, seçim, kaydırma çubuğu ---------- */
body :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid rgba(var(--th-accent-rgb), 0.8);
    outline-offset: 2px;
}

body :is(input, select, textarea):focus {
    border-color: rgba(var(--th-accent-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--th-accent-rgb), 0.1);
}

::selection {
    background: rgba(var(--th-accent-rgb), 0.3);
    color: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--th-stroke-hi) transparent;
    }

    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--th-stroke-hi);
        border-radius: 8px;
        border: 2px solid transparent;
        background-clip: content-box;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }
}

/* ---------- İmza efekt: ana sayfa sayaç kartında dönen konik kenarlık + nefes alan gölge ---------- */
@property --th-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes th-spin {
    to { --th-angle: 360deg; }
}

@keyframes th-breathe {
    0%, 100% { box-shadow: 0 8px 18px -12px rgba(var(--th-accent-rgb), 0.5); }
    50% { box-shadow: 0 10px 28px -10px rgba(var(--th-accent-rgb), 0.55), inset 0 0 22px -8px rgba(var(--th-accent-rgb), 0.3); }
}

body .sc.is-live {
    position: relative;
    isolation: isolate;
    animation: th-breathe 3.2s ease-in-out infinite;
}

body .sc.is-live::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--th-angle),
        rgba(var(--th-accent-rgb), 0.12) 0deg,
        rgba(var(--th-accent-rgb), 0.12) 200deg,
        rgb(var(--th-accent-rgb)) 280deg,
        #ffffff 300deg,
        rgb(var(--th-accent-rgb)) 320deg,
        rgba(var(--th-accent-rgb), 0.12) 360deg);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: th-spin 3.6s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
    body .sc.is-live,
    body .sc.is-live::before {
        animation: none;
    }
}

/* ==========================================================================
   ORTAK BİLEŞENLER — tüm sayfalarda aynı görünüm (aykırılık yok)
   ========================================================================== */

/* ---------- Segmentli filtre (etkinlikler, bilet etkinlikleri ve benzerleri) ---------- */
body :is(.cekilis-tabs-container, .bl-chips) {
    display: flex;
    gap: 4px;
    padding: 4px;
    min-height: 48px;
    border-radius: 12px;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-stroke);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
    overflow-x: auto;
    scrollbar-width: none;
}

body :is(.cekilis-tabs-container, .bl-chips)::-webkit-scrollbar {
    display: none;
}

body :is(.cekilis-tab, .bl-chip) {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-family: var(--nv-font-ui);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    color: var(--nv-muted);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body :is(.cekilis-tab, .bl-chip) a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

body :is(.cekilis-tab, .bl-chip):not(.cekilis-tab-active):not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--nv-text);
}

body :is(.cekilis-tab-active, .bl-chip.active),
body .cekilis-tab.cekilis-tab-active {
    background: var(--th-btn);
    color: var(--nv-on-btn);
    font-weight: 700;
    box-shadow: 0 6px 16px -8px rgba(var(--th-accent-rgb), 0.7), inset 0 1px rgba(255, 255, 255, 0.35);
}

body .cekilis-tab-active a,
body .cekilis-tab.cekilis-tab-active a {
    color: var(--nv-on-btn);
}

/* "Filtrele" düğmesi: segmentli filtreyle aynı yükseklik ve köşe */
body .cekilis-action-button {
    min-height: 44px;
    border-radius: 12px;
}

/* ---------- Liste sayfası sayı kartları (etkinlikler + bilet etkinlikleri) ---------- */
body .cekilis-stats-grid--list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 0;
}

@media (min-width: 900px) {
    body .cekilis-stats-grid--list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

body .cekilis-stats-grid--list .cekilis-stat-card {
    padding: 12px 14px;
    gap: 12px;
}

body .cekilis-stats-grid--list .cekilis-stat-card:first-child .cekilis-stat-value {
    font-family: inherit;
    color: var(--nv-text);
}

body .cekilis-stats-grid--list .cekilis-stat-icon {
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
}

body .cekilis-stats-grid--list .cekilis-stat-icon .nv-ico3d {
    --nv-ico: 40px;
}

body .cekilis-stats-grid--list .cekilis-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
}

/* ---------- Boş durum ---------- */
body :is(.events-empty, .bl-empty, .store-empty) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 16px;
    text-align: center;
    color: var(--nv-muted);
    border-radius: var(--nv-r-card);
}

/* ---------- Sayfa başlığı: her sayfada aynı (sol hizalı, aynı boyut, aynı alt yazı) ---------- */
body .nv-page-head {
    margin: 4px 0 16px;
    text-align: left;
}

body :is(.nv-page-head h1, .slot-page-title, .sg-title, .leaderboard-title, .osc-page-title-custom) {
    margin: 0;
    font-family: var(--nv-font-body);
    font-size: clamp(1.35rem, 3.4vw, 1.75rem) !important;
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
    color: var(--nv-text) !important;
}

body :is(.nv-page-head p, .slot-page-subtitle, .sg-sub, .leaderboard-subtitle) {
    margin: 0.3rem 0 0 !important;
    font-size: 0.9rem !important;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    color: var(--nv-muted) !important;
}

body :is(.leaderboard-header, .oyun-secici-page .slot-page-header) {
    text-align: left !important;
    margin-bottom: 20px !important;
}

/* ---------- Arama kutusu ve seçim kutusu: her sayfada aynı yükseklik, köşe ve odak ---------- */
body :is(.sponsorlar-search-container, .slot-providers-search-wrap, .slot-games-search-wrap) {
    min-height: 48px;
    border-radius: 12px;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-stroke);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body :is(.sponsorlar-search-container, .slot-providers-search-wrap, .slot-games-search-wrap):focus-within {
    border-color: rgba(var(--th-accent-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--th-accent-rgb), 0.1);
}

body :is(.sponsorlar-search-container, .slot-providers-search-wrap, .slot-games-search-wrap) input:focus {
    box-shadow: none;
    border-color: transparent;
    outline: none;
}

body .osc-select {
    min-height: 48px;
    border-radius: 12px;
    background: var(--th-surface-soft);
    border: 1px solid var(--th-stroke);
    color: var(--nv-text);
}

/* ---------- Sayfa içi düğmeler: tek ölçü (44px, 12px köşe) ---------- */
body main :is(
    .buttonGradientv2:not(.navbar-action-login):not(.navbar-action-register),
    .login-submit-button,
    .bl-btn,
    .bl-btn-primary,
    .store-warning-button,
    .cekilis-join-button,
    .store-product-buy-button,
    .profile-connection-save-btn,
    .profile-account-save-btn,
    .profile-connection-edit-btn,
    .giris-gerekli-btn,
    .btn-primary-premium-new,
    .btn-secondary-premium-new,
    .btn.btn-primary,
    .sc__cta,
    .cekilis-action-button,
    .cekilis-help-button,
    .slot-page-btn,
    .slot-provider-search-btn
) {
    min-height: 44px;
    padding-inline: 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
}

body main .slot-provider-search-btn {
    background: var(--th-surface-hi);
    border: 1px solid var(--th-stroke);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.07);
    color: var(--nv-text);
}

/* ---------- Başlık kutusuz: Sizden Gelenler ve Şans Oyunları da aynı sayfa başlığını kullanır ---------- */
body .sans-header-title {
    margin: 0 0 12px;
    font-family: var(--nv-font-body);
    font-size: clamp(1.35rem, 3.4vw, 1.75rem) !important;
    font-weight: 800 !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-align: left;
    color: var(--nv-text) !important;
}

body .sg-page > .section-card:first-of-type .card-content {
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ---------- Şans oyunları kutucukları: rastgele mavi/sarı/mor/yeşil/kırmızı yerine temanın renkleri ---------- */
body .game-color-blue   { background-color: rgb(var(--th-accent-rgb)); }
body .game-color-yellow { background-color: rgb(var(--th-tone-b-rgb)); }
body .game-color-purple { background-color: rgb(var(--th-tone-c-rgb)); }
body .game-color-teal   { background-color: color-mix(in srgb, rgb(var(--th-accent-rgb)) 65%, #ffffff); }
body :is(.game-color-red, .game-color-amber) { background-color: color-mix(in srgb, rgb(var(--th-accent-rgb)) 65%, #000000); }

body .game-gradient-blue   { background: linear-gradient(to top, rgba(var(--th-accent-rgb), 0.38) 10%, transparent 70%); }
body .game-gradient-yellow { background: linear-gradient(to top, rgba(var(--th-tone-b-rgb), 0.38) 10%, transparent 70%); }
body .game-gradient-purple { background: linear-gradient(to top, rgba(var(--th-tone-c-rgb), 0.38) 10%, transparent 70%); }
body .game-gradient-teal   { background: linear-gradient(to top, color-mix(in srgb, rgb(var(--th-accent-rgb)) 65%, #ffffff) 0%, transparent 70%); opacity: 0.38; }
body :is(.game-gradient-red, .game-gradient-amber) { background: linear-gradient(to top, rgba(var(--th-accent-rgb), 0.3) 10%, transparent 70%); }

/* ---------- Profil: kutu içinde kutu dolgusu yok ---------- */
body :is(.profile-sidebar-content, .profile-menu-content, .profile-sponsors-content, .profile-sponsor-card-inner) {
    background: none;
}

/* ---------- Küçük eylem düğmeleri: aynı ölçü ---------- */
body :is(.profile-sponsor-btn, .btn-reset-stats) {
    min-height: 40px;
    border-radius: 10px;
}
