:root {
    --bg: #0b0b0b;
    --text: #e6e6e6;
    --muted: #bdbdbd;
    --accent-red: #b71c1c;
    --accent-gold: #ffb845;
    --max-width: 900px; /* daha dar ve odaklı içerik */
    --radius: 14px;
    --transition: 400ms cubic-bezier(.2, .9, .3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html, body {
    height: 100%
}

body {
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Sabit arkaplan */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(1000px 360px at 50% 10%, rgba(255, 184, 69, 0.03), transparent 60%),
    radial-gradient(900px 300px at 90% 90%, rgba(183, 28, 28, 0.02), transparent 70%),
    url("../img/bg.png") center/cover no-repeat,
    linear-gradient(180deg, #050505 0%, var(--bg) 100%);
}

/* Konteynerler */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 20px;
}

.main {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Intro */
.intro {
    min-height: 100vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.intro-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.intro-logo {
    width: clamp(40%, 24vw, 280px);
    height: clamp(40%, 24vw, 280px);
    border-radius: 28px;
    overflow: hidden;
}

.intro-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}

.intro-title {
    font-size: clamp(28px, 3.2vw, 36px);
    font-weight: 800;
}

.intro-sub {
    color: var(--muted);
    max-width: 52ch;
}

.intro-cta {
    margin-top: 6px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: transform .4s ease, opacity .4s ease;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}

.site-title {
    font-size: 18px;
}

.site-subtitle {
    font-size: 12px;
    color: var(--muted);
}

.nav {
    display: flex;
    gap: 12px;
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--text);
}

.sticky .header {
    position: fixed;
    inset: 0 0 auto 0;
    padding: 12px 20px;
    backdrop-filter: blur(6px);
    background: rgba(10, 10, 10, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    opacity: 1;
    transform: none;
}

.sticky .container {
    padding-top: 88px;
}

/* Bölüm iskeleti — tek sütun ve ortalanmış */
.section {
    text-align: center;
    margin: 40px auto;
}

.section-heading {
    font-size: 26px;
    margin-bottom: 10px;
}

.section-lead {
    color: var(--muted);
    max-width: 60ch;
    margin: 0 auto 18px;
}

.section-art {
    display: flex;
    justify-content: center;
}

.section-art img {
    width: min(480px, 90%);
    height: auto;
    opacity: .95
}

/* Kurallar bloğu – dikey dizilim, ortalı */
.rules {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
}

.rule {
    max-width: 720px;
    text-align: center;
    padding: 10px 6px;
}

.rule h3 {
    color: var(--accent-gold);
    font-size: 16px;
    margin-bottom: 4px;
}

.rule p {
    color: var(--muted);
}

/* Galeri */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.thumb {
    aspect-ratio: 16/11;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    background: transparent;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
    display: block;
}

.thumb:hover img {
    transform: scale(1.06);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow: auto; /* ⇦ büyük görsellerde kaydırma */
    -webkit-overflow-scrolling: touch;
    padding: 4vh 4vw; /* kenarlık payı */
}

.lightbox img {
    width: auto;
    height: auto; /* doğal oran */
    max-width: min(100%, 1800px);
    max-height: 92vh; /* ⇦ kısıtlamayı kaldır: kaydırılabilir olsun */
    /*max-height: none; !* ⇦ kısıtlamayı kaldır: kaydırılabilir olsun *!*/
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
    display: block;
}

.lightbox .close {
    position: absolute;
    top: 22px;
    right: 22px;
    color: var(--muted);
    font-size: 18px;
    background: transparent;
    border: none;
    cursor: pointer
}

/* Butonlar */
.btn {
    background: linear-gradient(90deg, var(--accent-red), #a91a1a);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: transform 200ms ease, box-shadow 200ms ease;
    box-shadow: 0 8px 24px rgba(183, 28, 28, 0.18)
}

.btn:active {
    transform: translateY(2px)
}

.btn.ghost {
    background: transparent;
    color: var(--accent-gold);
    border: 1px solid rgba(255, 184, 69, 0.4);
    box-shadow: none
}

.btn.alt {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
    color: #111
}

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
    color: #111
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    padding: 20px 0;
    text-align: center;
}

.footer .brand-name {
    font-weight: 700
}

.footer .copyright {
    color: var(--muted);
    font-size: 13px
}

.footer .social {
    color: var(--muted);
    text-decoration: none
}

.footer .social:hover {
    color: var(--accent-gold)
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms ease, transform 700ms ease
}

.reveal.visible {
    opacity: 1;
    transform: none
}

/* Responsive */
@media (max-width: 480px) {
    .intro-logo {
        width: 140px;
        height: 140px
    }

    .section-heading {
        font-size: 22px
    }
}

/* ===== Üst menü bozulmasını düzelt + çizgi ayıracı sadece içerikte ===== */

/* Header her zaman en üstte kalsın */
.header {
    position: relative;
    z-index: 50;
}

.sticky .header {
    z-index: 999;
}

/* Çizgi ayıracı sadece .main içindeki section'larda çalışsın */
.main .section {
    position: relative;
    margin: 56px auto;
    scroll-margin-top: 96px; /* menüden tıklayınca başlık gizlenmesin */
}

/* Bölümler arası ferah aralık */
.main .section + .section {
    margin-top: 88px;
    padding-top: 40px;
}

/* Ortalanmış ince çizgi – menüye tıklamayı engellemesin */
.main .section + .section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -28px;
    transform: translateX(-50%);
    width: min(720px, 90%);
    height: 2px;
    background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(200, 200, 200, 0.22) 12%,
            rgba(220, 220, 220, 0.32) 50%,
            rgba(200, 200, 200, 0.22) 88%,
            rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none; /* tıklama bloklamasın */
    z-index: 0; /* header’ın altında kalsın */
    -webkit-mask: none !important; /* eski mızrak maskelerini geçersiz kıl */
    mask: none !important;
}

/* Küçük ekran ayarı */
@media (max-width: 520px) {
    .main .section {
        margin: 44px auto;
    }

    .main .section + .section {
        margin-top: 68px;
        padding-top: 32px;
    }

    .main .section + .section::before {
        width: 86%;
        top: -22px;
    }
}

.list-clean {
    list-style: none;
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.list-clean li::marker {
    content: none;
}

.list-clean li + li {
    margin-top: 6px;
}


.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 12px;
    color: #111;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-red));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
    cursor: pointer;
    opacity: 0;
    transform: translateY(8px) scale(.96);
    transition: opacity .25s ease, transform .25s ease, box-shadow .25s ease;
    z-index: 1000; /* header ve içerik üstünde kalsın */
}

.back-to-top:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .55);
    transform: translateY(4px) scale(.98);
}

.back-to-top:active {
    transform: translateY(2px) scale(.97);
}

.back-to-top:focus-visible {
    outline: 2px solid rgba(255, 184, 69, .8);
    outline-offset: 2px;
}

/* Görünür olma hâli */
.back-to-top.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Karanlık arka planlarda şeffaf isterse:
.back-to-top{ background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(6px); }
*/

/* Küçük ekranlarda konumu biraz içeri al */
@media (max-width: 520px) {
    .back-to-top {
        right: 14px;
        bottom: 18px;
        width: 40px;
        height: 40px;
    }
}

/* Hareket kısıtlaması tercihi olanlar için */
@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: none;
    }
}

.subpage .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    backdrop-filter: blur(6px);
    background: rgba(10, 10, 10, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    opacity: 1;
    transform: none;
    z-index: 999;
}

.subpage .container {
    padding-top: 88px;
}

/* --- Köz taneleri (embers) katmanı --- */
#embers {
    position: fixed;
    inset: 0;
    z-index: 0; /* içerik altı / body::before üstü */
    pointer-events: none; /* tıklamaları engelleme */
    opacity: .75; /* efekt yoğunluğu; .55–.9 arası oynat */
    mix-blend-mode: screen; /* koyu temada parıltı etkisi */
}

/* Hareket kısıtlaması tercih edenlere saygı */
@media (prefers-reduced-motion: reduce) {
    #embers {
        display: none !important;
    }
}

body::before {
    content: none !important;
}

/* YENİ sabit arkaplan (mobil uyumlu) */
html::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2; /* her şeyin arkasında */
    pointer-events: none;
    background: radial-gradient(1200px 400px at 10% 10%, rgba(255, 184, 69, 0.03), transparent 6%),
    radial-gradient(900px 300px at 90% 90%, rgba(183, 28, 28, 0.02), transparent 8%),
    url("../img/bg.png") center / cover no-repeat,
    linear-gradient(180deg, #050505 0%, #0b0b0b 100%);
}

/* Mobil adres çubuğu dalgalanmasında sıçrama yapmasın */
.intro {
    min-height: 100svh;
}

/* tarayıcı desteklemiyorsa 100vh devreye girer */

html {
    background: #0b0b0b;
    color-scheme: dark; /* iOS/Android bar geçişlerinde beyaz parlamayı azaltır */
}

/* Body zaten şeffaf kalsın; arka planı html taşır */
body {
    background: transparent;
}

/* iOS alt güvenli alanında bant olmasın */
@supports (padding: max(0px)) {
    body {
        padding-bottom: max(0px, env(safe-area-inset-bottom));
    }
}

+/* Mobil menü/dock varsayılan olarak gizli (desktop dâhil) */
+.mobile-dock,
+.mobile-menu{
+  display: none;
+}
/* === Mobile Dock & Dropdown Menu (header içinde, sağda) === */
@media (max-width: 820px) {
    .nav {
        display: none;
    }

    /* normal üst menüyü gizle */
    .header {
        position: sticky;
        top: 0;
    }

    /* zaten fixed/ sticky ise sorun değil */
    .mobile-dock.in-header {
        display: grid;
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 12px;
        background: rgba(0, 0, 0, .55);
        border: 1px solid rgba(255, 255, 255, .12);
        box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        place-items:center;
        z-index: 10010;
    }

    .mobile-dock .grid4 {
        display: grid;
        grid-template-columns: repeat(2, 10px);
        grid-template-rows: repeat(2, 10px);
        gap: 6px;
    }

    .mobile-dock .grid4 i {
        display: block;
        width: 10px;
        height: 10px;
        border-radius: 4px;
        background: var(--text);
        opacity: .85;
    }

    .mobile-menu.in-header {
        display: flex;
        position: absolute;
        top: 100%;
        right: 12px;
        transform: translateY(8px);
        opacity: 0;
        pointer-events: none;
        flex-direction: column; gap: 8px;
        background: rgba(0, 0, 0, .70);
        border: 1px solid rgba(255, 255, 255, .12);
        padding: 10px;
        border-radius: 14px;
        box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 10011;
        min-width: min(66vw, 320px);
        transition: transform .2s ease, opacity .2s ease;
    }

    .mobile-menu.in-header.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu a {
        display: block;
        padding: 12px 14px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        text-decoration: none;
        font-weight: 600;
    }

    .mobile-menu a:active {
        transform: translateY(1px);
    }
}

@media (min-width: 821px){
     .mobile-dock, .mobile-menu{ display: none !important; }
}

/* Dock içinde nereye tıklansa buton çalışsın */
.mobile-dock.in-header * {
    pointer-events: none;
}

/* Dokunmatik hedefi biraz büyüt (kareler küçükse) */
@media (max-width: 820px){
    .mobile-dock.in-header{
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 820px){
    .intro-logo{
        /* mobilde daha büyük */
        width: min(72vw, 340px);
        height: min(72vw, 340px);
    }
}

@media (max-width: 360px){
    .intro-logo{
        /* çok küçük ekranlar için biraz daha */
        width: 78vw;
        height: 78vw;
    }
}