/* kacgun.com.tr — tek stil dosyası. Harici font yok; sistem fontu. */
:root {
  --bg: #f3f7fd;
  --bg2: #ffffff;
  --ink: #0f172a;
  --muted: #5b6474;
  --line: #dfe7f3;
  --brand: #2563eb;
  --brand2: #06b6d4;
  --link: #2563eb;
  --num-grad: linear-gradient(135deg, #2563eb, #4f46e5);
  --accent: #f59e0b;
  --ok: #16a34a;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --radius: 18px;
  --c: var(--brand);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1020; --bg2: #121b2e; --ink: #eef3fb; --muted: #94a3bd; --line: #22314d; --link: #60a5fa; --brand: #3b82f6; --num-grad: linear-gradient(135deg, #60a5fa, #818cf8);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1020; --bg2: #121b2e; --ink: #eef3fb; --muted: #94a3bd; --line: #22314d; --link: #60a5fa; --brand: #3b82f6; --num-grad: linear-gradient(135deg, #60a5fa, #818cf8);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .15em; }
a:hover { color: color-mix(in srgb, var(--link) 75%, var(--ink)); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin: .2em 0 .3em; }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 1.6em 0 .6em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--bg2); padding: 8px; z-index: 10; }
[hidden] { display: none !important; }

/* Header */
.site-header { background: var(--bg2); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 6px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.35rem; }
.logo-mark { font-size: 1.4rem; }
.logo-text b { background: linear-gradient(90deg, #0ea5e9, #2563eb 60%, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-actions { display: flex; gap: 6px; align-items: center; }
.hbtn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; }
.hbtn:hover { border-color: var(--brand); }
.fav-count { background: #ec4899; color: #fff; border-radius: 999px; font-size: .72rem; padding: 0 6px; }
.hbtn { white-space: nowrap; min-height: 38px; justify-content: center; }
@media (max-width: 680px) { .hbtn span { display: none; } }
.cat-nav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: 0 0 auto; padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .88rem; background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); }
.cat-nav a:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }

.crumbs { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero {
  position: relative; text-align: center; margin: 20px 0; padding: 28px 16px 24px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 60%),
              radial-gradient(120% 120% at 100% 100%, color-mix(in srgb, var(--brand2) 25%, transparent), transparent 60%), var(--bg2);
  box-shadow: var(--shadow);
}
.hero-emoji { font-size: 3.2rem; line-height: 1; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .hero-emoji { animation: none; } }
.hero-kicker { margin: .4em 0 0; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--muted); font-weight: 700; }
.hero-title a { color: var(--ink); text-decoration: none; }
.hero-date { margin: 0 0 14px; font-weight: 600; }
.hero-actions .btn { background: linear-gradient(90deg, #0ea5e9, #2563eb); box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.hero-actions .btn:hover { background: linear-gradient(90deg, #0284c7, #1d4ed8); }
.hero-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 560px; margin: 16px auto; }
.cd-box { background: var(--bg2); border: 2px solid color-mix(in srgb, var(--c) 35%, var(--line)); border-radius: var(--radius); padding: 12px 4px 8px; text-align: center; box-shadow: var(--shadow); }
.cd-box b { display: block; font-size: clamp(1.8rem, 7vw, 3rem); font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--c); }
.cd-box span { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cd-live { display: none; grid-column: 1 / -1; font-size: 1.4rem; font-weight: 800; text-align: center; }
.countdown.is-live .cd-box { display: none; }
.countdown.is-live .cd-live { display: block; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand2)); color: #fff; text-decoration: none; font-weight: 700; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.fav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 2px solid var(--accent); background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.fav-btn[aria-pressed="true"] { background: var(--accent); color: #2b1a00; }
.fav-btn[aria-pressed="true"] .fav-icon::before { content: "★"; }
.fav-btn[aria-pressed="true"] .fav-icon { font-size: 0; }
.fav-btn[aria-pressed="true"] .fav-icon::before { font-size: 1rem; }
.fav-sm { padding: 0; width: 30px; height: 30px; justify-content: center; border-width: 1px; margin-left: auto; border-color: var(--line); }
.fav-sm .fav-icon { font-size: 1rem; }
.fav-btn.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }

/* Blocks & grid */
.block { margin: 28px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head h2 { margin: 0 0 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
/* Kart: ilerleme halkası */
.card { position: relative; overflow: hidden; background: var(--bg2); border-radius: 22px; padding: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: center; gap: 14px; transition: transform .15s ease, border-color .15s ease; isolation: isolate; }
.card::before { content: ""; position: absolute; z-index: -1; width: 170px; height: 170px; border-radius: 50%; background: var(--c); opacity: .16; filter: blur(42px); left: -50px; top: -50px; pointer-events: none; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.card .card-count { position: relative; flex: 0 0 84px; height: 84px; margin: 0; padding: 0; display: block; }
.ring { width: 84px; height: 84px; transform: rotate(-90deg); display: block; }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset .6s ease; }
.ring-n { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring-n b { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ring-n small { font-size: .7rem; color: var(--muted); margin-top: 3px; text-transform: lowercase; }
.ring-n b.ring-today { font-size: 1.5rem; }
.card-info { min-width: 0; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 26px; }
.card-emoji { font-size: 1.3rem; line-height: 1; }
/* Kart favorisi: kategori sekmesi gibi üst kenardan sarkan yer imi kurdelesi; eklenince altın rengine dönüp uzar */
.card > .fav-btn { position: absolute; top: 0; right: 14px; z-index: 2; margin: 0; width: 32px; height: 38px; padding: 0 0 9px; border: 0; border-radius: 0; background: color-mix(in srgb, var(--c) 22%, var(--bg2)); color: color-mix(in srgb, var(--c) 80%, var(--ink)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); justify-content: center; align-items: center; transition: height .2s ease, background .2s ease, color .2s ease; }
.card > .fav-btn .fav-icon { font-size: 1.05rem; line-height: 1; transition: transform .2s ease; }
.card > .fav-btn:hover, .card > .fav-btn:focus-visible { height: 44px; background: color-mix(in srgb, var(--accent) 40%, var(--bg2)); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.card > .fav-btn:hover .fav-icon { transform: scale(1.15) rotate(-8deg); }
.card > .fav-btn[aria-pressed="true"] { height: 46px; background: linear-gradient(180deg, #fde68a, #f59e0b 55%, #ea580c); color: #fff; }
.card > .fav-btn[aria-pressed="true"] .fav-icon { font-size: 0; }
.card > .fav-btn[aria-pressed="true"] .fav-icon::before { font-size: 1.15rem; text-shadow: 0 1px 2px rgba(124, 45, 18, .5); }
.card > .fav-btn.pop { animation: ribbon .5s cubic-bezier(.3, 1.6, .5, 1); }
.card > .fav-btn[aria-pressed="false"].pop { animation: none; }
@keyframes ribbon { 0% { height: 30px; } 60% { height: 56px; } 100% { height: 46px; } }
@media (prefers-reduced-motion: reduce) { .card > .fav-btn, .card > .fav-btn .fav-icon { transition: none; } .card > .fav-btn.pop { animation: none; } }
.card:has(> .fav-btn) .card-cat { right: 56px; }
.chip-hot { background: #fde047; color: #422006; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .chip-hot { animation: none; } }
.chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: color-mix(in srgb, var(--c) 15%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--ink)); }
.chip-soft { background: var(--line); color: var(--muted); font-weight: 600; }
.card-title { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-date { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }
/* Kategori: kartın sağ üst kenarından sarkan küçük sekme, akışta yer tutmaz */
.card-cat { position: absolute; top: 0; right: 18px; z-index: 1; border-radius: 0 0 8px 8px; padding: 1px 9px 2px; font-size: .66rem; letter-spacing: .02em; background: color-mix(in srgb, var(--c) 22%, var(--bg2)); }
.card { padding-top: 22px; }

.filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.filter { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font: inherit; font-size: .88rem; cursor: pointer; }
.filter.is-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Today */
.today-card { background: var(--bg2); border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.today-card h2 { margin: 0 0 4px; font-size: 1.2rem; }
.progress { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0 8px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #38bdf8, #0ea5e9 35%, #2563eb 75%, #4f46e5); border-radius: 999px; box-shadow: 0 0 12px rgba(37, 99, 235, .35); }

/* Tools */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.tool-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--bg2); border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.tool-card span { font-size: 1.8rem; }
.tool-card small { color: var(--muted); }
.tool { display: grid; gap: 12px; background: var(--bg2); padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 640px; }
.tool label { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
.tool label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.tool input, .tool select { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
.tool-out { font-size: 1.05rem; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; }
.seg label:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input, .tool input[type="checkbox"], .tool input[type="radio"] { width: auto; margin: 0; }
.tool .countdown { margin: 4px 0; }
.tool-out .big { font-size: 2rem; font-weight: 800; color: var(--brand); display: block; line-height: 1.2; }
.tool-out ul { padding-left: 18px; }

/* Event page */
.event-head { text-align: center; margin-top: 12px; }
.event-emoji { font-size: 3rem; line-height: 1; }
.answer { font-size: 1.08rem; max-width: 760px; margin: 0 auto; }
.event-head .answer { text-align: center; }
.event-actions { display: flex; flex-direction: column; gap: 16px; align-items: center; margin: 8px 0 18px; }
.event-actions .share { justify-content: center; }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.sbtn { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); text-decoration: none; font: inherit; font-size: .9rem; cursor: pointer; }
.sbtn-wa { background: #25d366; color: #fff; border-color: #25d366; }
.sbtn-x { background: #000; color: #fff; border-color: #000; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.facts dl > div { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.notes .note { background: color-mix(in srgb, var(--accent) 14%, var(--bg2)); border-left: 4px solid var(--accent); padding: 4px 14px; border-radius: 10px; margin-bottom: 8px; }
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 1.02rem; }
.callout { background: color-mix(in srgb, var(--c) 10%, var(--bg2)); border-left: 4px solid var(--c); padding: 2px 16px; border-radius: 12px; margin: 16px 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 16px; }
table { width: 100%; border-collapse: collapse; background: var(--bg2); border-radius: 14px; overflow: hidden; font-size: .95rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: color-mix(in srgb, var(--brand) 6%, var(--bg2)); }
tr.is-past { opacity: .5; }
.faq details { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { display: inline; font-size: 1.02rem; }
.faq summary::after { content: "＋"; float: right; color: var(--muted); }
.faq details[open] summary::after { content: "－"; }
.event-foot { margin: 28px 0; border-top: 1px solid var(--line); padding-top: 12px; font-size: .9rem; }
.page-head { margin: 16px 0 20px; }
.page-head .answer { margin: 0 0 12px; }
.bridge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.bridge-card { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.bridge-card p { margin: 4px 0; }
.bridge h2 small { font-size: .85rem; font-weight: 500; }
.chip-link { display: inline-block; margin: 0 6px 8px 0; padding: 5px 12px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; }
.year-links a { margin-right: 10px; }
.empty { text-align: center; padding: 30px 0; }
.empty .big { font-size: 3rem; margin: 0; }
.fav-import { background: color-mix(in srgb, var(--accent) 15%, var(--bg2)); border-radius: var(--radius); padding: 14px; margin-bottom: 14px; }

/* Footer */
.site-footer { margin-top: 48px; background: var(--bg2); border-top: 1px solid var(--line); padding: 28px 0 12px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 4px 0; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.fh { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

.ad-slot { min-height: 280px; margin: 20px 0; }

.study-plan { background: color-mix(in srgb, var(--c) 8%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-radius: var(--radius); padding: 4px 18px 10px; margin: 18px 0; }
.study-plan h2 { margin-top: 14px; }
.plan-steps { padding-left: 20px; }
.plan-steps li { margin: 8px 0; }
.plan-steps li.is-now b { color: var(--c); }
.love-names { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.love-couple { font-size: 1.3rem; font-weight: 800; margin: 0; color: #db2777; }
.love-live { margin: 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.love-h { font-size: 1rem; margin: 12px 0 4px; }
.safak-bar { margin: 0; }

/* Gömülebilir sayaç kutusu */
.embed-box { background: var(--bg2); border: 1px dashed color-mix(in srgb, var(--c) 45%, var(--line)); border-radius: var(--radius); padding: 10px 16px; margin: 20px 0; }
.embed-box summary { cursor: pointer; font-weight: 700; }
.embed-in { display: grid; gap: 10px; padding: 10px 0 4px; }
.embed-opts { display: flex; gap: 12px; flex-wrap: wrap; }
.embed-opts label, .embed-pick, .embed-code-label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.embed-in select, .embed-in textarea { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.embed-in textarea { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; width: 100%; resize: vertical; }
.embed-preview { padding: 12px; border-radius: 14px; background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.embed-in .btn { justify-self: start; }

/* İftar */
.iftar-live { text-align: center; margin: 8px 0 16px; }
.iftar-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 24px; padding: 14px 12px; box-shadow: var(--shadow); max-width: 620px; margin: 0 auto; }
.iftar-label { margin: 0; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; color: var(--c); }
.iftar-at { margin: 0; font-size: 1.05rem; }
.iftar-sahur { color: var(--muted); }
.imsakiye td, .imsakiye th { text-align: center; white-space: nowrap; }
.imsakiye td:first-child, .imsakiye th:first-child { text-align: left; }
.imsakiye tr.is-today { background: color-mix(in srgb, #0d9488 14%, var(--bg2)); font-weight: 700; }
.city-search { display: grid; gap: 4px; max-width: 360px; font-weight: 600; margin-top: 12px; }
.city-search input { font: inherit; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); }
.mycity { margin: 10px 0; }

/* Paylaşılan kişisel sayaç sayfası */
.personal { margin: 18px 0 8px; padding: 26px 22px; border-radius: 24px; text-align: center; background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 16%, var(--bg2)), var(--bg2) 70%); border: 2px solid color-mix(in srgb, var(--pc) 35%, transparent); box-shadow: 0 10px 30px color-mix(in srgb, var(--pc) 18%, transparent); }
.personal-kicker { display: inline-block; margin: 0 0 6px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 15%, transparent); color: var(--pc); font-weight: 700; font-size: .9rem; }
.personal h1 { margin: 6px 0 10px; font-size: clamp(1.7rem, 6vw, 2.6rem); line-height: 1.15; }
.personal-lead { font-size: 1.1rem; margin: 0 0 16px; }
.personal-cdlabel { margin: 6px 0 4px; font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.personal .countdown { justify-content: center; }
.personal .cd-box b { color: var(--pc); }
.personal-bar { max-width: 460px; margin: 14px auto 4px; }
.personal-bar .progress-bar { background: var(--pc); box-shadow: none; }
.personal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 10px; }
.personal-cta { background: var(--pc); }
.personal-more { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.personal-more a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); text-decoration: none; color: var(--ink); font-weight: 600; }

/* Logo: açık temada koyu yazılı, koyu temada beyaz yazılı görsel */
.logo-img { display: block; height: 38px; width: auto; }
.logo-d { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-l { display: none; }
  :root:not([data-theme="light"]) .logo-d { display: block; }
}
:root[data-theme="dark"] .logo-l { display: none; }
:root[data-theme="dark"] .logo-d { display: block; }
@media (max-width: 420px) { .site-header .logo-img { height: 32px; } }
.card-static .ring-n b { font-size: 1.3rem; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.tool-actions .sbtn, .tool-actions .fav-btn { margin: 0; }
.tool-actions:not(:has(:not([hidden]))) { display: none; }
/* Paylaş düğmesi: favori düğmesiyle eş ağırlıkta, dolu ve dikkat çekici */
.personal-actions { flex-direction: column; align-items: center; }
.personal-actions .tool-actions { justify-content: center; }
.tool-actions { flex-wrap: nowrap; }
.tool-actions .share-btn, .tool-actions .fav-btn { white-space: nowrap; justify-content: center; }
@media (max-width: 480px) {
  .tool-actions { gap: 8px; width: 100%; }
  .tool-actions .share-btn, .tool-actions .fav-btn { flex: 1 1 auto; min-width: 0; padding: 9px 6px; font-size: .82rem; gap: 4px; }
}
.countdown[data-mode="up"] .cd-box b { font-size: clamp(1.5rem, 6vw, 3rem); }
.share-btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 2px solid transparent; background: transparent; color: var(--ink); font-weight: 700; font-size: 1rem; }
/* Arka plansız; kenarlık mavi → mor → pembe gradyan (maske ile, içi saydam kalır) */
.share-btn::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px; background: linear-gradient(90deg, #3b82f6, var(--brand), var(--brand2)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.share-btn:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
/* Kendi sayacını oluştur */
.hbtn-create { border: 2px solid transparent; background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(90deg, #3b82f6, var(--brand), var(--brand2)) border-box; font-weight: 700; }
.hbtn-create b { font-size: 1.05rem; line-height: 1; }
.create-lead { margin: -4px 0 12px; }
.create-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.create-card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--bg2); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--line)); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.create-card::before { content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; border-radius: 50%; background: var(--c); opacity: .14; filter: blur(38px); right: -40px; top: -40px; }
.create-card:hover { transform: translateY(-2px); border-color: var(--c); }
.create-emoji { font-size: 1.8rem; line-height: 1; }
.create-card small { color: var(--muted); line-height: 1.35; }
.create-go { margin-top: auto; padding-top: 6px; color: var(--c); font-weight: 700; font-size: .9rem; }
@media (max-width: 860px) { .create-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .create-card { padding: 12px; } .create-card small { font-size: .8rem; } }
.tools-h { margin: 22px 0 12px; }
/* Yapışkan başlık, çapa (#...) bağlantılarında hedefin üstünü örtmesin */
html { scroll-padding-top: 140px; }
@media (max-width: 560px) { html { scroll-padding-top: 112px; } }
.share-btn { text-decoration: none; }
/* Bugün kartı + yıl ilerlemesi */
.today-card { position: relative; overflow: hidden; isolation: isolate; padding: 20px; }
.today-card::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -110px; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 28%, transparent), transparent 70%); pointer-events: none; }
.today-head { display: flex; align-items: center; gap: 14px; }
.today-tile { flex: 0 0 64px; height: 68px; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; text-align: center; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.today-tile-m { background: linear-gradient(90deg, #3b82f6, var(--brand), var(--brand2)); color: #fff; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; }
.today-tile-d { flex: 1; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; line-height: 1; }
.today-kicker { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.today-card h2 { margin: 2px 0; font-size: 1.25rem; }
.today-hijri { margin: 0; font-size: .9rem; }
.today-stats { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 16px 0 4px; }
.today-stats li { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); font-size: .88rem; color: var(--muted); }
.today-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.year-prog { margin: 14px 0 6px; }
.year-prog-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; font-weight: 700; color: var(--muted); font-size: .9rem; }
.year-prog-head b { font-size: 1.5rem; color: var(--ink); font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #3b82f6, var(--brand), var(--brand2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.year-bar { position: relative; height: 16px; border-radius: 999px; background: color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden; }
/* çeyrek çizgileri */
.year-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(25% - 1px), color-mix(in srgb, var(--bg) 70%, transparent) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), color-mix(in srgb, var(--bg) 70%, transparent) calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), color-mix(in srgb, var(--bg) 70%, transparent) calc(75% - 1px) 75%, transparent 75%); pointer-events: none; }
.year-bar-fill { position: relative; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #3b82f6, var(--brand) 60%, var(--brand2)); box-shadow: 0 0 14px color-mix(in srgb, var(--brand) 45%, transparent); transform-origin: left; animation: yearfill 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.year-bar-fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: yearshine 3.2s ease-in-out 1.2s infinite; }
@keyframes yearfill { from { transform: scaleX(0); } }
@keyframes yearshine { from { background-position: -60% 0; } to { background-position: 160% 0; } }
@media (prefers-reduced-motion: reduce) { .year-bar-fill, .year-bar-fill::after { animation: none; } }
.year-ticks { display: flex; justify-content: space-between; margin-top: 4px; font-size: .7rem; color: var(--muted); }
.today-msg { margin: 12px 0 0; }
.today-events { margin: 8px 0 0; }
.mycity { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mycity-act { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: .85rem; cursor: pointer; }
.mycity-act:hover { color: var(--ink); border-color: var(--brand); }
.mycity-hint { margin: 4px 0 8px; }
[data-mycity][aria-pressed="true"] { border-color: var(--brand); color: var(--ink); font-weight: 600; }
/* İftar girişi */
.iftar-banner { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; gap: 14px; margin: 18px 0; padding: 16px 18px; border-radius: var(--radius); background: var(--bg2); border: 1px solid color-mix(in srgb, #f59e0b 30%, var(--line)); box-shadow: var(--shadow); }
.iftar-banner::before { content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%; left: -80px; top: -90px; background: radial-gradient(circle, color-mix(in srgb, #f59e0b 26%, transparent), transparent 70%); }
.iftar-banner-moon { font-size: 2rem; line-height: 1; }
.iftar-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iftar-banner-text span { color: var(--muted); font-size: .9rem; }
.iftar-banner .share-btn { white-space: nowrap; }
@media (max-width: 560px) { .iftar-banner { flex-wrap: wrap; } .iftar-banner .share-btn { width: 100%; } }
/* Araç sayfaları: sayaç rakamları ve sonuç yazısı mavi→mor gradyan (koyu temada açık tonlar) */
.tool .cd-box { border-color: color-mix(in srgb, var(--link) 35%, var(--line)); }
.tool .cd-box b, .tool-out .big { background: var(--num-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fav-share { margin-top: 22px; }
/* Çerez onay şeridi (yalnızca GA4 kimliği tanımlıysa) */
.consent { position: fixed; z-index: 30; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(15, 23, 42, .25); padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .9rem; }
.consent[hidden] { display: none; }
.consent p { margin: 0; flex: 1 1 280px; line-height: 1.45; }
.consent-btns { display: flex; gap: 8px; margin-left: auto; }
.consent-btns button { font: inherit; font-weight: 700; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.consent-no { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.consent-no:hover { color: var(--ink); border-color: var(--muted); }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
/* Mobil: sağ altta sabit "+ sayaç oluştur" düğmesi (masaüstünde gizli) */
.fab-create { display: none; }
@media (max-width: 767px) {
  .fab-create { position: fixed; z-index: 25; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); height: 54px; padding: 0 20px 0 14px; border-radius: 999px; display: flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; background: linear-gradient(135deg, #3b82f6, var(--brand) 55%, var(--brand2)); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 45%, transparent), 0 2px 6px rgba(0, 0, 0, .2); transition: transform .15s ease; -webkit-tap-highlight-color: transparent; }
  .fab-create .fab-plus { font-size: 1.7rem; font-weight: 700; line-height: 1; margin-top: -2px; }
  .fab-create b { font-size: 1rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
  .fab-create:active { transform: scale(.92); }
  .fab-create:hover { color: #fff; }
  .site-footer { padding-bottom: 84px; }
}
/* Tema düğmesi: açık temada ay (koyuya geç), koyu temada güneş (açığa geç) */
.theme-toggle { justify-content: center; min-width: 38px; }
.theme-toggle svg { display: block; transition: transform .3s ease; }
.theme-toggle:hover svg { transform: rotate(-20deg) scale(1.1); }
.theme-toggle .ico-moon { color: #6366f1; }
.theme-toggle .ico-sun { color: #f59e0b; display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ico-moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .ico-sun { display: block; }
}
