/*
Theme Name: Senin Mirasın
Theme URI: https://www.seninmirasin.com/
Author: Fazlanet Bilgi Teknolojileri
Author URI: https://www.fazlanet.com/
Description: İzmir'in tarihi mirası için mobil öncelikli, eklentisiz dijital kültür rehberi teması.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: Proprietary
Text Domain: seninmirasin
*/

/* ---------- Fonts (self-hosted, KVKK: no third-party font requests) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
	src: url(assets/fonts/inter-latin-ext-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
	src: url(assets/fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
	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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
	src: url(assets/fonts/fraunces-latin-ext-wght-normal.woff2) format("woff2-variations");
	unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,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: "Fraunces"; font-style: normal; font-display: swap; font-weight: 100 900;
	src: url(assets/fonts/fraunces-latin-wght-normal.woff2) format("woff2-variations");
	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+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Tokens ---------- */
:root {
	/* Tabelaların kendi renkleri (baskı dosyasından ölçüldü) + Fazlanet laciverti */
	--sign: #8a2433;       /* tabela iç zemini — bordo */
	--sign-dark: #691932;  /* tabela dış çerçevesi */
	--amber: #f3a901;      /* tabela çerçeve çizgisi */
	--amber-ink: #9a6400;  /* açık zeminde okunur amber */
	--fz: #154574;         /* Fazlanet kurumsal laciverti */
	--fz-2: #0f3357;
	--paper: #f8f4ee;      /* kırık beyaz */
	--paper-2: #f0e8de;
	--stone: #ded1c0;
	--stone-2: #bfae98;
	--ink: #241a1d;        /* sıcak koyu */
	--ink-2: #4a3d41;
	--muted: #74676b;
	--aegean: var(--sign);     /* birincil eylem / bağlantı */
	--aegean-2: var(--sign-dark);
	--bronze: var(--amber-ink);
	--bronze-2: #7a4f00;
	--line: rgba(36, 26, 29, .12);
	--card: #fffdfa;
	--tabbar-h: 0px;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(36,26,29,.06), 0 8px 24px rgba(36,26,29,.08);
	--gutter: 16px;
	--max: 1120px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--aegean); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--aegean-2); }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; border-radius: 4px; }
button { font: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; font-variation-settings: "opsz" 72; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sm-skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.sm-skip:focus { left: 8px; }

.sm-wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sm-main { min-height: 60vh; }
.sm-h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.sm-h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); }
.sm-muted { color: var(--muted); }
.sm-lead { font-size: 1.15rem; color: var(--ink-2); }
.sm-eyebrow { font: 600 .75rem/1.2 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--bronze); margin: 0 0 .6rem; }
.sm-eyebrow a { color: inherit; text-decoration: none; }
.sm-eyebrow--light { color: var(--amber); }

/* ---------- Header ---------- */
.sm-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 244, 238, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.sm-header__inner { max-width: var(--max); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 12px; min-height: 58px; }
.sm-header__brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; margin-right: auto; }
.sm-header__brand svg { height: 38px; width: auto; }
.sm-wordmark { font: 600 1.25rem/1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.sm-nav { display: flex; gap: 2px; }
.sm-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 10px; border-radius: 999px; }
.sm-nav a:hover, .sm-nav a[aria-current] { background: var(--paper-2); }
.sm-nav__wide { display: none; }
.sm-lang { font: 600 .8rem/1 var(--font); letter-spacing: .06em; color: var(--ink); text-decoration: none; border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 10px; }
.sm-lang:hover { background: var(--ink); color: #fff; }
@media (min-width: 640px) { .sm-nav__wide { display: inline-block; } .sm-header__brand svg { height: 44px; } }

/* ---------- Buttons ---------- */
.sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.sm-btn:hover { border-color: var(--ink); color: var(--ink); }
.sm-btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.sm-btn--primary:hover { background: var(--aegean-2); border-color: var(--aegean-2); color: #fff; }
.sm-btn--light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.sm-btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.sm-btn--ghost { background: transparent; }

/* ---------- Hero ---------- */
.sm-hero { position: relative; color: #fff; background: radial-gradient(130% 100% at 85% 0%, #a8394a 0%, var(--sign) 42%, var(--sign-dark) 100%); overflow: hidden; isolation: isolate; }
.sm-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--amber); }
.sm-hero__bg { position: absolute; inset: 0; z-index: -1; }
.sm-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; filter: saturate(.8); }
.sm-hero__inner { padding-block: 56px 48px; }
.sm-hero__title { font-size: clamp(2.1rem, 8vw, 3.8rem); max-width: 14ch; margin-bottom: .4em; font-variation-settings: "opsz" 144; }
.sm-hero__lead { font-size: 1.08rem; color: rgba(255,255,255,.86); max-width: 46ch; }
.sm-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sm-hero__count { margin: 26px 0 0; color: rgba(255,255,255,.72); font-size: .9rem; }
.sm-hero__count strong { font: 600 1.6rem/1 var(--serif); color: #fff; margin-right: 4px; }
@media (min-width: 900px) { .sm-hero__inner { padding-block: 96px 80px; } }

/* ---------- Sections & grid ---------- */
.sm-section { margin-block: 44px; }
.sm-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sm-section__head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.sm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .sm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1040px) { .sm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sm-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .sm-grid--compact { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sm-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.sm-card[hidden] { display: none; }
.sm-card:hover { transform: translateY(-2px); color: var(--ink); box-shadow: 0 2px 4px rgba(36,26,29,.08), 0 14px 32px rgba(36,26,29,.12); }
.sm-card__media { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--stone), var(--paper-2)); overflow: hidden; }
.sm-card__media img { width: 100%; height: 100%; object-fit: cover; }
.sm-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.sm-card__title { font: 600 .98rem/1.3 var(--serif); }
.sm-card__meta { font-size: .8rem; color: var(--muted); min-height: 1em; }

/* ---------- Themes ---------- */
.sm-themes { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .sm-themes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .sm-themes { grid-template-columns: repeat(3, 1fr); } }
.sm-theme { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.sm-theme:hover { border-color: var(--bronze); color: var(--ink); }
.sm-theme__count { font: 600 .85rem/1 var(--font); color: var(--bronze); background: #fbecc8; padding: 6px 9px; border-radius: 999px; }

.sm-near-cta { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: linear-gradient(135deg, #f8ebe6, #f3ece2); border: 1px solid var(--line); }
.sm-near-cta .sm-h2 { margin-bottom: .2em; }
.sm-near-cta p { margin: 0; font-size: .92rem; }
@media (min-width: 720px) { .sm-near-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; } }

.sm-story p { font-size: 1.05rem; max-width: 62ch; color: var(--ink-2); }

/* ---------- Eser ---------- */
.sm-eser__head { padding-top: 20px; }
.sm-eser__title { font-size: clamp(1.8rem, 7vw, 3rem); margin-bottom: 14px; }
.sm-eser__media { max-width: var(--max); margin: 0 auto; }
@media (min-width: 720px) { .sm-eser__media { padding-inline: var(--gutter); } }
.sm-player { position: relative; background: #140b0e; }
@media (min-width: 720px) { .sm-player { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); } }
.sm-player__facade, .sm-player__empty, .sm-player__frame, .sm-player__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; padding: 0; margin: 0; background: #140b0e; object-fit: contain; }
.sm-player__facade img, .sm-player__empty img { height: 100%; }
.sm-player__facade { position: relative; cursor: pointer; }
.sm-player__facade img, .sm-player__empty img { width: 100%; height: 100%; object-fit: cover; }
.sm-player__facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,11,14,0) 40%, rgba(20,11,14,.55)); }
.sm-player__play { position: absolute; z-index: 1; left: 50%; top: 50%; translate: -50% -50%; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.95); color: var(--ink); box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .15s; }
.sm-player__play svg { margin-left: 4px; }
.sm-player__facade:hover .sm-player__play { transform: scale(1.06); }
.sm-player__empty { position: relative; }
.sm-player__empty img { opacity: .55; }
.sm-player__badge { position: absolute; left: 50%; top: 50%; translate: -50% -50%; background: rgba(20,11,14,.85); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.sm-player__fallback { margin: 0; padding: 8px var(--gutter); background: var(--paper-2); font-size: .85rem; }

.sm-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.sm-actions .sm-btn { flex: 1 1 auto; }
@media (min-width: 720px) { .sm-actions .sm-btn { flex: 0 0 auto; } }

.sm-prose { font-size: 1.05rem; max-width: 68ch; margin-top: 24px; color: var(--ink-2); }
.sm-prose h2, .sm-prose h3 { color: var(--ink); margin-top: 1.6em; }
.sm-prose img { border-radius: var(--radius-sm); }
.sm-prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border-radius: var(--radius-sm); }

.sm-minimap { height: 220px; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); z-index: 0; }

/* ---------- Credit ---------- */
.sm-credit { display: flex; gap: 16px; align-items: center; margin: 48px 0 40px; padding: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sm-credit p { margin: 0; font-size: .88rem; color: var(--muted); }
.sm-credit p a { font-weight: 600; display: inline-block; margin-top: 4px; }
.sm-credit__logo { flex: 0 0 auto; color: var(--ink); text-decoration: none; font-weight: 700; }
.sm-credit__logo { background: var(--ink); border-radius: 12px; padding: 12px 14px; }
.sm-credit__logo img { width: 104px; height: auto; }

/* ---------- List ---------- */
.sm-list__head { padding-top: 28px; }
.sm-list__head .sm-h1 { margin-bottom: .1em; }
.sm-filters { display: flex; gap: 8px; margin: 16px 0 12px; }
.sm-search { flex: 1; }
.sm-search input { width: 100%; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font: inherit; color: var(--ink); }
.sm-search input:focus { outline: none; border-color: var(--aegean); }
.sm-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 0 calc(var(--gutter) * -1) 14px; padding-inline: var(--gutter); scrollbar-width: none; }
.sm-chips::-webkit-scrollbar { display: none; }
.sm-chip { flex: 0 0 auto; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 8px 14px; font-size: .88rem; font-weight: 500; cursor: pointer; }
.sm-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.sm-list { padding-bottom: 48px; }

/* ---------- Map ---------- */
.sm-mapview__head { padding-top: 24px; }
.sm-map { height: 68vh; min-height: 380px; z-index: 0; background: var(--paper-2); }
.sm-mapview__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-block: 16px 40px; }
.sm-mapview__foot p { margin: 0; font-size: .85rem; }
.sm-pin span { display: block; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--bronze); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.sm-pin.is-active span { background: var(--aegean); }
.leaflet-popup-content { margin: 0; }
.leaflet-popup-content-wrapper { border-radius: 12px; overflow: hidden; padding: 0; }
.sm-pop { display: block; text-decoration: none; color: var(--ink); width: 220px; }
.sm-pop img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.sm-pop strong { display: block; padding: 10px 12px 2px; font: 600 1rem/1.3 var(--serif); }
.sm-pop span { display: block; padding: 0 12px 12px; color: var(--aegean); font-weight: 600; font-size: .85rem; }

/* ---------- Page ---------- */
.sm-page { padding-block: 32px 24px; }
.sm-page__head { max-width: 68ch; }

/* ---------- Footer ---------- */
.sm-footer { background: linear-gradient(180deg, var(--fz) 0%, var(--fz-2) 100%); color: rgba(255,255,255,.82); margin-top: 40px; padding-top: 40px; }
.sm-footer a { color: #fff; text-decoration: none; }
.sm-footer a:hover { text-decoration: underline; }
.sm-footer__inner { display: grid; gap: 28px; }
.sm-footer__brand { color: #fff; }
.sm-footer__brand svg { height: 52px; width: auto; color: #fff; }
.sm-footer__brand .sm-wordmark { color: #fff; }
.sm-footer__brand p { margin: 10px 0 0; font-size: .92rem; color: rgba(255,255,255,.72); max-width: 32ch; }
.sm-footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: .95rem; }
.sm-footer__tech { display: flex; flex-direction: column; gap: 8px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.sm-footer__fazlanet { color: #fff; }
.sm-footer__fazlanet img { width: 150px; height: auto; border-radius: 6px; }
.sm-footer__legal { padding-block: 24px; margin: 28px auto 0; font-size: .8rem; color: rgba(255,255,255,.58); border-top: 1px solid rgba(255,255,255,.08); }
@media (min-width: 820px) { .sm-footer__inner { grid-template-columns: 1.3fr 1fr auto; align-items: start; } }

/* ---------- Toast ---------- */
.sm-toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: .9rem; z-index: 200; transition: opacity .4s; box-shadow: var(--shadow); }
.sm-toast.is-out { opacity: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Tabela tarayıcı ---------- */
body:has(.sm-scan) .sm-footer { display: none; }
.sm-scan { background: #140b0e; color: #fff; }
.sm-scan__stage { position: relative; height: calc(100svh - 59px); min-height: 520px; overflow: hidden; }
.sm-scan__cam { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #140b0e; opacity: 0; transition: opacity .3s; }
[data-state="scanning"] .sm-scan__cam, [data-state="found"] .sm-scan__cam, [data-state="loading"] .sm-scan__cam { opacity: 1; }
.sm-scan__frame { position: absolute; left: 5%; right: 5%; top: 50%; aspect-ratio: 1 / .85; max-height: 80%; translate: 0 -50%; pointer-events: none; display: none; }
[data-state="scanning"] .sm-scan__frame, [data-state="loading"] .sm-scan__frame { display: block; }
.sm-scan__frame span { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.sm-scan__frame span:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.sm-scan__frame span:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.sm-scan__frame span:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.sm-scan__frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
[data-state="scanning"] .sm-scan__frame span { animation: sm-pulse 1.6s ease-in-out infinite; }
@keyframes sm-pulse { 50% { opacity: .45; } }
.sm-scan__panel { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px var(--gutter); gap: 4px; background: radial-gradient(130% 90% at 50% 0%, #a8394a 0%, var(--sign) 40%, var(--sign-dark) 100%); }
.sm-scan__panel p { color: rgba(255,255,255,.82); max-width: 34ch; }
[data-state="choose"] .sm-scan__panel--choose,
[data-state="novideo"] .sm-scan__panel--novideo,
[data-state="idle"] .sm-scan__panel--idle, [data-state="denied"] .sm-scan__panel--denied, [data-state="nocam"] .sm-scan__panel--nocam, [data-state="notfound"] .sm-scan__panel--notfound { display: flex; }
.sm-scan__icon { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); margin-bottom: 14px; color: var(--amber); }
.sm-scan__title { font-size: clamp(1.7rem, 7vw, 2.4rem); color: #fff; margin-bottom: .3em; }
.sm-scan__go { margin-top: 14px; min-width: 220px; background: var(--bronze); border-color: var(--bronze); }
.sm-scan__go:hover { background: var(--bronze-2); border-color: var(--bronze-2); }
.sm-scan__file { margin-top: 14px; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sm-scan__note { font-size: .8rem; margin-top: 18px; color: rgba(255,255,255,.58) !important; }
.sm-scan__link { margin-top: 14px; color: var(--amber); }
.sm-scan__status { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; margin: 0; padding: 10px 16px; border-radius: 999px; background: rgba(20,11,14,.78); color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; display: none; backdrop-filter: blur(6px); }
[data-state="scanning"] .sm-scan__status, [data-state="loading"] .sm-scan__status { display: block; }
.sm-scan__close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(20,11,14,.7); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: none; }
[data-state="scanning"] .sm-scan__close, [data-state="loading"] .sm-scan__close { display: block; }
.sm-scan__result { position: absolute; inset: 0; display: none; align-items: flex-end; justify-content: center; padding: 16px; background: linear-gradient(180deg, rgba(20,11,14,0) 0%, rgba(20,11,14,.55) 40%, rgba(20,11,14,.9) 100%); }
[data-state="found"] .sm-scan__result { display: flex; }
.sm-scan__card { width: 100%; max-width: 640px; background: rgba(52,16,26,.94); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45); animation: sm-rise .35s ease-out; backdrop-filter: blur(8px); }
@keyframes sm-rise { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.sm-scan__rtitle { font-size: 1.5rem; color: #fff; margin: 0 0 12px; }
.sm-scan__video { position: relative; border-radius: 12px; overflow: hidden; background: #000; }
.sm-scan__video video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.sm-scan__unmute { position: absolute; top: 10px; right: 10px; }
.sm-scan__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sm-scan__actions .sm-btn { flex: 1 1 auto; }
.sm-scan__actions .sm-btn:not(.sm-btn--primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.sm-scan__actions .sm-btn--primary { background: var(--bronze); border-color: var(--bronze); }

/* Başlıktaki tara düğmesi */
.sm-scanbtn { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 600; font-size: .9rem; text-decoration: none; }
.sm-scanbtn:hover { background: var(--aegean-2); color: #fff; }
.sm-scanbtn svg { flex: 0 0 auto; }
@media (max-width: 420px) { .sm-scanbtn span { display: none; } .sm-scanbtn { padding: 8px; } }
.sm-scan__panel--choose { background: rgba(20,11,14,.86); backdrop-filter: blur(6px); }
.sm-scan__choices { display: grid; gap: 10px; width: 100%; max-width: 360px; margin-top: 10px; }
.sm-scan__choice { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font: 600 1.05rem/1.25 var(--serif); text-align: left; cursor: pointer; }
.sm-scan__choice:hover { background: rgba(255,255,255,.16); }
.sm-scan__choice small { font: 500 .8rem/1 var(--font); color: var(--amber); white-space: nowrap; }
.sm-scan__plain { background: none; border: 0; text-decoration: underline; cursor: pointer; font: inherit; }

/* AR modu */
.sm-scan__ar { position: absolute; inset: 0; display: none; overflow: hidden; }
.sm-scan__ar video, .sm-scan__ar canvas { position: absolute !important; }
[data-state="ar"] .sm-scan__ar { display: block; }
[data-state="ar"] .sm-scan__status { display: block; bottom: auto; top: 16px; }
[data-state="ar"] .sm-scan__status:empty { display: none; }
[data-state="ar"] .sm-scan__close { display: block; }
.sm-scan__arbar { position: absolute; left: 0; right: 0; bottom: 0; display: none; padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(20,11,14,0), rgba(20,11,14,.88) 35%); }
[data-state="ar"] .sm-scan__arbar { display: block; }
.sm-scan__arhead .sm-eyebrow { margin: 0 0 2px; }
.sm-scan__artitle { font: 600 1.35rem/1.2 var(--serif); margin: 0 0 10px; color: #fff; }
.sm-scan__arhint { color: var(--amber); font-size: .9rem; margin: 0 0 10px; }
.sm-scan__aractions { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-scan__aractions .sm-btn { flex: 1 1 auto; min-height: 40px; padding: 8px 12px; font-size: .88rem; }

/* Tam ekran oynatıcı */
.sm-fs { position: absolute; inset: 0; display: none; background: #000; z-index: 5; }
[data-state="play"] .sm-fs { display: block; }
.sm-fs__media { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.sm-fs__media video, .sm-fs__media iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.sm-fs__top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px var(--gutter) 28px; background: linear-gradient(180deg, rgba(0,0,0,.7), rgba(0,0,0,0)); pointer-events: none; }
.sm-fs__top > * { pointer-events: auto; }
.sm-fs__top .sm-eyebrow { margin: 0 0 2px; }
.sm-fs__title { font-size: 1.3rem; color: #fff; margin: 0; }
.sm-fs__x { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.sm-fs__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; padding: 28px var(--gutter) calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0)); pointer-events: none; }
.sm-fs__bar > * { pointer-events: auto; flex: 1 1 auto; min-height: 40px; padding: 8px 12px; font-size: .88rem; }
.sm-fs__bar [hidden] { display: none; }
/* Video kontrolleriyle çakışmasın: alt bar videonun üstünde ama video kontrolleri için boşluk */
[data-state="play"] .sm-fs__media { bottom: 72px; top: 0; }
@media (orientation: landscape) and (max-height: 500px) {
	[data-state="play"] .sm-fs__media { bottom: 0; }
	.sm-fs__bar { opacity: .0; transition: opacity .2s; }
	.sm-fs:hover .sm-fs__bar, .sm-fs:focus-within .sm-fs__bar { opacity: 1; }
	.sm-fs__top { padding-bottom: 12px; }
}
/* Gerçek tam ekran: başlık dışında tüm sayfa */
.is-fullscreen .sm-fs__media { bottom: 0; }
.is-fullscreen .sm-fs__bar { opacity: 0; transition: opacity .2s; }
.is-fullscreen .sm-fs:hover .sm-fs__bar { opacity: 1; }
/* Tarama sayfasında oynatıcı açıkken üst menü de kapansın: ekranın tamamı video */
body:has([data-state="play"]) .sm-header { display: none; }
body:has([data-state="play"]) .sm-scan__stage { height: 100svh; }


/* =====================================================================
   v1.4 — Tabela dili, uygulama kabuğu, Fazlanet dokunuşları
   ===================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }

/* Kemer: tabelanın üst formu */
.sm-card__media { border-radius: 50% 50% 0 0 / 22% 22% 0 0; margin: 8px 8px 0; aspect-ratio: 16 / 11; box-shadow: inset 0 0 0 2px rgba(243,169,1,.0); }
.sm-card { border-top: 0; }
.sm-card::before { content: none; }
.sm-card__body { padding: 10px 12px 14px; }
.sm-card__title { color: var(--ink); }
.sm-card:hover .sm-card__media { box-shadow: inset 0 0 0 3px var(--amber); }

/* Hero: tabela yüzeyi */
.sm-hero { border-radius: 0 0 28px 28px; }
.sm-hero::before { content: ""; position: absolute; inset: 14px 14px auto; height: calc(100% - 28px); border: 2px solid rgba(243,169,1,.55); border-radius: 46% 46% 14px 14px / 20% 20% 14px 14px; pointer-events: none; z-index: -1; }
.sm-hero__title { text-wrap: balance; }
.sm-hero .sm-btn--primary { background: var(--amber); border-color: var(--amber); color: #2a1206; }
.sm-hero .sm-btn--primary:hover { background: #ffbe2e; border-color: #ffbe2e; color: #2a1206; }
.sm-btn--scan svg { margin-right: 2px; }

.sm-theme { border-left: 4px solid var(--sign); }
.sm-theme:hover { border-color: var(--amber); }
.sm-eyebrow { color: var(--amber-ink); }
.sm-eyebrow--light, .sm-hero .sm-eyebrow, .sm-scan .sm-eyebrow, .sm-fs .sm-eyebrow { color: var(--amber); }
.sm-hero__inner { padding-inline: calc(var(--gutter) + 10px); }

/* Teknoloji bölümü (Fazlanet) */
.sm-tech { background: linear-gradient(160deg, var(--fz) 0%, var(--fz-2) 100%); color: #fff; border-radius: 24px; padding: 28px 22px; margin-block: 44px; position: relative; overflow: hidden; }
.sm-tech::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: url(assets/img/fazlanet-isaret-beyaz.svg) no-repeat center / contain; opacity: .07; }
.sm-tech__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.sm-tech__head svg { width: 120px; height: auto; color: #fff; }
.sm-tech h2 { color: #fff; margin: 14px 0 6px; }
.sm-tech > p { color: rgba(255,255,255,.8); max-width: 56ch; }
.sm-tech__grid { display: grid; gap: 12px; margin: 18px 0 20px; }
@media (min-width: 720px) { .sm-tech__grid { grid-template-columns: repeat(3, 1fr); } .sm-tech { padding: 40px; } }
.sm-tech__item { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 16px; }
.sm-tech__item svg { width: 28px; height: 28px; color: var(--amber); }
.sm-tech__item h3 { font: 600 1.05rem/1.25 var(--font); color: #fff; margin: 10px 0 4px; letter-spacing: 0; }
.sm-tech__item p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.75); }
.sm-tech .sm-btn { background: #fff; color: var(--fz); border-color: #fff; }
.sm-tech .sm-btn:hover { background: var(--amber); border-color: var(--amber); color: #2a1206; }

/* Fazlanet imza rozeti (eser sayfası / sayfa sonları) */
.sm-credit { border: 0; background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; }
.sm-credit__logo { background: transparent !important; padding: 0 !important; color: var(--fz); }
.sm-credit__logo svg { width: 118px; height: auto; display: block; }
.sm-credit p { color: var(--ink-2); }
.sm-credit p a { color: var(--fz); }

/* Alt bilgi */
.sm-footer__fazlanet { color: #fff; display: inline-block; }
.sm-footer__fazlanet svg { width: 170px; height: auto; display: block; }
.sm-footer__brand svg { color: #fff; }

/* ---------- Uygulama kabuğu: alt sekme çubuğu (mobil) ---------- */
.sm-tabbar { display: none; }
@media (max-width: 899px) {
	:root { --tabbar-h: calc(66px + env(safe-area-inset-bottom)); }
	body { padding-bottom: var(--tabbar-h); }
	.sm-nav, .sm-scanbtn { display: none !important; }
	.sm-header__inner { min-height: 54px; padding-block: 6px; }
	.sm-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: var(--tabbar-h); padding: 0 6px env(safe-area-inset-bottom); background: rgba(255,253,250,.94); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-top: 1px solid var(--line); }
	.sm-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 62px; color: var(--muted); text-decoration: none; font: 600 .68rem/1 var(--font); letter-spacing: .01em; -webkit-tap-highlight-color: transparent; }
	.sm-tab svg { width: 24px; height: 24px; }
	.sm-tab[aria-current] { color: var(--sign); }
	.sm-tab--scan { position: relative; }
	.sm-tab--scan .sm-tab__fab { display: grid; place-items: center; width: 62px; height: 62px; margin-top: -26px; border-radius: 50% 50% 22px 22px / 52% 52% 22px 22px; background: var(--sign); color: #fff; box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px var(--amber), 0 10px 24px rgba(105,25,50,.35); }
	.sm-tab--scan .sm-tab__fab svg { width: 28px; height: 28px; }
	.sm-tab--scan span:last-child { color: var(--sign); margin-top: 2px; }
	.sm-main { min-height: calc(100svh - 54px - var(--tabbar-h)); }
	.sm-footer { padding-bottom: 8px; }
	/* Tarayıcı sahnesi sekme çubuğunun üstünde kalsın */
	.sm-scan__stage { height: calc(100svh - 54px - var(--tabbar-h)); min-height: 460px; }
	body:has([data-state="scanning"]) .sm-tabbar, body:has([data-state="loading"]) .sm-tabbar,
	body:has([data-state="play"]) .sm-tabbar, body:has([data-state="ar"]) .sm-tabbar { display: none; }
	body:has([data-state="scanning"]), body:has([data-state="loading"]), body:has([data-state="play"]), body:has([data-state="ar"]) { padding-bottom: 0; }
	body:has([data-state="scanning"]) .sm-scan__stage, body:has([data-state="loading"]) .sm-scan__stage, body:has([data-state="ar"]) .sm-scan__stage { height: calc(100svh - 54px); }
}
@media (display-mode: standalone) { .sm-header { padding-top: env(safe-area-inset-top); } }

/* Tarama ekranındaki teknoloji rozeti */
.sm-scan__by { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; align-items: center; gap: 8px; color: rgba(255,255,255,.7); font-size: .74rem; letter-spacing: .04em; text-decoration: none; }
.sm-scan__by svg { width: 78px; height: auto; color: #fff; }
.sm-scan__by:hover { color: #fff; }
.sm-scan__panel--idle .sm-scan__go { background: var(--amber); border-color: var(--amber); color: #2a1206; }

/* Video bitiş kartı */
.sm-end { position: absolute; inset: 0; z-index: 6; display: none; align-items: center; justify-content: center; padding: 24px var(--gutter); background: rgba(20,11,14,.88); backdrop-filter: blur(8px); text-align: center; }
.sm-fs.is-ended .sm-end { display: flex; }
.sm-end__box { width: 100%; max-width: 380px; display: grid; gap: 10px; }
.sm-end__next { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; }
.sm-end__next img { width: 72px; height: 54px; object-fit: cover; border-radius: 30px 30px 6px 6px / 18px 18px 6px 6px; flex: 0 0 auto; }
.sm-end__next small { display: block; color: var(--amber); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.sm-end__next strong { font: 600 1.05rem/1.25 var(--serif); }
.sm-end__next em { display: block; font-style: normal; font-size: .8rem; color: rgba(255,255,255,.65); }
.sm-end__fz { margin-top: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75); font-size: .85rem; }
.sm-end__fz a { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.sm-end__fz svg { width: 120px; height: auto; color: #fff; }

/* Kurulum ipucu (PWA) ve açılış ekranı */
.sm-install { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 12px); z-index: 70; display: none; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: 0 14px 40px rgba(0,0,0,.3); font-size: .88rem; }
.sm-install.is-on { display: flex; animation: sm-rise .3s ease-out; }
.sm-install img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.sm-install p { margin: 0; flex: 1; line-height: 1.35; }
.sm-install button { border: 0; background: var(--amber); color: #2a1206; font-weight: 700; border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.sm-install .sm-install__x { background: transparent; color: rgba(255,255,255,.7); padding: 6px 8px; font-size: 20px; }
.sm-splash { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(130% 90% at 50% 0%, #a8394a 0%, var(--sign) 40%, var(--sign-dark) 100%); color: #fff; transition: opacity .35s; }
.sm-splash svg { color: #fff; }
.sm-splash__logo svg { height: 86px; width: auto; }
.sm-splash__by { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); position: absolute; bottom: calc(40px + env(safe-area-inset-bottom)); }
.sm-splash__by svg { width: 120px; height: auto; }
.sm-splash.is-out { opacity: 0; pointer-events: none; }

/* =====================================================================
   v1.5 — Teknoloji vaka çalışması ve iletişim formu
   ===================================================================== */
.sm-btn--amber { background: var(--amber); border-color: var(--amber); color: #2a1206; }
.sm-btn--amber:hover { background: #ffbe2e; border-color: #ffbe2e; color: #2a1206; }
.sm-case__hero { background: linear-gradient(160deg, var(--fz) 0%, var(--fz-2) 100%); color: #fff; padding: 40px 0 48px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.sm-case__hero::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; background: url(assets/img/fazlanet-isaret-beyaz.svg) no-repeat center / contain; opacity: .06; }
.sm-case__brand svg { width: 150px; height: auto; color: #fff; margin-bottom: 26px; }
.sm-case__title { font-size: clamp(2rem, 7.5vw, 3.4rem); color: #fff; max-width: 18ch; text-wrap: balance; }
.sm-case__lead { font-size: 1.08rem; color: rgba(255,255,255,.85); max-width: 60ch; }
.sm-case__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.sm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -26px; position: relative; z-index: 1; }
@media (min-width: 820px) { .sm-stats { grid-template-columns: repeat(4, 1fr); } }
.sm-stat { background: var(--card); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); border-top: 4px solid var(--amber); }
.sm-stat strong { display: block; font: 600 2.2rem/1 var(--serif); color: var(--fz); }
.sm-stat span { display: block; margin-top: 6px; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.sm-case__sec { margin-block: 52px; }
.sm-case__two { display: grid; gap: 28px; }
@media (min-width: 820px) { .sm-case__two { grid-template-columns: 1fr 1fr; gap: 40px; } }
.sm-list-check { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.sm-list-check li { position: relative; padding-left: 30px; color: var(--ink-2); }
.sm-list-check li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #f6dfe2; color: var(--sign); font: 700 .75rem/20px var(--font); text-align: center; }
.sm-list-check--ok li::before { content: "✓"; background: #dce8f3; color: var(--fz); }
.sm-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 820px) { .sm-steps { grid-template-columns: repeat(3, 1fr); } }
.sm-steps li { position: relative; background: var(--card); border-radius: 18px; padding: 20px; box-shadow: var(--shadow); }
.sm-steps li > svg { width: 30px; height: 30px; color: var(--sign); }
.sm-steps h3 { font: 600 1.15rem/1.2 var(--serif); margin: 10px 0 4px; }
.sm-steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.sm-steps__n { position: absolute; right: 16px; top: 12px; font: 600 2.4rem/1 var(--serif); color: var(--paper-2); }
.sm-caps { display: grid; gap: 10px; margin-top: 14px; }
@media (min-width: 640px) { .sm-caps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .sm-caps { grid-template-columns: repeat(3, 1fr); } }
.sm-cap { padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.sm-cap svg { width: 26px; height: 26px; color: var(--fz); }
.sm-cap h3 { font: 600 1rem/1.25 var(--font); margin: 8px 0 4px; letter-spacing: 0; }
.sm-cap p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.sm-case__privacy { background: var(--paper-2); border-radius: 22px; padding: 26px 22px; }
.sm-case__privacy p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.sm-case__contact { background: linear-gradient(160deg, var(--sign) 0%, var(--sign-dark) 100%); color: #fff; border-radius: 24px; padding: 28px 20px; }
.sm-case__contact .sm-h2 { color: #fff; }
.sm-case__contact p { color: rgba(255,255,255,.85); }
.sm-case__contact-in { display: grid; gap: 22px; }
@media (min-width: 900px) { .sm-case__contact-in { grid-template-columns: 1fr 1.2fr; gap: 40px; } .sm-case__contact { padding: 40px; } }
.sm-case__site { display: inline-flex; align-items: center; gap: 12px; margin-top: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.sm-case__site svg { width: 120px; height: auto; color: #fff; }
.sm-case__site--light { color: var(--fz); }
.sm-case__site--light svg { color: var(--fz); }

/* Form */
.sm-form { display: grid; gap: 12px; background: var(--card); color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.sm-form__row { display: grid; gap: 12px; }
@media (min-width: 560px) { .sm-form__row { grid-template-columns: 1fr 1fr; } }
.sm-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.sm-form input[type=text], .sm-form input[type=email], .sm-form input[type=tel], .sm-form select, .sm-form textarea { width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.sm-form textarea { resize: vertical; min-height: 110px; }
.sm-form input:focus, .sm-form select:focus, .sm-form textarea:focus { outline: none; border-color: var(--sign); background: #fff; }
.sm-form__check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; }
.sm-form__check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--sign); flex: 0 0 auto; }
.sm-form__check a { color: var(--sign); }
.sm-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sm-form button[type=submit] { justify-self: start; min-width: 160px; }
.sm-form button[disabled] { opacity: .6; cursor: wait; }
.sm-form__status { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.sm-form__status.is-ok { color: #1f7a3d; }
.sm-form__status.is-err { color: var(--sign); }
.sm-form.is-sent { outline: 3px solid #cfe8d6; }
.sm-contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .sm-contact { grid-template-columns: 1fr 1.2fr; gap: 40px; } }

/* =====================================================================
   v1.6 — Miras Pasaportu
   ===================================================================== */
.sm-pp__head { background: radial-gradient(130% 100% at 85% 0%, #a8394a 0%, var(--sign) 42%, var(--sign-dark) 100%); color: #fff; padding: 32px 0 30px; border-radius: 0 0 28px 28px; position: relative; overflow: hidden; }
.sm-pp__head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: var(--amber); }
.sm-pp__title { font-size: clamp(1.9rem, 7vw, 2.8rem); color: #fff; max-width: 16ch; text-wrap: balance; }
.sm-pp__lead { color: rgba(255,255,255,.85); max-width: 46ch; }
.sm-pp__stats { display: flex; gap: 22px; margin: 18px 0 10px; }
.sm-pp__stats strong { display: block; font: 600 2rem/1 var(--serif); color: #fff; }
.sm-pp__stats span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sm-pp__bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; margin-bottom: 18px; max-width: 420px; }
.sm-pp__bar span { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 99px; transition: width .6s ease; }
.sm-pp__head .sm-btn svg { width: 18px; height: 18px; }
.sm-pp__flash { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #e8f3ea; color: #1f5a30; font-weight: 600; }
.sm-next { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 12px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-left: 4px solid var(--amber); }
.sm-next img { width: 84px; height: 62px; object-fit: cover; border-radius: 34px 34px 8px 8px / 20px 20px 8px 8px; flex: 0 0 auto; }
.sm-next small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber-ink); font-weight: 700; }
.sm-next strong { display: block; font: 600 1.1rem/1.25 var(--serif); }
.sm-next em { font-style: normal; font-size: .85rem; color: var(--muted); }
.sm-badges { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .sm-badges { grid-template-columns: repeat(4, 1fr); } }
.sm-badge { padding: 14px; border-radius: 16px; background: var(--paper-2); color: var(--muted); display: grid; gap: 2px; border: 1px dashed var(--stone); }
.sm-badge__icon { font-size: 1.4rem; line-height: 1; color: var(--stone-2); }
.sm-badge strong { font: 600 .95rem/1.25 var(--font); color: var(--ink-2); }
.sm-badge small { font-size: .78rem; }
.sm-badge.is-on { background: linear-gradient(160deg, #fff6dd, #fbe7b0); border: 1px solid #f0c45a; color: var(--ink-2); }
.sm-badge.is-on .sm-badge__icon { color: var(--amber-ink); }
.sm-badge.is-on strong { color: var(--ink); }
.sm-stamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
@media (min-width: 720px) { .sm-stamps { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1040px) { .sm-stamps { grid-template-columns: repeat(7, 1fr); } }
.sm-stamp { text-decoration: none; color: var(--muted); display: grid; gap: 6px; }
.sm-stamp__media { position: relative; aspect-ratio: 4 / 5; border-radius: 50% 50% 10px 10px / 30% 30% 10px 10px; overflow: hidden; background: var(--paper-2); border: 2px dashed var(--stone); }
.sm-stamp__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.85); opacity: .35; }
.sm-stamp__t { font: 600 .78rem/1.25 var(--font); text-align: center; }
.sm-stamp.is-on { color: var(--ink); }
.sm-stamp.is-on .sm-stamp__media { border: 3px solid var(--amber); }
.sm-stamp.is-on .sm-stamp__media img { filter: none; opacity: 1; }
.sm-stamp__seal { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; rotate: -8deg; padding: 4px 8px; border: 2px solid #fff; border-radius: 8px; background: rgba(138,36,51,.92); color: #fff; font: 700 .68rem/1 var(--font); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.sm-pp__account { background: var(--card); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.sm-pp__account > p { color: var(--ink-2); }
.sm-pp__join { box-shadow: none; padding: 0; background: transparent; }
.sm-pp__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sm-pp__danger { color: var(--sign); }
.sm-pp__clear { color: var(--muted); font-size: .85rem; }

/* Eser sayfası: pasaport etiketi */
.sm-visit { display: inline-flex; align-items: center; gap: 6px; margin: -4px 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px dashed var(--stone-2); }
.sm-visit.is-on { background: #fff3d1; border: 1px solid #f0c45a; color: var(--amber-ink); }

/* Tarama sonrası mühür bildirimi */
.sm-stampfx { position: absolute; left: 50%; top: 78px; translate: -50% 0; z-index: 30; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255,253,250,.97); color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: 0 14px 40px rgba(0,0,0,.35); animation: sm-stampin .45s cubic-bezier(.2,1.4,.4,1); transition: opacity .4s, translate .4s; }
.sm-stampfx b { color: var(--sign); }
.sm-stampfx em { font-style: normal; color: var(--amber-ink); font-size: .85rem; }
.sm-stampfx__seal { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50% 50% 10px 10px / 55% 55% 10px 10px; background: var(--sign); color: #fff; box-shadow: 0 0 0 3px var(--amber); rotate: -8deg; }
.sm-stampfx.is-out { opacity: 0; translate: -50% -12px; }
@keyframes sm-stampin { from { opacity: 0; transform: scale(1.35) rotate(-6deg); } }
