/* ==========================================================================
   MetaCasino — modernleştirme katmanı (V1–V7). Sitenin kendi renkleri, menüsü ve
   kart düzeni korunur; yalnızca tipografi, boşluk, erişilebilirlik ve taşma
   hataları düzeltilir. styles.css + home.css'ten sonra yüklenir.
   ========================================================================== */

/* V3 / H3 — dış font yerine sistem fontu (eskiden Google Fonts: Plus Jakarta Sans) */
:root {
    --font-main: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mc-focus: #2563eb;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body { font-size: 16px; line-height: 1.65; text-rendering: optimizeLegibility; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* Grid sütunları içerikle taşmasın: ana sütun eskiden 1141 px'e açılıp sağdaki kenar çubuğunu
   ekranın dışına itiyordu (canlı sitede de görünüyordu). */
.layout > main, .layout > aside, .hub-layout > main, .hub-layout > aside, .layout-single > main { min-width: 0; }
.sidebar .widget { overflow-wrap: anywhere; }

/* Okuma metni */
.seo-content p, .seo-content li { font-size: 1rem; line-height: 1.75; }
.seo-content h2 { letter-spacing: -0.01em; margin-top: 1.6em; }
.seo-content h3 { letter-spacing: -0.005em; }
.seo-content img { height: auto; }
.seo-content a:not([class]) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.seo-content a:not([class]):hover { color: var(--primary-hover); }

/* V4 — tablolar mobilde yatay kaydırılır, sayfa taşmaz */
.seo-content table, main table { max-width: 100%; }
@media (max-width: 768px) {
    .seo-content table, main table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .hero h1 { font-size: 1.9rem; letter-spacing: -0.5px; }
    .hero { padding: 48px 0 36px; }
}
img, iframe, video { max-width: 100%; }

/* V7 — içeriğe geç linki, klavye odak çerçevesi */
.mc-skip { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.mc-skip:focus { left: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--mc-focus); outline-offset: 2px; border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* SSS açılır-kapanır */
details.faq-item > summary { cursor: pointer; }

/* Footer: sponsorluk notu (İ1) ve sorumlu oyun (K4) */
.mc-sponsor-note { font-size: .875rem; line-height: 1.6; opacity: .85; margin-top: 12px; }
.mc-sponsor-note a, .mc-rg-note a { text-decoration: underline; text-underline-offset: 2px; }
.mc-rg-note { margin-top: 12px; font-size: .875rem; line-height: 1.6; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.mc-18 { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; border-radius: 50%; border: 2px solid currentColor; font-weight: 800; font-size: .8rem; flex: none; }

/* İletişim kanalları (K2) */
.mc-channels { display: grid; gap: 12px; margin-top: 8px; }
.mc-channel { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border-light); border-radius: var(--radius-lg); background: var(--bg-surface); color: var(--text-dark); transition: border-color .2s, box-shadow .2s; }
.mc-channel:hover { border-color: var(--primary); box-shadow: var(--shadow-md); }
.mc-channel i { font-size: 1.6rem; color: var(--primary); flex: none; }
.mc-channel strong { display: block; font-size: 1rem; }
.mc-channel small { display: block; color: var(--text-muted); font-size: .875rem; margin-top: 2px; }

/* 404 */
.mc-404-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.mc-404-links a { display: inline-block; padding: 10px 16px; border: 1px solid var(--border-light); border-radius: 10px; background: var(--bg-surface); font-weight: 600; }
.mc-404-links a:hover { border-color: var(--primary); color: var(--primary); }

/* Betlink popup (A5) */
.mc-popup { position: fixed; inset: 0; z-index: 3000; background: rgba(2, 6, 23, .72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mc-popup-box { position: relative; max-width: 480px; width: 100%; }
.mc-popup-box a { display: block; }
.mc-popup-box img { width: 100%; height: auto; border-radius: 14px; display: block; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.mc-popup-close { position: absolute; top: -14px; right: -14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-light); background: #fff; color: #0f172a; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md); }
.mc-popup-close:hover { background: #f1f5f9; }
@media (max-width: 520px) { .mc-popup-close { top: 6px; right: 6px; } }
