/* Mahjong Zen · tanyeri.app/mahjong-zen — mürekkep & altın */
:root {
  color-scheme: dark;
  --bg: #0d0a12;
  --bg-2: #141019;
  --bg-3: #1b1522;
  --ink: #f3ebd6;
  --ink-2: #d9cfb8;
  --muted: #a99f8b;
  --gold: #e7cd85;
  --gold-2: #c9a44c;
  --gold-3: #8a6e2a;
  --jade: #4fa382;
  --red: #c8483c;
  --line: rgba(231, 205, 133, 0.16);
  --line-2: rgba(231, 205, 133, 0.32);
  --card: rgba(255, 248, 230, 0.035);
  --radius: 18px;
  --wrap: 1140px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 17px/1.7 var(--sans);
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration-color: rgba(231, 205, 133, 0.4); text-underline-offset: 3px; }
a:hover { color: #fff1c4; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong { color: var(--ink); font-weight: 600; }
[id] { scroll-margin-top: 88px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--gold); color: #1b1408; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.kicker { font: 600 0.78rem/1.2 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: block; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.serif-i { font-style: italic; color: var(--gold); }

/* ── üst çubuk ── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: rgba(13, 10, 18, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 1.08rem/1 var(--serif); margin-right: auto; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.93rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.lang { font-size: 0.85rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, #f0d996, var(--gold-2));
  color: #1d1506; font-weight: 600; font-size: 0.95rem; text-decoration: none;
  padding: 10px 16px; border-radius: 10px; border: 0;
  box-shadow: 0 6px 20px -8px rgba(231, 205, 133, 0.6);
}
.btn:hover { color: #1d1506; filter: brightness(1.06); }
@media (max-width: 860px) { .nav { display: none; } }

/* ── kahraman ── */
.hero { position: relative; isolation: isolate; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 90px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(48% 42% at 78% 38%, rgba(201, 164, 76, 0.18), transparent 70%),
    radial-gradient(40% 40% at 12% 10%, rgba(79, 163, 130, 0.10), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.enso { position: absolute; z-index: -1; width: min(760px, 120vw); right: -12%; top: 50%; transform: translateY(-50%); opacity: 0.55; pointer-events: none; }
.enso path { stroke-dasharray: 2200; stroke-dashoffset: 2200; animation: brush 3.2s cubic-bezier(.6,.05,.2,1) 0.2s forwards; }
@keyframes brush { to { stroke-dashoffset: 260; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 22px 0 0; list-style: none; font-size: 0.92rem; color: var(--ink-2); }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts svg { width: 16px; height: 16px; color: var(--jade); flex: none; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  min-width: 190px; padding: 10px 18px 10px 14px;
  background: #050407; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-2); border-radius: 13px;
  transition: border-color 0.2s, transform 0.2s;
}
.store:hover { border-color: var(--gold); color: var(--ink); transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted); line-height: 1.2; }
.store b { display: block; font: 600 1.12rem/1.15 var(--sans); color: var(--ink); }
.free-note { margin-top: 12px; font-size: 0.86rem; color: var(--muted); }

.phone {
  justify-self: center; position: relative;
  width: min(330px, 78vw); aspect-ratio: 444 / 962;
  border-radius: 46px; padding: 10px;
  background: linear-gradient(160deg, #3a2f1c, #0d0a12 40%, #2a2114);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(231, 205, 133, 0.28), 0 0 80px -20px rgba(201, 164, 76, 0.35);
}
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; background: #0b0910; }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { width: min(290px, 74vw); margin-top: 8px; }
  .enso { display: none; }
}

/* ── bölümler ── */
.sec { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.sec-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: 0.97rem; color: var(--ink-2); }
.card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(231, 205, 133, 0.09); color: var(--gold); }
.card .ic svg { width: 20px; height: 20px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split + .split { margin-top: clamp(48px, 7vw, 96px); }
.split.rev > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.shot { width: min(300px, 70vw); margin-inline: auto; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85), 0 0 0 1px var(--line); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--jade); border-bottom: 2px solid var(--jade); transform: rotate(-45deg); }
.more { display: inline-block; margin-top: 18px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* hikâye */
.scene { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.85), 0 0 0 1px var(--line); }
.scene figcaption { font-size: 0.85rem; color: var(--muted); padding: 10px 2px 0; }
.chapters { list-style: none; padding: 0; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.chapters li { padding: 18px 16px 0 0; position: relative; }
.chapters li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--bg), 0 0 14px rgba(231,205,133,0.7); }
.chapters .num { font: italic 600 0.95rem/1 var(--serif); color: var(--gold); }
.chapters b { display: block; font: 600 1.15rem/1.3 var(--serif); color: var(--ink); margin: 6px 0 4px; }
.chapters span { display: block; font-size: 0.86rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .chapters { grid-template-columns: repeat(3, 1fr); row-gap: 26px; } }
@media (max-width: 520px) { .chapters { grid-template-columns: repeat(2, 1fr); } }

/* galeri */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 20px; margin: 0 -16px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--gold-3) transparent; }
.gallery figure { margin: 0; flex: 0 0 auto; width: clamp(200px, 24vw, 250px); scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); background: var(--bg-3); }
.gallery figcaption { font-size: 0.82rem; color: var(--muted); margin-top: 8px; line-height: 1.4; }

/* SSS */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font: 600 1.12rem/1.4 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: var(--ink-2); }
.faq details > div p:last-child { margin: 0; }

/* kapanış */
.final { text-align: center; padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); background: radial-gradient(50% 70% at 50% 100%, rgba(201,164,76,0.16), transparent 70%); }
.final .stores { justify-content: center; }
.final p { margin-inline: auto; max-width: 56ch; }

/* altbilgi */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* dil önerisi */
.lang-hint { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; max-width: calc(100% - 32px); background: #1d1726; border: 1px solid var(--line-2); border-radius: 12px; font-size: 0.9rem; box-shadow: 0 16px 40px -12px rgba(0,0,0,0.8); }
.lang-hint[hidden] { display: none; }
.lang-hint button { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; padding: 4px 8px; cursor: pointer; border-radius: 6px; }

/* ── makale sayfaları ── */
.crumbs { font-size: 0.86rem; color: var(--muted); padding-top: 26px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--gold-3); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.article-head { padding: 26px 0 8px; max-width: 820px; }
.article-head .meta { font-size: 0.86rem; color: var(--muted); }
.prose { max-width: 740px; padding-bottom: 40px; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-top: 2.1em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold-2); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0 8px; }
.toc b { font: 600 0.78rem/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.toc ol { margin: 12px 0 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--gold); }
.diagram { margin: 26px 0; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.diagram figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 10px; }
.note { border-left: 3px solid var(--gold-2); background: rgba(231, 205, 133, 0.06); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 22px 0; }
.note p:last-child { margin: 0; }
.tiles-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 0.95rem; }
.tiles-table th, .tiles-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tiles-table th { color: var(--gold); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tiles-table td:nth-child(2) { font-variant-numeric: tabular-nums; white-space: nowrap; }
.inline-cta { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(201,164,76,0.14), rgba(79,163,130,0.08)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 24px; margin: 36px 0; }
.inline-cta .stores { margin: 0; }
.inline-cta p { margin: 0; max-width: 34ch; color: var(--ink); font: 600 1.15rem/1.4 var(--serif); }
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 620px) { .related { grid-template-columns: 1fr; } }
.related a { display: block; text-decoration: none; }
.related a .card { height: 100%; transition: border-color 0.2s; }
.related a:hover .card { border-color: var(--line-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .enso path { animation: none; stroke-dashoffset: 260; }
  .store { transition: none; }
}

/* hafıza makaleleri */
.study { margin: 16px 0; }
.study h3 { margin-top: 0; }
.study p { margin: 0 0 8px; }
.study .src { font-size: 0.85rem; color: var(--muted); margin: 6px 0 0; }
.exercises { display: grid; gap: 14px; margin: 18px 0 8px; }
.exercise { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--card); }
.exercise h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 1.2rem; }
.exercise p { margin: 0 0 6px; }
.ex-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 0.9rem/1 var(--sans); color: #1d1506; background: linear-gradient(180deg, #f0d996, var(--gold-2)); font-variant-numeric: tabular-nums; }
.works { font-size: 0.88rem; color: var(--jade) !important; margin: 0 !important; }
.plan td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.plan td:last-child { white-space: nowrap; color: var(--muted); }
.sources { font-size: 0.9rem; color: var(--muted); }
.sources a { word-break: break-all; }
.skill-grid { margin: 18px 0; }
.plan td:nth-child(2), .compare td:nth-child(2) { white-space: normal; }
@media (max-width: 560px) {
  .tiles-table th, .tiles-table td { padding: 9px 7px; }
  .tiles-table th { font-size: 0.72rem; letter-spacing: 0.04em; }
  .tiles-table { font-size: 0.9rem; }
  .plan td:last-child { white-space: normal; }
}
