/* ===========================================================================
   URUN ALT SEKMELER — YENI GORUNUM (variant="v2", Plan b2cd5fd5, 16.11.2026)
   Kaynak: Claude Design handoff_urun_alt_sekmeler (README + koyu / acik / mobil prototip).
   Isaretleme: resources/views/components/detail-tab-v2.blade.php  ·  Betik: js/urun-sekme-v2.js
   Su an yalniz urun listesi (product-list.blade.php). Eski gorunum (.detailTab) degismedi.
   - Serit: sola yasli alt cizgili sekmeler (48px, mobil 44 + yatay kaydirma + sag solma).
   - .uasTipo: yonetim panelinden gelen HTML icin tek tipografi katmani; satir ici color / font-family /
     font-size / background !important ile ezilir (yalniz panel icinde), metin degismez.
   - .uasAdim: Nasil Yuklenir'deki <ol> adimlari 30px nane numara daireli.
   - Gorsel: oran korunur (height:auto), tiklayinca site ici onizleme (.uasKatman).
   =========================================================================== */
.urunSekme--v2 {
    --uasZemin: #181820;
    --uasKart: #20212B;
    --uasIc: #1C1D26;
    --uasKenar: #333444;
    --uasKenarGuclu: #4E4F5C;
    --uasCizgi: #2A2B38;
    --uasZebra: rgba(255,255,255,.025);
    --uasBaslik: #EDEEF2;
    --uasGovde: #C8C9D8;
    --uasIkincil: #ABACB5;
    --uasSoluk: #8B8C99;
    --uasNane: #80F1B1;
    --uasNaneZemin: rgba(128,241,177,.10);
    --uasNaneKenar: rgba(128,241,177,.40);
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: "Wix Madefor Display", system-ui, sans-serif;
    color: var(--uasGovde);
}
body.light .urunSekme--v2 {
    --uasZemin: #FAF9F5;
    --uasKart: #FFFFFF;
    --uasIc: #F5F4EE;
    --uasKenar: #E3E1D9;
    --uasKenarGuclu: #C7C5BC;
    --uasCizgi: #E8E6DF;
    --uasZebra: rgba(31,30,29,.025);
    --uasBaslik: #1F1E1D;
    --uasGovde: #3D3C38;
    --uasIkincil: #6B6A65;
    --uasSoluk: #5F5E58;
    --uasNane: #137E4C;
    --uasNaneZemin: rgba(19,126,76,.08);
    --uasNaneKenar: rgba(19,126,76,.40);
}

/* ---- Serit (K2, K11) ---- */
.uasSeritKap { position: relative; border-bottom: 1px solid var(--uasKenar); }
.uasSerit { margin: 0; padding: 0; list-style: none; display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.uasSerit::-webkit-scrollbar { display: none; }
.uasSerit > li { flex: none; }
.uasSekme {
    height: 48px; padding: 0 2px; border: 0; border-radius: 0; background: transparent; display: inline-flex; align-items: center; gap: 8px;
    font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--uasIkincil); white-space: nowrap; cursor: pointer;
    box-shadow: inset 0 -2px 0 transparent; transition: color .16s, box-shadow .16s;
}
.uasSekme:hover { color: var(--uasBaslik); }
.uasSekme[aria-selected="true"] { font-weight: 800; color: var(--uasBaslik); box-shadow: inset 0 -2px 0 var(--uasNane); }
.uasIkon { display: block; flex: none; color: var(--uasSoluk); }
.uasSekme[aria-selected="true"] .uasIkon { color: var(--uasNane); }
.uasSekme:focus-visible { outline: 2px solid var(--uasNane); outline-offset: -2px; border-radius: 4px; }
.uasRozet {
    min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--uasIc); border: 1px solid var(--uasKenar);
    color: var(--uasIkincil); font-size: 11.5px; font-weight: 800; line-height: 1; display: inline-flex; align-items: center;
    justify-content: center; font-variant-numeric: tabular-nums;
}
.uasSolma { display: none; }

/* ---- Paneller ---- */
.uasPanel { padding: 24px 0 8px; outline: none; }
.uasPanel[hidden] { display: none; }
.uasPanel:focus-visible { outline: 2px solid var(--uasNane); outline-offset: 4px; border-radius: 8px; }

/* ---- Tipografi katmani (K7) ---- */
.uasTipo { max-width: 760px; font-size: 15px; line-height: 1.75; color: var(--uasGovde); overflow-wrap: break-word; }
.uasTipo * { font-family: inherit !important; }
.uasTipo > * { margin-top: 0; margin-bottom: 0; }
.uasTipo > * + * { margin-top: 14px; }
.uasTipo :is(p, li, span, strong, b, em, i, u, div, small, font, label, td, caption, figcaption, blockquote) {
    color: inherit !important; background: transparent !important;
}
.uasTipo :is(p, li, span, strong, b, em, i, u, a, div, small, font, label) { font-size: inherit !important; }
.uasTipo p { margin: 0; font-size: 15px !important; line-height: 1.75; }
.uasTipo :is(h1, h2, h3, h4, h5, h6) { margin: 0; line-height: 1.35; font-weight: 800 !important; color: var(--uasBaslik) !important; background: transparent !important; }
.uasTipo > :is(h1, h2, h3, h4, h5, h6):not(:first-child) { margin-top: 22px; }
.uasTipo :is(h1, h2) { font-size: 21px !important; }
.uasTipo h3 { font-size: 17.5px !important; }
.uasTipo :is(h4, h5, h6) { font-size: 15px !important; }
.uasTipo :is(h1, h2, h3, h4, h5, h6) * { color: inherit !important; font-size: inherit !important; font-weight: inherit !important; }
.uasTipo :is(strong, b) { font-weight: 700 !important; }
.uasTipo a { color: var(--uasNane) !important; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; background: transparent !important; }
.uasTipo a:hover { text-decoration: none; }
.uasTipo :is(ul, ol) { margin: 0; padding-left: 20px; }
.uasTipo li { padding-left: 4px; line-height: 1.65; }
.uasTipo li + li { margin-top: 6px; }
.uasTipo li > :is(p, figure, .uasGorselDugme) { margin-top: 10px; }
.uasTipo blockquote {
    margin: 0; padding: 12px 16px; border-left: 3px solid var(--uasNane); border-radius: 0 10px 10px 0;
    background: var(--uasIc) !important; line-height: 1.65;
}
.uasTipo hr { border: 0; border-top: 1px solid var(--uasCizgi); opacity: 1; }

/* Tablo: JS .uasTabloKap ile sarar (yatay kaydirma + cerceve); JS yoksa tablo yine bicimli. */
.uasTabloKap { overflow-x: auto; border: 1px solid var(--uasKenar); border-radius: 12px; max-width: 100%; }
.uasTipo table {
    width: 100% !important; max-width: none !important; height: auto !important; margin: 0 !important; border: 0 !important;
    border-collapse: collapse; font-size: 14px; line-height: 1.5; color: var(--uasGovde);
}
.uasTipo > table { border: 1px solid var(--uasKenar) !important; }
.uasTipo :is(th, td) { border: 0 !important; padding: 10px 14px !important; text-align: left !important; vertical-align: top; font-variant-numeric: tabular-nums; }
.uasTipo th {
    background: var(--uasIc) !important; color: var(--uasIkincil) !important; font-size: 12px !important; font-weight: 800 !important;
    letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--uasKenar) !important;
}
.uasTipo th * { margin: 0 !important; color: inherit !important; font-size: inherit !important; font-weight: inherit !important; letter-spacing: inherit; text-transform: inherit; }
.uasTipo td { font-size: 14px !important; border-top: 1px solid var(--uasCizgi) !important; }
.uasTipo tbody tr:first-child td { border-top: 0 !important; }
.uasTipo thead + tbody tr:first-child td { border-top: 0 !important; }
.uasTipo tbody tr:nth-child(even) { background: var(--uasZebra) !important; }
.uasTipo td:first-child { color: var(--uasBaslik) !important; font-weight: 700; }

/* Gorsel (K8): oran korunur; JS <button> ile sarar (buyutme rozeti + onizleme). */
.uasTipo img {
    display: block; width: auto !important; max-width: 100% !important; height: auto !important; margin: 0 !important;
    border-radius: 12px; border: 1px solid var(--uasKenar); background: var(--uasIc);
}
.uasTipo :is(p, div):has(> img:only-child, > .uasGorselDugme:only-child) { text-align: left !important; }
.uasTipo figure { margin: 0; }
.uasTipo figcaption { margin-top: 6px; font-size: 12.5px !important; color: var(--uasSoluk) !important; }
.uasGorselDugme {
    position: relative; display: inline-block; max-width: 100%; padding: 0; border: 0; background: transparent;
    border-radius: 12px; cursor: zoom-in; vertical-align: top; line-height: 0;
}
.uasGorselDugme img { border-radius: 12px; }
.uasBuyut {
    position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 8px; background: var(--uasKart);
    border: 1px solid var(--uasKenarGuclu); color: var(--uasBaslik); display: flex; align-items: center; justify-content: center;
}
/* .uasTipo span kuralini (color / background !important) yenmek icin daha ozgul secici. */
.uasTipo .uasGorselDugme .uasBuyut { color: var(--uasBaslik) !important; background: var(--uasKart) !important; }
.uasTipo .uasGorselDugme:hover .uasBuyut { border-color: var(--uasNane); color: var(--uasNane) !important; }
.uasGorselDugme:focus-visible { outline: 2px solid var(--uasNane); outline-offset: 3px; }

/* Nasil Yuklenir adimlari: ust duzey <ol> numara daireli. Icerigi ne olursa olsun (metin + gorsel) bozulmasin
   diye grid degil, sol dolgu + mutlak konumlu daire. */
.uasAdim ol:not(li ol) { list-style: none; padding-left: 0; counter-reset: uasAdim; }
.uasAdim ol:not(li ol) > li { position: relative; min-height: 30px; padding: 3px 0 0 42px; counter-increment: uasAdim; }
.uasAdim ol:not(li ol) > li + li { margin-top: 12px; }
.uasAdim ol:not(li ol) > li::before {
    content: counter(uasAdim); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--uasNaneZemin); border: 1px solid var(--uasNaneKenar); color: var(--uasNane);
    font-size: 13px; font-weight: 800; line-height: 1; display: flex; align-items: center; justify-content: center;
}

/* ---- Gorsel onizleme penceresi (Partner Duyurular / Dosyalar ile ayni gorunum) ---- */
.uasKatman { position: fixed; inset: 0; z-index: 1060; background: rgba(8,8,12,.86); display: flex; align-items: center; justify-content: center; padding: 32px; }
.uasKatman[hidden] { display: none; }
.uasOnizleme { width: max-content; min-width: min(320px, 100%); max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; animation: uasIn .18s ease-out; }
.uasOnizlemeBas { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.uasOnizlemeBas b { min-width: 0; font-size: 14px; font-weight: 800; color: #EDEEF2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uasKapat { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #EDEEF2; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.uasKapat:focus-visible { outline: 2px solid #80F1B1; outline-offset: 2px; }
.uasOnizleme img { display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; margin: 0 auto; border-radius: 10px; object-fit: contain; }
.uasOnizleme small { font-size: 12px; color: #ABACB5; }
@keyframes uasIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }

/* ---- Mobil (K4) ---- */
@media (max-width: 767.98px) {
    .uasSeritKap { margin: 0 -12px; }
    .uasSerit { gap: 20px; padding: 0 12px; }
    .uasSekme { height: 44px; font-size: 14px; }
    .uasSolma {
        display: block; position: absolute; right: 0; top: 0; bottom: 1px; width: 44px; pointer-events: none;
        background: linear-gradient(90deg, transparent, var(--uasZemin)); transition: opacity .2s;
    }
    .uasSeritKap.sonda .uasSolma { opacity: 0; }
    .uasPanel { padding: 18px 0 8px; }
    .uasTipo { font-size: 14.5px; }
    .uasTipo p { font-size: 14.5px !important; }
    .uasTipo :is(h1, h2) { font-size: 19px !important; }
    .uasTipo h3 { font-size: 16.5px !important; }
    .uasKatman { padding: 12px; }
    .uasOnizleme img { max-height: calc(100vh - 100px); }
}
@media (prefers-reduced-motion: reduce) {
    .uasSekme, .uasSolma { transition: none; }
    .uasOnizleme { animation: none; }
}
