/* External imports (mutlaka en üstte) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* ========== Base / Theme ========== */
:root{
    --bg: #0b1220;
    --panel: rgba(255,255,255,.06);
    --panel-2: rgba(255,255,255,.10);
    --text: rgba(255,255,255,.90);
    --muted: rgba(255,255,255,.65);
    --border: rgba(255,255,255,.10);

    --primary: #33B5FF;
    --primary-2: #2b78ff;

    --radius: 18px;
    --shadow: 0 10px 35px rgba(0,0,0,.30);

    --max: 1120px;
    --ticker-gap: 22px;
}

@media (prefers-color-scheme: light){
    :root{
        --bg:#f6f8fc;
        --panel: rgba(0,0,0,.04);
        --panel-2: rgba(0,0,0,.06);
        --text: rgba(0,0,0,.88);
        --muted: rgba(0,0,0,.62);
        --border: rgba(0,0,0,.10);
        --shadow: 0 10px 28px rgba(0,0,0,.12);
    }
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{
    scrollbar-gutter: stable;
}
body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);

    /* Kaymayı azaltmak için scrollbar her zaman var */
    overflow-y: scroll;
    overflow-x: hidden;

    background:
            radial-gradient(1100px 700px at 15% 20%, rgba(51,181,255,.18), transparent 55%),
            radial-gradient(900px 600px at 85% 25%, rgba(43,120,255,.14), transparent 55%),
            radial-gradient(800px 700px at 55% 90%, rgba(255,51,166,.08), transparent 60%),
            var(--bg);
}

input {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{ color: inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.skip-link{
    position:absolute; left:-999px; top:auto;
    width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
    left:16px; top:16px; width:auto; height:auto;
    padding:10px 12px; border-radius: 12px;
    background: rgba(0,0,0,.75); color:white;
    z-index:9999;
}

/* ========== Sticky Header (blur yok) ========== */
.site-header{
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10,16,28,.92);
    border-bottom: 1px solid var(--border);
}

@media (prefers-color-scheme: light){
    .site-header{ background: rgba(255,255,255,.92); }
}

/* ========== Topbar / Ticker (marquee yok, kesintisiz) ========== */
.topbar{
    border-bottom: 1px solid var(--border);
}

.ticker{
    overflow:hidden;
    padding: 10px 0;
}
.ticker__track{
    display:flex;
    width: max-content;
    will-change: transform;
    animation: ticker 28s linear infinite;
}
.ticker__group{
    display:flex;
    gap: var(--ticker-gap);
    padding-right: var(--ticker-gap);
    white-space: nowrap;
}
.ticker__item{
    color: var(--muted);
    font-weight: 650;
    display:inline-flex;
    align-items:center;
    padding: 0 6px;
}

@keyframes ticker{
    to{ transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce){
    .ticker__track{ animation: none; }
}

/* ========== Headerbar ========== */
.headerbar{
    padding: 12px 0;
}

.header__inner{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 14px;
}

/* Brand */
.brand{
    display:flex;
    align-items:center;
    gap: 10px;
    min-width: 180px;
}
.brand__logo{
    width: 100%;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 6px;
}
.brand__name{
    font-weight: 900;
    letter-spacing: .2px;
}

/* Nav */
.nav{
    display:flex;
    align-items:center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--panel);
    border: 1px solid var(--border);
}
.nav a{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 750;
    transition: transform .12s ease, background .12s ease, color .12s ease;
}
.nav a:hover{
    background: var(--panel-2);
    color: var(--text);
    transform: translateY(-1px);
}
.nav a i{ opacity:.9; }

.auth{
    display:flex;
    gap: 10px;
}

/* Mobile Nav */
.nav-toggle{
    display:none;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
    cursor:pointer;
}

@media (max-width: 980px){
    .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }
    .nav{ display:none; position:absolute; left:16px; right:16px; top: 98px;
        flex-direction: column; align-items: stretch;
        border-radius: var(--radius);
        padding: 10px;
        box-shadow: var(--shadow);
    }
    body.nav-open .nav{ display:flex; }
    .auth{ display:none; }
}

/* ========== Buttons ========== */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor:pointer;
    transition: transform .12s ease, background .12s ease;
    user-select:none;
}
.btn:focus{ outline: 3px solid rgba(51,181,255,.35); outline-offset: 2px; }
.btn:hover{ transform: translateY(-1px); }

.btn--primary{
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    box-shadow: 0 10px 24px rgba(51,181,255,.18);
    align-items: center;
    text-align: center;
}
.btn--ghost{
    background: var(--panel);
    border-color: var(--border);
    color: var(--text);
    align-items: center;
    text-align: center;
}
.btn--soft{
    background: rgba(51,181,255,.10);
    border-color: rgba(51,181,255,.22);
    color: var(--text);
}
.btn--lg{ padding: 14px 16px; border-radius: 16px; }
.btn--sm{ padding: 9px 12px; border-radius: 14px; font-weight: 800; }
.btn--block{ width:100%; }

/* ========== Hero ========== */
.hero{ padding: 26px 0 18px; }

.hero__grid{
    display:grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: stretch;
}
@media (max-width: 980px){
    .hero__grid{ grid-template-columns: 1fr; }
}

.hero__copy{
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.pill{
    display:inline-flex;
    align-items:center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(51,181,255,.12);
    border: 1px solid rgba(51,181,255,.18);
    color: var(--muted);
    font-weight: 800;
}

.hero h1{
    margin: 14px 0 10px;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.08;
    letter-spacing: -.6px;
}
.hero p{
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.55;
}

.hero__actions{
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 14px;
}

.hero__stats{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}
@media (max-width: 520px){
    .hero__stats{ grid-template-columns: 1fr; }
}
.stat{
    padding: 14px;
    border-radius: 16px;
    background: var(--panel-2);
    border: 1px solid var(--border);
}
.stat__num{ font-weight: 900; font-size: 18px; }
.stat__label{ color: var(--muted); font-weight: 700; margin-top: 4px; font-size: 13px; }

/* Hero Right Card */
.hero__card{
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.hero-card__top h2{ margin: 0 0 6px; font-size: 18px; }
.hero-card__top p{ margin: 0 0 14px; color: var(--muted); }

.modes{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
@media (max-width: 520px){
    .modes{ grid-template-columns: 1fr; }
}
.mode{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
    font-weight: 900;
    transition: transform .12s ease, background .12s ease;
}
.mode:hover{ transform: translateY(-1px); background: var(--panel-2); }
.mode i{ width: 18px; opacity: .9; }

.mode--blue{ box-shadow: inset 0 0 0 1px rgba(51,181,255,.14); }
.mode--pink{ box-shadow: inset 0 0 0 1px rgba(255,51,166,.14); }
.mode--yellow{ box-shadow: inset 0 0 0 1px rgba(255,193,7,.14); }
.mode--gray{ box-shadow: inset 0 0 0 1px rgba(160,174,192,.14); }

.hero-card__hint{
    display:flex;
    align-items:center;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-weight: 750;
}

/* ========== Section / Cards ========== */
.section{ padding: 16px 0 32px; }

.grid-2{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}
@media (max-width: 980px){
    .grid-2{ grid-template-columns: 1fr; }
}

.card{
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow:hidden;
}
.card__head{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px;
    border-bottom: 1px solid var(--border);
}
.card__head h3{
    margin:0;
    display:flex;
    align-items:center;
    gap: 10px;
    font-size: 16px;
}
.tag{
    display:inline-flex;
    align-items:center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(51,181,255,.22);
    background: rgba(51,181,255,.10);
    color: var(--muted);
    font-weight: 900;
    font-size: 12px;
}
.tag--soft{
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
}

/* ========== Table ========== */
.table-wrap{
    overflow:auto;
    -webkit-overflow-scrolling: touch;
}
.table{
    width: 100%;
    border-collapse: collapse;
    min-width: 680px; /* tablo kaydırma içeride kalsın */
}
.table thead th{
    text-align:left;
    font-size: 12px;
    color: var(--muted);
    padding: 12px 14px;
    background: rgba(0,0,0,.10);
    position: sticky;
    top: 0;
    z-index: 1;
}
@media (prefers-color-scheme: light){
    .table thead th{ background: rgba(0,0,0,.04); }
}
.table tbody td{
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    font-weight: 700;
}
.table tbody tr:hover{
    background: rgba(255,255,255,.04);
}

.badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width: 34px;
    height: 28px;
    padding: 0 10px;
    border-radius: 10px;
    font-weight: 900;
    color: white;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.badge--blue{ background:#33B5FF; }
.badge--green{ background:#33FF57; }
.badge--pink{ background:#FF33A6; }
.badge--purple{ background:#A633FF; }
.badge--orange{ background:#FF8F33; }
.badge--cyan{ background:#33FFF2; color:#052a2a; }
.badge--red{ background:#FF3333; }
.badge--lime{ background:#85FF33; color:#15310a; }
.badge--magenta{ background:#FF33EC; }

/* ========== Ranking ========== */
.ranking{
    margin: 0;
    padding: 10px 12px 14px;
    list-style: none;
}
.ranking__item{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 10px;
    border-radius: 14px;
    border: 1px solid transparent;
}
.ranking__item:hover{
    background: rgba(255,255,255,.04);
    border-color: var(--border);
}
.ranking__left{
    display:flex;
    align-items:center;
    gap: 10px;
}
.medal{ width: 26px; text-align:center; }
.ranking__score{
    color: var(--muted);
    font-weight: 900;
    font-size: 13px;
}

.card__cta{
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
}

/* ========== Footer ========== */
.footer{
    border-top: 1px solid var(--border);
    background: rgba(10,16,28,.92);
}
@media (prefers-color-scheme: light){
    .footer{ background: rgba(255,255,255,.92); }
}

.footer__grid{
    display:grid;
    grid-template-columns: 1.3fr .7fr .7fr;
    gap: 18px;
    padding: 22px 0;
}
@media (max-width: 980px){
    .footer__grid{ grid-template-columns: 1fr; }
}
.footer h4{
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: .3px;
}
.footer p{
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}

.mini-list{
    list-style:none;
    margin: 0;
    padding: 0;
    display:grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}
.mini-list i{ width: 18px; }

.social{
    display:flex;
    gap: 10px;
    margin: 8px 0 0;
}
.icon-btn{
    width: 40px;
    height: 40px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--panel);
    transition: transform .12s ease, background .12s ease;
}
.icon-btn:hover{ transform: translateY(-1px); background: var(--panel-2); }

.footer__bottom-cta{
    margin-top: 14px;
    display:grid;
    gap: 10px;
}
.footer__legal{
    padding: 14px 0 22px;
    color: var(--muted);
    font-weight: 750;
    font-size: 13px;
}


/* ===== Kurallar sayfası ek stiller ===== */
.hero--rules .hero__card { align-self: start; }

.rules-steps{
    display:grid;
    gap: 10px;
    margin: 10px 0 14px;
}
.step{
    display:flex;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
}
.step__num{
    width: 34px; height: 34px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius: 12px;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}
.step__muted{ color: var(--muted); font-weight: 700; font-size: 13px; margin-top: 2px; }

.rules-page .prose__body{
    padding: 14px 16px 18px;
}
.prose h2{
    margin: 18px 0 10px;
    font-size: 20px;
    letter-spacing: -.2px;
}
.prose h3{
    margin: 14px 0 8px;
    font-size: 15px;
}
.prose p, .prose li{
    color: var(--text);
    line-height: 1.65;
}
.prose .muted{ color: var(--muted); font-weight: 650; }

.hr{
    border: 0;
    border-top: 1px solid var(--border);
    margin: 18px 0;
}

.callout{
    display:flex;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(51,181,255,.22);
    background: rgba(51,181,255,.10);
    margin: 12px 0 14px;
}
.callout i{ margin-top: 2px; opacity: .95; }
.callout--soft{
    border-color: var(--border);
    background: rgba(255,255,255,.04);
}

.mini-cards{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 10px 0 8px;
}
@media (max-width: 980px){
    .mini-cards{ grid-template-columns: 1fr; }
}
.mini-card{
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
}
.mini-card .example{
    margin-top: 8px;
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}
.mini-card--tight{ margin-top: 10px; }

.toc__body{
    padding: 12px 14px 16px;
    display:grid;
    gap: 10px;
}
.toc__link{
    display:flex;
    align-items:center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--panel);
    font-weight: 850;
    color: var(--text);
    transition: transform .12s ease, background .12s ease;
}
.toc__link:hover{
    transform: translateY(-1px);
    background: var(--panel-2);
}
.toc__divider{
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.faq{
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 16px;
    padding: 10px 12px;
    margin: 10px 0;
}
.faq summary{
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
    content: "＋";
    float: right;
    opacity: .8;
}
.faq[open] summary::after{ content: "－"; }
.faq__content{
    margin-top: 10px;
    color: var(--muted);
    font-weight: 650;
}


.top10-loading{
    display: none;
    align-items: center;
    gap: 10px;
    margin: 8px 16px 10px;
    color: var(--muted);
    font-weight: 800;
}

.top10-loading.is-loading{
    display: flex;
}

/* Spinner */
.top10-loading .spinner{
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,.20);
    border-top-color: rgba(255,255,255,.70);
    animation: spin .8s linear infinite;
}

@keyframes spin{
    to { transform: rotate(360deg); }
}

@media (prefers-color-scheme: light){
    .top10-loading .spinner{
        border-color: rgba(0,0,0,.15);
        border-top-color: rgba(0,0,0,.55);
    }
}

/* Skeleton list: loading anında görünür, data gelince JS ile class kaldırınca kaybolur */
.top10-loading.is-loading + #top10List{
    padding: 10px 12px 14px;
}

.top10-loading.is-loading + #top10List::before{
    content: "";
    display: block;
    height: 10px;
    margin: 0 0 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
}

/* 10 satır skeleton efekti */
.top10-loading.is-loading + #top10List > li{
    list-style: none;
}

.top10-loading.is-loading + #top10List::after{
    content: "";
    display: block;
    height: 420px;          /* 10 satır gibi dursun */
    border-radius: 16px;
    border: 1px solid var(--border);
    background:
            linear-gradient(90deg,
            rgba(255,255,255,.06) 0%,
            rgba(255,255,255,.10) 35%,
            rgba(255,255,255,.06) 70%
            );
    background-size: 240% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

/* shimmer */
@keyframes shimmer{
    0%{ background-position: 0% 0; }
    100%{ background-position: 100% 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    .top10-loading .spinner{ animation: none; }
    .top10-loading.is-loading + #top10List::after{ animation: none; }
}