/* ================================================================
   Hande & Sefa — Design System v2
   Premium, editorial, gender-neutral
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Space+Mono:wght@400;700&display=swap');

/* ================================================================
   CSS Variables — Light (default)
   ================================================================ */
:root {
  --amber: #B8956A;
  --amber-light: #D4B88C;
  --amber-deep: #9A7A52;
  --amber-glow: rgba(184, 149, 106, 0.15);
  --warm-bg: #FAFAF7;
  --paper: #F3F0EB;
  --charcoal: #1C1C1A;
  --gold: #C4A265;
  --gold-light: #E0CCA0;
  --sage: #5A8A6A;
  --sage-light: #A4C4A4;
  --lavender: #8E7BB8;
  --lavender-light: #BEB0D8;
  --stone: #5C5C58;
  --mist: #8C8C87;

  --bg-primary: var(--warm-bg);
  --bg-secondary: var(--paper);
  --bg-card: #FFFFFF;
  --bg-overlay: rgba(28, 28, 26, 0.5);
  --text-primary: var(--charcoal);
  --text-secondary: var(--stone);
  --text-muted: var(--mist);
  --accent: var(--amber);
  --accent-hover: var(--amber-deep);
  --border: #E5E2DC;
  --border-light: #EDEBE6;
  --shadow-sm: 0 1px 3px rgba(28,28,26,0.05);
  --shadow-md: 0 4px 16px rgba(28,28,26,0.08);
  --shadow-lg: 0 8px 32px rgba(28,28,26,0.10);
  --shadow-glow: 0 0 24px var(--amber-glow);

  --hande-color: var(--lavender);
  --sefa-color: var(--sage);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-handwriting: 'Cormorant Garamond', Georgia, serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --max-width: 1100px;
  --nav-height: 60px;
  --gutter: 20px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  --season-accent: var(--amber);
  --season-bg: var(--warm-bg);
}

/* ================================================================
   Dark Mode
   ================================================================ */
:root:not([data-theme="light"])[data-theme="dark"] {
  --bg-primary: #12110F;
  --bg-secondary: #181614;
  --bg-card: #1E1C19;
  --bg-overlay: rgba(0,0,0,0.6);
  --text-primary: #E5E2DC;
  --text-secondary: #9A9A95;
  --text-muted: #5C5C58;
  --border: #2A2A28;
  --border-light: #222220;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 24px rgba(196,162,101,0.12);
  --amber: #C4A265;
  --amber-light: #D4B88C;
  --gold: #D4B46A;
  --warm-bg: #12110F;
  --paper: #181614;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-primary: #12110F;
    --bg-secondary: #181614;
    --bg-card: #1E1C19;
    --bg-overlay: rgba(0,0,0,0.6);
    --text-primary: #E5E2DC;
    --text-secondary: #9A9A95;
    --text-muted: #5C5C58;
    --border: #2A2A28;
    --border-light: #222220;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 24px rgba(196,162,101,0.12);
    --amber: #C4A265;
    --amber-light: #D4B88C;
    --gold: #D4B46A;
    --warm-bg: #12110F;
    --paper: #181614;
  }
}

/* Season accents (subtle) */
[data-season="spring"] { --season-accent: #9BC49B; }
[data-season="summer"] { --season-accent: #5BB8A9; }
[data-season="autumn"] { --season-accent: #C49A6A; }
[data-season="winter"] { --season-accent: #8AB0C4; }

/* ================================================================
   Reset & Base
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[hidden] { display: none !important; }
.tabbar, .nav-backdrop { display: none; }
@media (max-width: 768px) { .tabbar { display: grid; } .nav-backdrop { display: block; } }   /* hidden özniteliği bileşen display kurallarını her zaman yener */

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--duration-fast); }
a:hover { color: var(--accent-hover); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

::selection {
  background: var(--amber-light);
  color: var(--charcoal);
}

/* ================================================================
   Typography
   ================================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

.font-handwriting {
  font-family: var(--font-display);
  font-style: italic;
}

.text-gradient {
  background: linear-gradient(135deg, var(--amber), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title h1,
.section-title h2 {
  margin-bottom: var(--space-xs);
}

.section-title p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  font-family: var(--font-display);
}

/* ================================================================
   Layout
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-content {
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-3xl);
  min-height: 100vh;
}

section { padding: var(--space-2xl) 0; }

.grid { display: grid; gap: var(--space-lg); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ================================================================
   Navigation
   ================================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: background var(--duration-normal), box-shadow var(--duration-normal);
}

[data-theme="dark"] .nav {
  background: rgba(14, 14, 14, 0.9);
}

.nav.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.nav-logo .heart {
  color: var(--amber);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color var(--duration-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  position: absolute;
  left: 6px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-toggle span:nth-child(1) { top: 10px; }
.nav-toggle span:nth-child(2) { top: 15px; }
.nav-toggle span:nth-child(3) { top: 20px; }

.nav-toggle.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--amber-glow);
}

/* ================================================================
   Cards
   ================================================================ */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.card-body { padding: var(--space-lg); }

.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
  transition: all var(--duration-fast);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-gold {
  background: var(--gold);
  color: var(--charcoal);
}

.btn-sm {
  padding: 0.35rem 0.9rem;
  font-size: 0.8rem;
}

/* ================================================================
   Tags / Badges
   ================================================================ */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  background: var(--paper);
  color: var(--text-secondary);
}

.tag-hande {
  background: rgba(142, 123, 184, 0.12);
  color: var(--lavender);
}

.tag-sefa {
  background: rgba(90, 138, 106, 0.12);
  color: var(--sage);
}

/* ================================================================
   Counter / Stats
   ================================================================ */
.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: var(--space-xs);
  text-transform: lowercase;
}

/* ================================================================
   Live Counter
   ================================================================ */
.love-counter {
  text-align: center;
  padding: var(--space-xl) 0;
}

.love-counter .since {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.counter-digits {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin: var(--space-lg) 0;
  flex-wrap: wrap;
}

.counter-unit {
  text-align: center;
  min-width: 72px;
}

.counter-unit .number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.counter-unit .label {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================================================================
   Hero Section
   ================================================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(142,123,184,0.18), transparent),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(184,149,106,0.15), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(90,138,106,0.1), transparent),
    linear-gradient(180deg, var(--warm-bg) 0%, var(--paper) 100%);
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(142,123,184,0.15), transparent),
    radial-gradient(ellipse 50% 60% at 80% 70%, rgba(196,162,101,0.12), transparent),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(90,138,106,0.08), transparent),
    linear-gradient(180deg, #121210 0%, #0E0E0E 100%);
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl);
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.hero .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--amber);
  font-weight: 400;
  opacity: 0.8;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg-primary));
  pointer-events: none;
}

/* ================================================================
   Timeline
   ================================================================ */
.timeline {
  position: relative;
  padding: var(--space-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: var(--space-sm) var(--space-lg);
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out);
  cursor: pointer;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  left: 0;
  padding-right: calc(var(--space-2xl) + 20px);
  text-align: right;
}
.timeline-item:nth-child(odd) .timeline-card {
  flex-direction: row-reverse;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding-left: calc(var(--space-2xl) + 20px);
}

.timeline-dot {
  position: absolute;
  top: var(--space-sm);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--border);
  z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot { right: -5px; }
.timeline-item:nth-child(even) .timeline-dot { left: -5px; }

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.timeline-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--border-light);
  transition: box-shadow var(--duration-normal);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.timeline-card:hover { box-shadow: var(--shadow-md); }

.timeline-emoji {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

/* ================================================================
   Photo Gallery (Masonry)
   ================================================================ */
.masonry {
  columns: 3;
  column-gap: var(--space-sm);
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out);
}

.masonry-item:hover img { transform: scale(1.03); }

.masonry-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(0,0,0,0.5));
  opacity: 0;
  transition: opacity var(--duration-normal);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.masonry-item:hover .overlay { opacity: 1; }

.masonry-item .overlay span {
  color: white;
  font-size: 0.85rem;
}

/* ================================================================
   Lightbox
   ================================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  opacity: 0.6;
  transition: opacity var(--duration-fast);
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.lightbox-nav:hover { background: rgba(255,255,255,0.16); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ================================================================
   Map
   ================================================================ */
.map-container {
  height: 70vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.map-sidebar {
  max-height: 70vh;
  overflow-y: auto;
  padding: var(--space-md);
}

.trip-card .card-img img {
  display: block;
}

/* ================================================================
   Letters
   ================================================================ */
.letter-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--duration-normal);
}

.letter-sealed {
  opacity: 0.6;
  filter: grayscale(0.2);
  cursor: default;
}

.letter-sealed:hover { transform: none; }

.letter-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.letter-content {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text-primary);
}

/* ================================================================
   Quotes Wall
   ================================================================ */
.quote-card {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg);
  position: relative;
}

.quote-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--border);
  position: absolute;
  top: -8px;
  left: 12px;
  line-height: 1;
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.quote-author {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: var(--space-lg);
  font-family: var(--font-mono);
}

/* ================================================================
   Bucket List
   ================================================================ */
.bucket-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-sm);
  transition: all var(--duration-fast);
}

.bucket-item.done {
  background: rgba(90, 138, 106, 0.06);
  border-color: rgba(90, 138, 106, 0.2);
}

.bucket-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  transition: all var(--duration-fast);
}

.bucket-item.done .bucket-check {
  background: var(--sage);
  border-color: var(--sage);
  color: white;
}

.progress-bar {
  height: 4px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: var(--space-md) 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--amber));
  border-radius: var(--radius-full);
  transition: width var(--duration-slow) var(--ease-out);
}

/* ================================================================
   Login Screen
   ================================================================ */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.login-screen.leaving {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.login-box {
  text-align: center;
  padding: var(--space-2xl);
  max-width: 360px;
  width: 100%;
}

.login-heart {
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.2em;
}

.login-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  letter-spacing: -0.01em;
}

.login-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: var(--space-xl);
}

.login-input-wrap {
  position: relative;
  margin-bottom: var(--space-lg);
}

.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-mono);
  background: var(--bg-card);
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 6px;
  outline: none;
  transition: border-color var(--duration-fast);
}

.login-input:focus { border-color: var(--accent); }

.login-input::placeholder {
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.login-error {
  color: #C45050;
  font-size: 0.82rem;
  margin-top: var(--space-sm);
  display: none;
}

.login-error.show {
  display: block;
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-3px); }
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
  text-align: center;
  padding: var(--space-2xl) var(--gutter);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.footer .heart-footer { color: var(--accent); }

/* ================================================================
   Scroll Animations
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }

/* ================================================================
   Floating Particles (subtle dots instead of emojis)
   ================================================================ */
.particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  animation: float-up linear forwards;
}

@keyframes float-up {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% {
    transform: translateY(-10vh);
    opacity: 0;
  }
}

/* ================================================================
   "Today in History" Card
   ================================================================ */
.today-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
}

.today-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ================================================================
   Empty States
   ================================================================ */
.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
}


.empty-state .icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  opacity: 0.4;
}

/* ================================================================
   Slider
   ================================================================ */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.slider-track {
  display: flex;
  transition: transform var(--duration-slow) var(--ease-out);
}

.slider-slide {
  min-width: 100%;
  position: relative;
}

.slider-slide img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast);
}

.slider-dot.active {
  background: white;
  width: 20px;
  border-radius: 3px;
}

/* ================================================================
   Modal (shared)
   ================================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
  padding: var(--gutter);
}

.modal.open { opacity: 1; pointer-events: auto; }

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-xl);
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.modal-close:hover { color: var(--text-primary); }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
  :root {
    --gutter: 16px;
    --nav-height: 54px;
  }

  /* Mobil menü: sol üstte düğme, soldan kayan çekmece.
     Üst çubuktaki backdrop-filter sabit konumlu çocukları çubuğa hapsettiği için mobilde kapalı. */
  .nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg-primary); z-index: 1150; }
  [data-theme="dark"] .nav { background: var(--bg-primary); }
  .nav-inner { justify-content: flex-start; gap: 12px; }
  .nav-toggle { order: -1; margin-left: -6px; }
  .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1200;
    width: min(82vw, 320px); padding: calc(var(--nav-height) + 12px) 14px 24px;
    background: var(--bg-primary); box-shadow: 8px 0 40px rgba(0,0,0,0.18);
    transform: translateX(-105%); transition: transform 280ms var(--ease-out, ease); overflow-y: auto;
    visibility: hidden;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: 0.95rem; letter-spacing: 0.02em; }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; }
  .nav-links .nav-ic { width: 26px; text-align: center; font-size: 1.15rem; }
  .nav-links .theme-toggle { margin: 12px 14px 0; align-self: flex-start; }
  .nav-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(20,20,18,0.45); opacity: 0; pointer-events: none; transition: opacity 250ms; }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { background: transparent; border-color: transparent; box-shadow: none; }
  body.nav-open .nav-logo { visibility: hidden; }
  .nav-toggle { z-index: 1300; }

  /* Alt sekme çubuğu */
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg-primary) 92%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 0;
    border: none; background: none; font: inherit; font-size: 0.66rem; color: var(--text-muted); text-decoration: none; cursor: pointer;
  }
  .tabbar span { font-size: 1.25rem; line-height: 1.2; filter: grayscale(0.6); opacity: 0.75; transition: transform 150ms; }
  .tabbar .active { color: var(--text-primary); font-weight: 600; }
  .tabbar .active span { filter: none; opacity: 1; transform: translateY(-1px) scale(1.08); }
  body.has-tabbar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  body.has-tabbar .footer { padding-bottom: 24px; }

  .nav-toggle { display: block; }

  .timeline::before { left: 16px; }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding-left: 44px;
    padding-right: var(--gutter);
    text-align: left;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 11px;
    right: auto;
  }

  .masonry { columns: 2; }

  .counter-digits { gap: var(--space-md); }
  .counter-unit .number { font-size: 1.8rem; }

  .stats-row { gap: var(--space-lg); }
  .stat-number { font-size: 2rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .masonry { columns: 1; }
  .counter-digits { gap: var(--space-sm); }
  .counter-unit { min-width: 60px; }
}

/* ================================================================
   Admin-specific
   ================================================================ */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--charcoal);
  color: white;
  padding: var(--space-lg);
}

.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.6);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-bottom: 2px;
  transition: all var(--duration-fast);
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(255,255,255,0.08);
  color: white;
}

.admin-main {
  padding: var(--space-xl);
  background: var(--bg-secondary);
}

.admin-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--border-light);
  margin-bottom: var(--space-lg);
}

.form-group { margin-bottom: var(--space-lg); }

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--duration-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

@media (max-width: 768px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: fixed;
    left: -220px;
    top: 0;
    bottom: 0;
    width: 220px;
    z-index: 1000;
    transition: left var(--duration-normal);
  }
  .admin-sidebar.open { left: 0; }
}

/* ================================================================
   Print
   ================================================================ */
@media print {
  .nav, .footer, .particles-container, .theme-toggle { display: none !important; }
  body { background: white; color: black; }
  .page-content { padding-top: 0; }
}
