/* ============================================================
   PORTAL SAYFALARI - ORTAK BİLEŞENLER
   (panel, leaderboard, giriş/kayıt)
   portal.css içindeki --p-* değişkenlerini kullanır.
   ============================================================ */

/* ---------- SAYFA BAŞLIĞI ---------- */
.page-head { margin: 4px 0 22px; }
.page-head h1 {
    font-size: 29px; font-weight: 800; letter-spacing: .3px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.page-head p { color: var(--p-muted); font-size: 14px; margin-top: 6px; }
.page-head.center { text-align: center; }
.page-head.center h1 { justify-content: center; }

/* ---------- PANEL: İSTATİSTİK KARTLARI ---------- */
.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 14px; margin-bottom: 26px; }
.d-card {
    position: relative; overflow: hidden;
    padding: 17px 18px 17px 22px;
    border-radius: 15px;
    background: linear-gradient(180deg, var(--p-surface) 0%, var(--p-surface-deep) 100%);
    border: 1px solid var(--p-border);
}
.d-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 4px; height: 100%; background: var(--accent, var(--p-accent));
}
.d-card .l { font-size: 10.5px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--p-muted-2); }
.d-card .v { font-size: 27px; font-weight: 800; color: var(--accent, var(--p-accent)); margin-top: 6px; }

/* ---------- PANEL: HIZLI İŞLEM KARTLARI ---------- */
.d-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.d-action {
    display: block; text-align: center; text-decoration: none; color: inherit;
    padding: 26px 20px; border-radius: 16px;
    background: linear-gradient(180deg, var(--p-surface) 0%, var(--p-surface-deep) 100%);
    border: 1px solid var(--p-border);
    transition: .2s;
}
.d-action:hover { transform: translateY(-4px); border-color: rgba(34,197,94,.4); box-shadow: 0 18px 36px rgba(0,0,0,.4); }
.d-action .ic { font-size: 40px; margin-bottom: 10px; }
.d-action h3 { font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.d-action p { color: var(--p-muted); font-size: 12.5px; }

/* ---------- ÖDÜL PANELLERİ ---------- */
.rw-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 920px) { .rw-grid { grid-template-columns: 1fr; } }
.rw-panel {
    background: linear-gradient(180deg, var(--p-surface) 0%, var(--p-surface-deep) 100%);
    border: 1px solid var(--p-border); border-radius: 16px; padding: 22px;
}
.rw-panel.daily { border-color: rgba(251,191,36,.32); }
.rw-panel.gift  { border-color: rgba(168,85,247,.32); }
.rw-panel h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.rw-panel.daily h3 { color: var(--p-warn-text); }
.rw-panel.gift  h3 { color: var(--p-purple-text); }
.rw-panel .sub { color: var(--p-muted); font-size: 12.5px; margin-bottom: 16px; }

.bank-strip {
    display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
    background: rgba(234,179,8,.1); border: 1px solid rgba(234,179,8,.3);
    border-radius: 11px; padding: 11px 14px; margin-bottom: 16px; font-size: 13px;
}
.dr-streak { text-align: center; color: var(--p-warn); font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
.dr-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 16px; }
.dr-day { border-radius: 11px; padding: 10px 6px; text-align: center; border: 1px solid var(--p-hair); }
.dr-day .d { font-size: 10px; color: var(--p-muted); text-transform: uppercase; letter-spacing: .8px; }
.dr-day .i { font-size: 21px; margin: 4px 0; }
.dr-day .n { font-size: 10.5px; color: var(--p-text-2); font-weight: 600; }
@media (max-width: 520px) { .dr-grid { grid-template-columns: repeat(2, 1fr); } }

.rw-btn { width: 100%; border-radius: 12px; padding: 14px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; }
.rw-btn.daily { background: rgba(251,191,36,.18); border: 1px solid var(--p-warn-text); color: var(--p-warn-text); }
.rw-btn.daily:disabled { background: rgba(34,197,94,.15); border-color: var(--p-accent); color: var(--p-green-text-2); cursor: not-allowed; }
.rw-btn.gift { background: rgba(168,85,247,.18); border: 1px solid var(--p-purple); color: var(--p-purple-text); margin-top: 12px; }
.rw-btn:disabled { opacity: .75; }
.gc-input {
    width: 100%; padding: 15px; background: rgba(0,0,0,.45);
    border: 2px solid rgba(168,85,247,.4); border-radius: 12px; color: var(--p-text);
    font-size: 15px; font-weight: 800; text-align: center; letter-spacing: 3px;
    text-transform: uppercase; font-family: Consolas, monospace;
}
.gc-input:focus { outline: none; border-color: var(--p-purple); box-shadow: 0 0 0 3px rgba(168,85,247,.15); }
.rw-msg { display: none; margin-top: 12px; padding: 11px; border-radius: 9px; text-align: center; font-size: 13px; }

/* ---------- LEADERBOARD ---------- */
.lb-live-head { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; color: var(--p-red-text); }
.live-dot {
    width: 10px; height: 10px; border-radius: 50%; background: #ef4444;
    flex: 0 0 10px; animation: lbPulse 2s infinite;
}
@keyframes lbPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,.65); }
    50%      { opacity: .75; box-shadow: 0 0 0 9px rgba(239,68,68,0); }
}
.lb-live-card { border-color: rgba(239,68,68,.3); }

.lb-row {
    display: grid; grid-template-columns: 66px minmax(0, 1fr) 110px 90px 90px;
    gap: 14px; align-items: center;
    padding: 13px 18px; border-radius: 14px;
    background: var(--p-card);
    border: 1px solid var(--p-border);
    margin-bottom: 9px;
    transition: .18s;
}
.lb-row:last-child { margin-bottom: 0; }
.lb-row:hover { transform: translateX(4px); border-color: rgba(34,197,94,.35); }
.lb-row.r1 { border-color: rgba(251,191,36,.7); background: linear-gradient(90deg, rgba(251,191,36,.1), transparent); }
.lb-row.r2 { border-color: rgba(203,213,225,.55); }
.lb-row.r3 { border-color: rgba(234,88,12,.55); }
.lb-row.me { border-color: rgba(34,197,94,.6); background: rgba(34,197,94,.09); box-shadow: 0 0 20px rgba(34,197,94,.15); }

.lb-rank { font-size: 20px; font-weight: 800; color: var(--p-muted-2); text-align: center; }
.lb-rank.gold   { color: var(--p-warn-text); }
.lb-rank.silver { color: #cbd5e1; }
.lb-rank.bronze { color: #ea580c; }

.lb-user { display: flex; align-items: center; gap: 13px; min-width: 0; }
.lb-nm { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.lb-un { font-size: 11.5px; color: var(--p-muted-2); font-family: Consolas, monospace; }
.lb-me-tag { color: var(--p-accent); font-size: 10.5px; font-weight: 800; }
.lb-cell { text-align: center; }
.lb-cell .v { color: var(--p-accent); font-weight: 800; font-size: 15.5px; }
.lb-cell .l { color: var(--p-muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }

@media (max-width: 780px) {
    .lb-row { grid-template-columns: 46px minmax(0, 1fr) 84px; gap: 10px; padding: 12px 13px; }
    .lb-row:hover { transform: none; }
    .lb-cell.hide-sm { display: none; }
}

/* ---------- GİRİŞ / KAYIT ---------- */
.auth-wrap { max-width: 470px; margin: 40px auto 70px; padding: 0 20px; }
.auth-card {
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--p-surface) 0%, var(--p-surface-deep) 100%);
    border: 1px solid var(--p-border);
    box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.auth-card .a-head { text-align: center; margin-bottom: 22px; }
.auth-card .a-head .ic { font-size: 40px; }
.auth-card .a-head h1 { font-size: 23px; font-weight: 800; margin-top: 8px; letter-spacing: .4px; }
.auth-card .a-head p { color: var(--p-muted); font-size: 13px; margin-top: 6px; }
.auth-card .a-foot { text-align: center; margin-top: 18px; color: var(--p-muted); font-size: 13px; }
.auth-card .a-foot a { color: var(--p-accent); font-weight: 700; text-decoration: none; }
.auth-card .a-foot a:hover { text-decoration: underline; }

/* ============================================================
   BİLGİ SAYFALARI (SSS, Kurallar, Gizlilik, Şartlar, İletişim)
   ============================================================ */
.doc-crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--p-muted-2); margin-bottom: 14px; flex-wrap: wrap; }
.doc-crumb a { color: var(--p-sky-text); text-decoration: none; }
.doc-crumb a:hover { text-decoration: underline; }

.doc-hero { display: flex; gap: 18px; align-items: flex-start; }
.doc-hero-ic {
    width: 62px; height: 62px; flex: 0 0 62px; border-radius: 18px;
    display: grid; place-items: center; font-size: 30px;
    background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(56,189,248,.18));
    border: 1px solid rgba(34,197,94,.32);
}
.doc-hero-txt { min-width: 0; flex: 1; }
.doc-hero-txt h1 { font-size: 27px; font-weight: 800; letter-spacing: .2px; }
.doc-hero-txt > p { color: var(--p-muted); font-size: 14px; margin-top: 7px; line-height: 1.55; }
.doc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.doc-meta .pill { cursor: default; }
button.pill { cursor: pointer; font-family: inherit; }
button.pill:hover { color: var(--p-text-strong); border-color: var(--p-accent); }

.doc-layout { grid-template-columns: 1fr 300px; align-items: start; }
@media (max-width: 860px) { .doc-layout { grid-template-columns: 1fr; } }

.doc-body { font-size: 14.5px; line-height: 1.7; color: var(--p-text-soft); }
.doc-body > p:first-child { margin-top: 0; }
.doc-body h2 {
    font-size: 18.5px; font-weight: 800; color: var(--p-text-strong);
    margin: 26px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--p-border);
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 15.5px; font-weight: 800; color: var(--p-text-2); margin: 18px 0 6px; }
.doc-body p { margin: 10px 0; }
.doc-body ul, .doc-body ol { margin: 10px 0 10px 22px; }
.doc-body li { margin: 5px 0; }
.doc-body a { color: var(--p-sky-text); text-decoration: none; }
.doc-body a:hover { text-decoration: underline; }
.doc-body code {
    background: var(--p-card-3); border: 1px solid var(--p-border);
    padding: 1px 6px; border-radius: 6px; font-size: 12.5px; color: var(--p-green-text);
}
.doc-body b, .doc-body strong { color: var(--p-text-strong); }
.doc-body hr { border: 0; border-top: 1px solid var(--p-border); margin: 22px 0; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 13.5px; }
.doc-body th, .doc-body td { border: 1px solid var(--p-border); padding: 9px 11px; text-align: left; vertical-align: top; }
.doc-body th { background: var(--p-card-2); color: var(--p-text-strong); font-weight: 800; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.doc-body tr:nth-child(even) td { background: rgba(148,163,184,.04); }

/* SSS akordeonu */
.doc-body details {
    background: var(--p-card-2); border: 1px solid var(--p-border);
    border-radius: 12px; padding: 12px 15px; margin: 9px 0;
}
.doc-body details[open] { border-color: rgba(34,197,94,.35); }
.doc-body summary { cursor: pointer; font-weight: 700; color: var(--p-text-2); font-size: 14px; }
.doc-body summary:hover { color: var(--p-active-text); }
.doc-body details > p, .doc-body details > ul, .doc-body details > ol { margin-top: 9px; }

/* İletişim kutusu */
.doc-contact {
    display: flex; flex-direction: column; gap: 8px;
    padding: 15px 17px; border-radius: 13px;
    background: linear-gradient(135deg, rgba(56,189,248,.10), rgba(34,197,94,.08));
    border: 1px solid rgba(56,189,248,.28);
}
.doc-note { font-size: 12.5px; color: var(--p-muted-2); font-style: italic; }

/* Kayıt sayfası onay satırı */
.reg-consent {
    margin-top: 14px; font-size: 11.5px; line-height: 1.6;
    color: var(--p-muted-2); text-align: center;
}
.reg-consent a { color: var(--p-sky-text); text-decoration: none; }
.reg-consent a:hover { text-decoration: underline; }

/* Kenar çubuğu */
.doc-side { position: sticky; top: 14px; }
.doc-nav { display: flex; flex-direction: column; gap: 6px; }
.doc-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 11px; text-decoration: none;
    background: var(--p-card-2); border: 1px solid var(--p-border);
    color: var(--p-text-soft); font-size: 13px; font-weight: 700;
    transition: .16s;
}
.doc-nav a:hover { border-color: var(--p-accent); color: var(--p-active-text); transform: translateX(2px); }
.doc-nav .ic { font-size: 15px; }
.doc-side-links { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--p-border); }
.doc-side-links a { color: var(--p-muted); text-decoration: none; font-size: 13px; }
.doc-side-links a:hover { color: var(--p-active-text); }

@media print {
    .p-nav, .p-footer, .doc-side, .doc-crumb, .doc-meta { display: none !important; }
    .doc-layout { grid-template-columns: 1fr; }
    body { background: #fff; color: #000; }
    .s-card { border: 0; background: none; box-shadow: none; }
}

