/* =====================================================
   Dijital Saat — ortak stylesheet
   Tüm sayfalar bu tek dosyayı kullanır.
   ===================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

/* ============ RENK / TEMA DEĞİŞKENLERİ ============ */
:root {
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", "SFMono-Regular", Menlo, monospace;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --header-h: 64px;
}

/* Koyu tema (varsayılan) */
:root,
:root[data-theme="dark"] {
  --bg: #0a0e14;
  --bg-elevated: #121821;
  --bg-elevated-2: #1a2230;
  --text-primary: #eef2f6;
  --text-muted: #8d96a3;
  --accent: #22d3ee;
  --accent-strong: #67e8f9;
  --link: #67e8f9;
  --success: #34d399;
  --danger: #f87171;
  --warning: #fbbf24;
  --border: rgba(255, 255, 255, 0.09);
  --shadow: rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(34, 211, 238, 0.35);
}

/* Açık tema */
:root[data-theme="light"] {
  --bg: #f2f5f8;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #e8edf2;
  --text-primary: #10161d;
  --text-muted: #5b6572;
  --accent: #0891b2;
  --accent-strong: #0e7490;
  --link: #0e7490;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #b45309;
  --border: rgba(16, 22, 29, 0.1);
  --shadow: rgba(16, 22, 29, 0.1);
  --glow: none;
}

/* Sistem tercihi varsayılan olarak koyu ile aynı olduğundan
   ekstra bir @media bloğuna gerek yok; tema seçimi common.js
   tarafından data-theme attribute'u ile yönetilir. */

/* ============ TEMEL ============ */
html { color-scheme: dark light; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
  display: flex;
  flex-direction: column;
}

a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--accent);
  color: #06131a;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-s);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 1.25rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-s);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover { background: var(--bg-elevated-2); color: var(--text-primary); }
.main-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--text-primary);
}
.nav-icon { font-size: 1rem; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: var(--radius-s);
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform 0.15s, background 0.15s;
}
.icon-btn:hover { background: var(--bg-elevated-2); }
.icon-btn:active { transform: scale(0.94); }

.nav-toggle { display: none; }

/* ============ MAIN / LAYOUT ============ */
.site-main { flex: 1; }

.page-hero {
  padding: 2.5rem 1.25rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.page-hero p {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 60ch;
  margin-inline: auto;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}
.container-wide { max-width: 1100px; }
.container-narrow { max-width: 720px; }

/* ============ CARD ============ */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(1.75rem, 5vw, 3.25rem);
  box-shadow: 0 20px 45px var(--shadow);
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}

/* ============ DİJİTAL SAAT ============ */
.time-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.15em;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-shadow: var(--glow);
  line-height: 1;
}
.time-display .colon {
  color: var(--accent);
  animation: blink 1s step-start infinite;
}
.time-display .meridiem {
  font-size: 0.28em;
  font-family: var(--font-body);
  color: var(--accent);
  align-self: flex-start;
  margin-left: 0.15em;
  font-weight: 700;
}

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.tz-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.select-control {
  appearance: none;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.55rem 2.1rem 0.55rem 0.9rem;
  border-radius: var(--radius-s);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) center, calc(100% - 11px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* 12/24 saat & tema düğmesi (checkbox tabanlı switch) */
.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}
.switch-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s;
  pointer-events: none;
}
.switch-slider::before {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s, background 0.2s;
}
.switch input:checked + .switch-slider { background: color-mix(in srgb, var(--accent) 30%, var(--bg-elevated-2)); }
.switch input:checked + .switch-slider::before {
  transform: translate(20px, -50%);
  background: var(--accent);
}
.switch input:focus-visible + .switch-slider { outline: 3px solid var(--accent); outline-offset: 2px; }

.divider { width: 60px; height: 1px; background: var(--border); margin: 2.5rem auto; }

.date-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.date-part { text-align: center; min-width: 64px; }
.date-num {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
}
.date-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 6px;
}
.date-sep { font-size: 1.8rem; color: var(--border); font-weight: 300; }

.weekday {
  margin-top: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.progress-wrap { margin-top: 2.5rem; max-width: 380px; margin-inline: auto; }
.progress-labels {
  display: flex; justify-content: space-between;
  font-size: 0.65rem; color: var(--text-muted);
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px;
}
.progress-bar { height: 5px; background: var(--bg-elevated-2); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width 1s linear; }

.clock-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ============ SAAT STİLİ SEÇİCİ ============ */
.clock-style-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.clock-style-row .btn[aria-pressed="true"] {
  background: var(--accent);
  color: #06131a;
  border-color: transparent;
}

/* Retro flip-clock görünümü: rakamlar mekanik bir tabela gibi,
   tema renginden bağımsız koyu panellerde gösterilir. */
[data-clock-style="retro"] .time-display span:not(.colon):not(.meridiem) {
  background: linear-gradient(to bottom, #2f2f2f 49%, #1c1c1c 51%);
  color: #f5f5f5;
  padding: 0.05em 0.18em;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}
[data-clock-style="retro"] .time-display span:not(.colon):not(.meridiem)::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 2px;
  background: rgba(0, 0, 0, 0.55);
}
[data-clock-style="retro"] .time-display .colon {
  color: #cbd5e1;
  animation: none;
}

/* Neon görünüm: parlayan yazı efekti. */
[data-clock-style="neon"] .time-display {
  color: #fff;
  text-shadow: 0 0 6px #fff, 0 0 18px var(--accent), 0 0 36px var(--accent), 0 0 64px var(--accent);
}
[data-clock-style="neon"] .time-display .colon {
  color: var(--accent-strong);
  text-shadow: 0 0 12px var(--accent);
}
[data-clock-style="neon"] .time-display .meridiem {
  color: var(--accent-strong);
  text-shadow: 0 0 10px var(--accent);
}

/* ============ GERİ SAYIM: ÖN AYAR GRUPLARI (Pomodoro'da ambiyans için de kullanılır) ============ */
.preset-group { margin-bottom: 1.25rem; }
.preset-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
[data-ambiance-btn][aria-pressed="true"] {
  background: var(--accent);
  color: #06131a;
  border-color: transparent;
}

/* Tam ekran modu: sadece saat kartı görünür kalır */
:fullscreen { background: var(--bg); }
:fullscreen .site-header,
:fullscreen .site-footer,
:fullscreen .page-hero,
:fullscreen .content-block,
:fullscreen .cookie-banner {
  display: none !important;
}
:fullscreen .site-main { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
:fullscreen .card { border: none; box-shadow: none; background: transparent; }
:fullscreen .time-display { font-size: clamp(4rem, 16vw, 12rem); }

/* ============ İÇERİK BLOKLARI (SEO metinleri, FAQ) ============ */
.content-block {
  max-width: 720px;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}
.content-block h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-top: 2.2rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.content-block h2:first-child { margin-top: 0; }
.content-block p { color: var(--text-muted); margin-bottom: 0.9rem; }
.content-block ul { margin: 0 0 1rem; padding-left: 0; }
.content-block li {
  color: var(--text-muted);
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
}
.content-block li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.faq-item { border-top: 1px solid var(--border); padding: 1.1rem 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 0.7rem; }

/* ============ BUTONLAR ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: var(--radius-s);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.12s, opacity 0.12s, background 0.15s;
  background: var(--bg-elevated-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #06131a; border-color: transparent; }
.btn-success { background: var(--success); color: #06210f; border-color: transparent; }
.btn-danger { background: var(--danger); color: #250505; border-color: transparent; }

/* ============ FORM ============ */
.field { margin-bottom: 1.1rem; text-align: left; }
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.field input[type="text"],
.field input[type="time"],
.field input[type="datetime-local"],
.field input[type="number"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--bg-elevated-2);
  color: var(--text-primary);
  color-scheme: dark;
}
:root[data-theme="light"] .field input { color-scheme: light; }
.form-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { flex: 1; min-width: 160px; }

/* ============ TÜM ARAÇLAR (HUB) ============ */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: transform 0.15s, border-color 0.15s;
}
.tool-card:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.tool-card-icon { font-size: 1.8rem; }
.tool-card-label { font-weight: 700; }
.tool-card-blurb { font-size: 0.8rem; color: var(--text-muted); }

/* ============ DÜNYA SAATLERİ ============ */
.world-toolbar { max-width: 420px; margin: 0 auto 1.75rem; }
.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.world-card {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.1rem 0.9rem;
  text-align: center;
  transition: transform 0.15s;
}
.world-card:hover { transform: translateY(-3px); }
.world-city { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.world-time { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; }
.world-tz { font-size: 0.65rem; color: var(--text-muted); margin-top: 4px; }

/* ============ ANALOG SAAT ============ */
#analogClock { margin: 0 auto; border-radius: 50%; box-shadow: 0 10px 30px var(--shadow); }

/* ============ KRONOMETRE ============ */
.stopwatch-display {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 8vw, 4.2rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-shadow: var(--glow);
}
.btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
.lap-list { margin-top: 1.5rem; max-height: 220px; overflow-y: auto; text-align: left; }
.lap-item {
  display: flex; justify-content: space-between;
  padding: 0.55rem 0.9rem; font-size: 0.85rem;
  border-bottom: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-mono);
}
.lap-item:last-child { border-bottom: none; }
.lap-item strong { color: var(--text-primary); font-family: var(--font-body); }

/* ============ GERİ SAYIM ============ */
.preset-row { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1.5rem; }
.countdown-grid { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.cd-block { text-align: center; }
.cd-num {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 0.5rem 0.9rem;
  min-width: 84px;
}
.cd-lbl { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }

/* ============ ALARM ============ */
.alarm-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.alarm-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 0.9rem 1.1rem;
}
.alarm-time { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; }
.alarm-meta { flex: 1; min-width: 0; }
.alarm-label { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alarm-item.disabled { opacity: 0.5; }
.alarm-empty { color: var(--text-muted); text-align: center; padding: 1.5rem 0; }
.alarm-delete {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: 0.4rem;
  border-radius: var(--radius-s);
}
.alarm-delete:hover { color: var(--danger); background: var(--bg-elevated); }

.ringing-banner {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.ringing-banner[hidden] { display: none; }
.ringing-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px var(--shadow);
}
.ringing-card .time-display { font-size: 3rem; margin-bottom: 1rem; }

/* ============ UYKU HESAPLAYICI ============ */
.sleep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.sleep-option {
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1rem 0.75rem;
  text-align: center;
}
.sleep-option.sleep-recommended {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.sleep-time { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700; }
.sleep-cycles { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 6px; }

/* ============ TAKVİM ============ */
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.cal-title { font-size: 1.3rem; font-weight: 800; }
.cal-nav { background: var(--bg-elevated-2); border: 1px solid var(--border); border-radius: var(--radius-s); padding: 0.5rem 0.9rem; font-size: 1rem; cursor: pointer; color: var(--text-muted); }
.cal-nav:hover { color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day-name { text-align: center; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 0.4rem 0; }
.cal-day { text-align: center; padding: 0.6rem 0.2rem; border-radius: var(--radius-s); font-size: 0.9rem; font-weight: 600; }
.cal-day.empty { visibility: hidden; }
.cal-day.today { background: var(--accent); color: #06131a; font-weight: 800; }

/* ============ EKRAN KORUYUCU ============ */
.screensaver-stage {
  position: fixed;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
}
.screensaver-clock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  transition: top 4s linear, left 4s linear;
}
.screensaver-exit {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  opacity: 0.35;
  z-index: 10;
}
.screensaver-exit:hover,
.screensaver-exit:focus-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .screensaver-clock { transition: none !important; }
}

/* ============ REKLAM YER TUTUCUSU ============ */
/* Şimdilik boş; sadece düzen kaymasını (CLS) önlemek için sabit
   yükseklik ayırır. Gerçek reklam kodu eklenince içerik güncellenir. */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 728px;
  margin: 2rem auto;
  background: var(--bg-elevated-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-m);
  color: var(--text-muted);
}
.ad-slot-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ad-slot--rectangle { min-height: 250px; }
.ad-slot--banner { min-height: 100px; }

/* ============ DİĞER ARAÇLAR (İLGİLİ ARAÇLAR BLOĞU) ============ */
.related-tools-more { margin-top: 1.25rem; text-align: center; font-weight: 700; }

/* ============ ÇEREZ BANDI ============ */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 640px;
  margin-inline: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 20px 50px var(--shadow);
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1; min-width: 220px; font-size: 0.85rem; color: var(--text-muted); }
.cookie-banner .btn-row { flex-shrink: 0; }

/* ============ FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-about { max-width: 360px; color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--text-primary); text-decoration: underline; }
.footer-cols { display: flex; gap: 3rem; flex-wrap: wrap; }
.footer-col-title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.7rem; }
.footer-bottom {
  max-width: 1100px;
  margin: 1.75rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============ AZALTILMIŞ HAREKET ============ */
@media (prefers-reduced-motion: reduce) {
  .time-display .colon,
  .badge .dot,
  .brand-dot { animation: none !important; }
  * { transition-duration: 0.001ms !important; }
}

/* ============ MOBİL ============ */
@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
    order: -1;
  }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 0.85rem 1rem; }
  .site-header { gap: 0.6rem; }
  .brand span:last-child { display: none; }
}

@media (max-width: 480px) {
  .date-row { gap: 1rem; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
}
