/* Yasal metinler paneli: tek ekrana sığar, sayfa kaymaz */
html.soz-html { overflow: hidden; }
.soz-sayfa { background: linear-gradient(rgba(5, 7, 14, .8), rgba(5, 7, 14, .9)), url("/assets/img/kopru.jpg") center / cover fixed; }
.soz { display: flex; flex-direction: column; gap: 14px; height: 100vh; height: 100dvh; padding: calc(var(--ust, 70px) + 6px) clamp(10px, 3vw, 32px) 12px; }

.soz-sekmeler { display: grid; grid-template-columns: repeat(6, auto); gap: 8px; width: min(1120px, 100%); margin-inline: auto; }
.soz-sekmeler button, .soz-sekmeler a { min-width: 0; overflow-wrap: anywhere; hyphens: auto; padding: 8px 6px; border: 1px solid var(--altin); border-radius: 4px; background: rgba(8, 10, 18, .85); color: var(--altin-acik); font: 600 .9rem/1.2 var(--baslik); cursor: pointer; }
.soz-sekmeler a { display: grid; place-items: center; text-align: center; text-decoration: none; }
.soz-sekmeler button[aria-selected="true"] { background: linear-gradient(180deg, #c81d28, #6d0810); border-color: #ffe3a0; color: #fff3d6; box-shadow: 0 0 18px rgba(255, 70, 60, .45); }

/* Panelin renkleri tek yerdedir: görünüm yalnızca bu değişkenlerle değişir (bordo + altın) */
.soz-panel {
  --pano: linear-gradient(170deg, #45090f, #180305 74%);
  --dugme: #2b0609;
  --dugme-kenar: rgba(231, 189, 116, .55);
  --dugme-yazi: #f7e8c6;
  --no: #ecc873;
  --secili: linear-gradient(180deg, #ffe7a6, #d7a63d);
  --secili-yazi: #2a1200;
}

.soz-panel { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 318px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 14px; width: min(1120px, 100%); margin-inline: auto; padding: 14px; border: 2px solid #c9a45c; border-radius: 14px; background: var(--pano); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .45), inset 0 0 0 5px rgba(214, 176, 106, .2), 0 0 18px -4px rgba(255, 196, 90, .5), 0 22px 40px -14px #000; }
.soz-panel.tek { grid-template-columns: minmax(0, 1fr); }
.soz-panel.tek .soz-icindekiler, .soz-panel.tek .soz-liste-ac { display: none; }
.soz-panel.tek .soz-metin { justify-self: center; width: min(820px, 100%); }
.soz-liste-ac { display: none; }

/* İçindekiler: sade, hafif parlayan düğmeler; yalnızca seçili olan altın dolgulu */
@keyframes soz-parla { 0%, 100% { box-shadow: 0 0 3px 0 rgba(255, 196, 90, .2); } 50% { box-shadow: 0 0 7px 0 rgba(255, 206, 105, .48); } }
@keyframes soz-parla-secili { 0%, 100% { box-shadow: 0 0 8px 0 rgba(255, 196, 90, .6); } 50% { box-shadow: 0 0 15px 2px rgba(255, 214, 115, .85); } }

.soz-icindekiler { display: flex; flex-direction: column; min-height: 0; gap: 4px; }
.soz-icindekiler h2 { display: flex; align-items: center; gap: 10px; padding-inline: 8px; color: #ffe3a0; font-size: .9rem; letter-spacing: .28em; text-transform: uppercase; }
.soz-icindekiler h2::before, .soz-icindekiler h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #e7bd74); }
.soz-icindekiler h2::after { scale: -1 1; }
.soz-icindekiler ol { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; gap: 5px; overflow-y: auto; padding: 5px 7px; list-style: none; scrollbar-width: thin; }
.soz-icindekiler li { display: flex; flex: 1 0 auto; max-height: 44px; }
.soz-icindekiler button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 2px 8px 2px 0; border: 1px solid var(--dugme-kenar); border-radius: 7px; background: var(--dugme); color: var(--dugme-yazi); font: .8rem/1.15 var(--baslik); letter-spacing: .01em; text-align: left; cursor: pointer; animation: soz-parla 2.8s ease-in-out infinite; transition: translate .18s, border-color .18s; }
.soz-icindekiler button:hover { translate: 3px 0; border-color: #ffe3a0; }
.soz-icindekiler button i { display: grid; place-items: center; flex: none; align-self: stretch; width: 32px; border-right: 1px solid var(--dugme-kenar); color: var(--no); font: 700 .8rem/1 var(--baslik); }
.soz-icindekiler button[aria-current] { translate: 3px 0; border-color: #fff0c0; background: var(--secili); color: var(--secili-yazi); font-weight: 700; animation-name: soz-parla-secili; }
.soz-icindekiler button[aria-current] i { border-right-color: rgba(60, 38, 0, .35); color: var(--secili-yazi); }

/* Ferman: üstte ve altta ahşap tomar çubukları, ortada logo */
.soz-metin { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.soz-parsomen { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 7px 10px; padding: 26px 18px 26px 32px; background: radial-gradient(ellipse at 50% 48%, #fcf2d6, #ebd5a3 66%, #c29d60); box-shadow: inset 0 0 38px rgba(96, 56, 12, .52), 0 12px 22px -10px #000; outline: 1px solid rgba(124, 11, 19, .36); outline-offset: -14px; }
.soz-parsomen::before, .soz-parsomen::after { content: ""; position: absolute; z-index: 2; left: -10px; right: -10px; height: 14px; border-radius: 7px; background: radial-gradient(circle at 7px 7px, #fff2c4 0 2px, #d6a846 3px 5px, #6b4a14 6.500px, transparent 7px), radial-gradient(circle at calc(100% - 7px) 7px, #fff2c4 0 2px, #d6a846 3px 5px, #6b4a14 6.500px, transparent 7px), linear-gradient(#b8925a, #704c25 46%, #2f1c0a); box-shadow: 0 3px 7px rgba(30, 14, 0, .6); pointer-events: none; }
.soz-parsomen::before { top: -7px; }
.soz-parsomen::after { bottom: -7px; }
.soz-logo { position: absolute; top: 50%; left: 50%; width: min(80%, 540px); max-height: 76%; translate: -50% -50%; object-fit: contain; opacity: .2; pointer-events: none; }
/* Metin yan çubukla kaydırılır; zemini yoktur ki arkadaki logo görünsün */
.soz-gorunum { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 14px; }
.soz-gorunum::-webkit-scrollbar { width: 12px; }
.soz-gorunum::-webkit-scrollbar-track { border-radius: 6px; background: rgba(96, 56, 12, .2); }
.soz-gorunum::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 6px; background: linear-gradient(#a3141f, #5e060d) padding-box; }
@supports not selector(::-webkit-scrollbar) { .soz-gorunum { scrollbar-width: thin; scrollbar-color: #8a0f17 rgba(96, 56, 12, .2); } }
.soz-akis { color: #2b1a10; font-size: .95rem; line-height: 1.55; }
.soz-akis section + section { margin-top: 22px; }
.soz-belge + .soz-belge { margin-top: 34px; }
.soz-akis .soz-ana { margin-bottom: 18px; padding: 9px 10px; border-radius: 6px; background: linear-gradient(180deg, #a9121d, #5e060d); color: #ffe9b8; font: 700 1.05rem/1.3 var(--baslik); text-align: center; }
.soz-gorunum:focus { outline: none; }
.soz-akis h1 { margin-bottom: 12px; padding-bottom: 10px; background: linear-gradient(90deg, transparent, #8e1a1f 22%, #8e1a1f 78%, transparent) bottom / 100% 1px no-repeat; color: #7c0b13; font-size: 1.18rem; text-align: center; text-shadow: 0 1px 0 #fff6dc; break-after: avoid; }
.soz-akis h2 { margin: 6px 0 8px; color: #7c0b13; font-size: .98rem; break-after: avoid; }
.soz-akis p { margin-bottom: 9px; overflow-wrap: break-word; orphans: 2; widows: 2; }
.soz-akis ul { margin: 0 0 9px 20px; }
.soz-akis li { margin-bottom: 4px; overflow-wrap: break-word; }
.soz-akis li::marker { color: #8e1a1f; }
.soz-akis strong { color: #4a2408; }

.soz-not { text-align: center; font-size: .8rem; color: var(--soluk); }

@media (max-height: 780px) {
  .soz-icindekiler ol { gap: 3px; padding-block: 3px 4px; }
  .soz-icindekiler button { padding-block: 1px; font-size: .76rem; line-height: 1.1; }
}
@media (max-width: 760px) {
  .soz { gap: 8px; padding-bottom: 8px; }
  .soz-sekmeler { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .soz-sekmeler > * { grid-column: span 2; }
  .soz-sekmeler button, .soz-sekmeler a { padding: 4px 3px; font-size: .68rem; }
  .soz-panel, .soz-panel.tek { display: flex; flex-direction: column; gap: 6px; padding: 8px; }
  .soz-liste-ac { display: block; padding: 5px; border: 1px solid #ffe3a0; border-radius: 20px; background: var(--dugme); color: #ffe3a0; font: 600 .9rem var(--baslik); cursor: pointer; animation: soz-parla 2.8s ease-in-out infinite; }
  .soz-liste-ac[aria-expanded="true"] { background: var(--secili); color: var(--secili-yazi); }
  .soz-icindekiler { display: none; position: absolute; inset: 46px 6px 6px; z-index: 5; border: 1px solid #c9a45c; border-radius: 10px; background: var(--pano); }
  .soz-panel.liste-acik .soz-icindekiler { display: flex; }
  .soz-icindekiler h2 { display: none; }
  .soz-icindekiler ol { padding: 5px 7px; }
  .soz-gorunum { padding-right: 8px; }
  .soz-gorunum::-webkit-scrollbar { width: 9px; }
  .soz-metin, .soz-panel.tek .soz-metin { flex: 1; width: auto; gap: 9px; justify-self: auto; }
  .soz-parsomen { margin: 6px 8px; padding: 16px 8px 16px 15px; outline-offset: -8px; }
  .soz-parsomen::before, .soz-parsomen::after { left: -8px; right: -8px; }
  .soz-logo { width: 94%; }
  .soz-akis { font-size: .86rem; line-height: 1.5; }
  .soz-akis h1 { font-size: 1rem; }
}
@media (max-height: 640px) {
  .soz { gap: 8px; }
  .soz-sekmeler button, .soz-sekmeler a { padding-block: 4px; }
  .soz-panel { padding: 9px; }
  .soz-icindekiler { gap: 1px; }
  .soz-icindekiler h2 { font-size: .74rem; }
  .soz-icindekiler ol { gap: 2px; padding-block: 3px; }
  .soz-icindekiler button { padding-block: 0; border-radius: 5px; font-size: .69rem; line-height: 1.06; }
  .soz-icindekiler button i { width: 26px; font-size: .68rem; }
  .soz-metin { gap: 9px; }
  .soz-parsomen { margin-block: 6px; padding-block: 15px; outline-offset: -8px; }
  .soz-not { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .soz-icindekiler button, .soz-liste-ac { animation: none; box-shadow: 0 0 5px 0 rgba(255, 196, 90, .35); }
  .soz-icindekiler button[aria-current] { box-shadow: 0 0 12px 1px rgba(255, 196, 90, .75); }
}

/* Kayıt onayı: kutu ve aydınlatma penceresi */
.onay { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 16px; text-align: left; }
.onay input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: #a9121d; cursor: pointer; }
.onay p { margin: 0; font-size: .9rem; line-height: 1.6; }
.onay p button { padding: 0; border: 0; border-bottom: 1px solid rgba(231, 189, 116, .6); background: none; color: var(--altin-acik); font: 700 .9rem/1.4 var(--govde); text-align: left; cursor: pointer; }
.onay-pencere { margin: auto; width: min(820px, calc(100% - 20px)); height: min(720px, calc(100% - 20px)); max-width: none; max-height: none; padding: 14px; border: 2px solid #c9a45c; border-radius: 14px; background: linear-gradient(170deg, #45090f, #180305 74%); color: var(--yazi); box-shadow: 0 0 30px -4px rgba(255, 196, 90, .6), 0 24px 50px #000; }
.onay-pencere[open] { display: flex; flex-direction: column; gap: 10px; }
.onay-pencere::backdrop { background: rgba(3, 4, 9, .85); }
.onay-pencere > h2 { color: #ffe3a0; font-size: 1.08rem; line-height: 1.3; text-align: center; }
.onay-alt { display: flex; justify-content: center; align-items: center; min-height: 40px; text-align: center; }
.onay-alt [hidden] { display: none; }
.onay-alt .dugme { min-width: 180px; padding-block: 8px; }
.onay-ipucu { margin: 0; color: #f7e8c6; font-size: .86rem; }
@media (max-width: 760px) { .onay-pencere { padding: 9px; } .onay-pencere > h2 { font-size: .9rem; } }
