/*
Theme Name: FliqGame
Theme URI: https://fliqgame.com
Author: FliqGame
Description: HTML5 oyun portalı teması. "FliqGame Oyunlar" eklentisiyle birlikte çalışır.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: fliqgame
*/

/* FliqGame — arayüz stilleri */
/* Archivo (SIL Open Font License, fonts/OFL-LICENSE.txt) — siteyle birlikte gelir */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(assets/fonts/archivo-latin-ext-standard-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(assets/fonts/archivo-latin-standard-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --ink: #161B2E;
  --ink-2: #4A5068;
  --muted: #7A8099;
  --line: #E2E6EE;
  --line-2: #CBD2DF;
  --brand: #2B59FF;
  --brand-ink: #1D3FCC;
  --brand-soft: #E8EDFF;
  --amber: #FFB020;
  --good: #12925A;
  --mid: #B7791F;
  --bad: #C53030;
  --navy: #0F1A3D;
  --stage: #0E1630;
  --r-lg: 14px;
  --r: 10px;
  --r-sm: 8px;
  --font: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); font-size: 15px; background: var(--bg); color: var(--ink); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }
.ico { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Üst bar ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.2px; font-stretch: 112%; white-space: nowrap; }
.logo svg { flex: none; }
.search { flex: 1; max-width: 560px; margin: 0 auto; position: relative; }
.search > .ico { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 42px; border-radius: 999px; border: 1px solid transparent; padding-block: 0; padding-inline: 44px 18px;
  font: inherit; background: #EDF0F5; color: var(--ink); outline: none; transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--surface); border-color: var(--brand); }
.search-drop { position: absolute; top: 48px; left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(15, 26, 61, .14); overflow: hidden; display: none; padding: 6px; }
.search-drop.open { display: block; }
.search-drop a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: var(--r-sm); font-weight: 600; }
.search-drop a:hover, .search-drop a.sel { background: var(--bg); }
.search-drop .th { width: 56px; aspect-ratio: 16/10; border-radius: 6px; flex: none; font-size: 13px; }
.search-drop .none { padding: 10px 12px; color: var(--muted); }
.top-links { display: flex; gap: 4px; }
.top-links a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.top-links a:hover { background: var(--bg); color: var(--ink); }

/* ---------- Kategori şeridi ---------- */
.catbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.catbar .wrap { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.cat { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 84px; padding: 6px 8px 8px; border-radius: 16px; border: 2px solid transparent; font-weight: 700; font-size: 13px; color: var(--ink-2); text-align: center; }
.ctile { flex: none; display: grid; place-items: center; }
.ctile.plain { background: var(--surface); border: 1px solid var(--line); border-radius: 30%; color: var(--brand); }
.cat .ctile { transition: transform .18s ease; }
.cat .cl { line-height: 1.15; white-space: nowrap; }
.cat:hover { color: var(--ink); }
.cat:hover .ctile { transform: translateY(-2px); }
.cat.active { border-color: var(--brand); background: var(--brand-soft); color: var(--ink); }
.cico { flex: none; display: block; }

/* ---------- Vitrin ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 20px; margin-top: 28px; }
@media (max-width: 980px) { .showcase { grid-template-columns: 1fr; } }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 700px) { .feature { grid-template-columns: 1fr; } }
.feature .th { min-height: 280px; height: 100%; font-size: 64px; }
.feature .txt { padding: 28px 28px 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.feature .kicker { font-size: 13.5px; font-weight: 600; color: var(--brand); }
.feature h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: .98; font-weight: 900; letter-spacing: -.5px; font-stretch: 125%; }
.feature p { color: var(--ink-2); max-width: 42ch; }
.feature .cta { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background .15s, border-color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--line-2); background: var(--bg); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.on { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-ink); }
.btn.on.neg { background: #FDECEC; border-color: #FDECEC; color: var(--bad); }
.btn.on .ico path { fill: currentColor; fill-opacity: .15; }
.btn.icon-only { width: 42px; padding: 0; justify-content: center; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 18px 8px; }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.panel-head h3 { font-size: 16px; font-weight: 700; }
.panel-head .ico { color: var(--brand); }
.seg { display: inline-flex; background: var(--bg); border-radius: var(--r-sm); padding: 3px; gap: 2px; margin-bottom: 6px; }
.seg button { padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 26, 61, .12); }
.rank { display: grid; grid-template-columns: 22px 72px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--line); }
.rank:first-child { border-top: 0; }
.rank:hover b { color: var(--brand); }
.rank .n { font-weight: 800; font-size: 15px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rank .th { width: 72px; aspect-ratio: 16/10; border-radius: 6px; font-size: 14px; }
.rank b { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 12.5px; font-weight: 500; min-width: 0; }
.meta > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .pos { color: var(--good); font-weight: 700; } .meta .mid { color: var(--mid); font-weight: 700; } .meta .neg { color: var(--bad); font-weight: 700; }

/* ---------- Bölümler ---------- */
.block { margin-top: 40px; }
.block-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.block-head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -.2px; font-stretch: 108%; }
.see-all { margin-inline-start: auto; font-weight: 600; font-size: 14px; color: var(--brand); }
.see-all:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px 16px; }
.grid.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

/* ---------- Oyun kartı ---------- */
.g { display: block; position: relative; min-width: 0; }
.g .th { aspect-ratio: 16/10; border-radius: var(--r); font-size: 22px; transition: box-shadow .15s; }
.g:hover .th { box-shadow: 0 0 0 2px var(--brand); }
.g h3 { margin-top: 9px; font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g:hover h3 { color: var(--brand); }
.g .meta { margin-top: 1px; justify-content: space-between; }
.th { position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .95); font-weight: 900; font-stretch: 125%; letter-spacing: .5px; }
.th::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(15, 26, 61, .08); pointer-events: none; }
.th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge-new { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; background: var(--amber); color: #3A2600; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.fav { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--ink-2); opacity: 0; transition: opacity .15s; }
.g:hover .fav, .g:focus-within .fav, .fav.on { opacity: 1; }
.fav.on { color: #E0315B; }
.fav.on .ico path { fill: currentColor; }
@media (hover: none) { .fav { opacity: 1; } }

.empty { grid-column: 1/-1; text-align: center; padding: 56px 16px; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .ico { margin: 0 auto 12px; color: var(--muted); }
.empty a { color: var(--brand); font-weight: 600; }

/* ---------- Liste / kategori sayfası ---------- */
.page-head { margin: 32px 0 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; font-weight: 900; letter-spacing: -.3px; font-stretch: 115%; line-height: 1.1; }
.page-head p { color: var(--muted); font-size: 14px; }
.page-head .seg { margin: 0; margin-inline-start: auto; }
.more { text-align: center; margin-top: 28px; }

/* ---------- Oyun sayfası ---------- */
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); margin-top: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs .ico { color: var(--line-2); }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 14px; align-items: start; }
@media (max-width: 1040px) { .play-layout { grid-template-columns: 1fr; } }
.stage { position: relative; background: var(--stage); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.fs-btn { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; background: rgba(14, 22, 48, .72); color: #fff; font-weight: 700; font-size: 13.5px; backdrop-filter: blur(6px); opacity: .85; transition: opacity .15s, background .15s; }
.fs-btn:hover, .fs-btn:focus-visible { opacity: 1; background: var(--brand); }
.stage:fullscreen { display: flex; align-items: center; justify-content: center; background: #000; border-radius: 0; }
.stage:-webkit-full-screen { display: flex; align-items: center; justify-content: center; background: #000; border-radius: 0; }
.stage.pseudo-fs { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; background: #000; border-radius: 0; }
body.no-scroll { overflow: hidden; }
.stage iframe { display: block; border: 0; margin: 0 auto; width: 100%; aspect-ratio: 16/10; }
.stage-bar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); flex-wrap: wrap; }
.stage-bar .th { width: 52px; height: 52px; border-radius: var(--r-sm); font-size: 15px; }
.stage-bar h1 { font-size: 22px; font-weight: 800; line-height: 1.15; font-stretch: 110%; }
.stage-bar .meta { margin-top: 3px; }
.acts { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 720px) { .boxes { grid-template-columns: 1fr; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.box h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.box h3 .ico { color: var(--brand); }
.box p { color: var(--ink-2); font-size: 14.5px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); color: var(--ink-2); }
.tag:hover { border-color: var(--brand); color: var(--brand); }
.source { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- Reklam alanları (yalnızca js/ayarlar.js doldurulunca görünür) ---------- */
.ad { display: flex; justify-content: center; align-items: center; margin: 28px auto 0; min-height: 90px; overflow: hidden; }
.ad-label { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 28px; }
.ad-label + .ad { margin-top: 4px; }
.side .ad { margin-top: 16px; min-height: 250px; }

/* ---------- Footer ---------- */
.footer { margin-top: 64px; background: var(--navy); color: #B7C0DA; padding: 44px 0 22px; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 820px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; }
.footer .about p { margin-top: 12px; max-width: 34ch; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 32px; padding-top: 16px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Mobil ---------- */
@media (max-width: 720px) {
  .wrap { width: calc(100% - 28px); }
  .topbar .wrap { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .top-links { margin-inline-start: auto; }
  .top-links span { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .feature .th { min-height: 0; aspect-ratio: 16/10; }
  .feature .txt { padding: 20px; }
  .page-head .seg { margin-inline-start: 0; }
  .acts { margin-inline-start: 0; }
}


/* ---------- WordPress eklemeleri ---------- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); }
.pagination .page-numbers:hover { border-color: var(--line-2); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { border: 0; background: none; }
.seg a { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 26, 61, .12); }
.term-intro { color: var(--ink-2); max-width: 75ch; margin: -6px 0 22px; }
.entry { color: var(--ink-2); font-size: 15px; }
.entry p { margin-bottom: 10px; }
.entry p:last-child { margin-bottom: 0; }
.entry h2, .entry h3 { color: var(--ink); margin: 14px 0 6px; font-size: 16px; }
.box ol, .box ul { margin-top: 6px; margin-inline-start: 20px; color: var(--ink-2); font-size: 14.5px; }
.box li { margin: 4px 0; }
.box + .box { margin-top: 0; }
.boxes .box.wide { grid-column: 1 / -1; }
.page-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 28px; margin-top: 24px; max-width: 820px; }
.page-content h1 { font-size: 28px; font-weight: 900; font-stretch: 115%; margin-bottom: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.ctile svg { display: block; }

/* ---------- Dil menüsü ---------- */
.lang-switch { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: var(--r-sm); font-weight: 700; font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); }
.lang-btn:hover { border-color: var(--line-2); color: var(--ink); }
.lang-menu { position: absolute; top: 44px; inset-inline-end: 0; z-index: 120; min-width: 190px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px rgba(15, 26, 61, .14); padding: 6px; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.lang-menu a:hover { background: var(--bg); color: var(--ink); }
.lang-menu a.on { background: var(--brand-soft); color: var(--brand-ink); }
.lang-menu .code { width: 26px; font-size: 11px; font-weight: 800; color: var(--muted); }
.top-links { align-items: center; }

/* ---------- Sağdan sola (Arapça) ---------- */
[dir="rtl"] .crumbs .ico { transform: scaleX(-1); }
[dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] button { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", system-ui, sans-serif; }
[dir="rtl"] .feature h2, [dir="rtl"] .page-head h1, [dir="rtl"] .logo { font-stretch: 100%; letter-spacing: 0; }
