/* ==========================================================================
   NAZOŞŞŞŞŞ - ÖZEL GALERİ & YÖNETİCİ LOG SİSTEMİ (STYLES.CSS)
   ========================================================================== */

:root {
  --bg-main: #0c0d14;
  --bg-surface: #13141f;
  --bg-card: rgba(22, 24, 38, 0.75);
  --bg-card-hover: rgba(32, 35, 54, 0.9);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.35);
  
  --accent: #60a5fa;
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-purple: #8b5cf6;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-active: rgba(59, 130, 246, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 25px var(--primary-glow);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-handwriting: 'Caveat', cursive;
  
  --nav-height: 70px;
  --bottom-nav-height: 65px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Canlı Parçacık Canvası */
#bg-particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.8;
}

body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: -15%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 70%);
  filter: blur(80px);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  right: -10%;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(59, 130, 246, 0.03) 60%, transparent 75%);
  filter: blur(90px);
  z-index: -2;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.glass-nav {
  background: rgba(18, 20, 32, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
}

h1, h2, h3, h4, .brand-title {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
  font-weight: 700;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   1. GİRİŞ EKRANI & KİLİT AÇILMA ANİMASYONU
   ========================================================================== */
.auth-wrapper {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  background: radial-gradient(circle at center, #161828 0%, #0c0d14 100%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.auth-wrapper.unlocked-fade {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.auth-bg-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  animation: pulseGlow 5s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(0.9); opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0.85; }
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 36px 30px;
  text-align: center;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: transform 0.4s ease;
}

.brand-badge-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px var(--primary-glow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-badge-icon.unlocking {
  transform: scale(1.2) rotate(10deg);
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.6);
}

.brand-badge-icon i {
  font-size: 24px;
  color: #fff;
}

.brand-title {
  font-size: 26px;
  background: linear-gradient(135deg, #fff 40%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 13px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-container {
  display: flex;
  align-items: center;
  background: rgba(12, 13, 20, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: all 0.2s ease;
}

.input-container:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.input-prefix {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding-right: 8px;
  border-right: 1px solid var(--border-glass);
  margin-right: 10px;
}

.input-container input,
.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 0;
}

.form-group textarea {
  background: rgba(12, 13, 20, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  resize: vertical;
}

.pin-toggle-btn {
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
  padding: 6px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  cursor: pointer;
}

.error-banner {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: #fff;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.auth-footer {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   2. ANA UYGULAMA ALANI
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 90px;
  animation: fadeInApp 0.5s ease;
}

@keyframes fadeInApp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.couple-avatar-wrap {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  border-radius: 50%;
  overflow: hidden !important;
  border: 1.5px solid var(--border-active);
  box-shadow: 0 0 10px var(--primary-glow);
  cursor: pointer;
  background: #000;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.couple-avatar-wrap:hover {
  transform: scale(1.08);
}

.couple-avatar-wrap img, #nav-avatar-img {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 50%;
}

/* AYARLAR AVATAR DEĞİŞTİRME KARTI */
.avatar-change-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
}

.avatar-preview-box {
  position: relative;
  width: 60px !important;
  height: 60px !important;
  min-width: 60px !important;
  max-width: 60px !important;
  border-radius: var(--radius-md);
  overflow: hidden !important;
  border: 2px solid var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
  flex-shrink: 0 !important;
}

.avatar-preview-box img, #settings-avatar-preview {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  min-width: 60px !important;
  min-height: 60px !important;
  object-fit: cover !important;
  display: block !important;
}

.avatar-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
  font-size: 18px;
}

.avatar-preview-box:hover .avatar-upload-overlay {
  opacity: 1;
}

.avatar-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.avatar-info-text strong {
  font-size: 13px;
  color: var(--text-main);
}

.avatar-info-text p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.nav-title {
  font-size: 16px;
  font-weight: 700;
}

.nav-greeting {
  font-size: 11px;
  color: var(--text-muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-upload-top {
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.btn-icon:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.danger-hover:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* PWA BANNER */
.pwa-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(59, 130, 246, 0.3);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pwa-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pwa-icon {
  font-size: 24px;
  color: var(--primary);
}

.pwa-content strong {
  font-size: 13px;
  display: block;
}

.pwa-content p {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-small-glow {
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.btn-close-pwa {
  background: transparent;
  color: var(--text-dim);
  font-size: 16px;
}

/* ==========================================================================
   ZAMAN SAYACI & İSTATİSTİKLER
   ========================================================================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  width: 100%;
}

.hero-counter-card {
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-counter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 200px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.counter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.timer-badge {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent);
  border: 1px solid rgba(59, 130, 246, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.anniversary-date-display {
  font-size: 12px;
  color: var(--text-muted);
}

.counter-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.counter-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  min-width: 68px;
  padding: 10px 8px;
}

.counter-num {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  background: linear-gradient(135deg, #fff 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.counter-unit {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2px;
}

.counter-separator {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  animation: blink 1.5s infinite;
}

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

.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-glass);
  padding-top: 16px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-pill i {
  color: var(--primary);
}

/* ==========================================================================
   KONTROLLER & ARAMA
   ========================================================================== */
.gallery-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.search-and-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box i {
  color: var(--text-dim);
  font-size: 14px;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  padding: 10px 0;
  font-size: 13px;
}

.clear-btn {
  background: transparent;
  color: var(--text-dim);
  font-size: 14px;
}

.view-toggle-btns {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.toggle-btn.active {
  background: var(--primary);
  color: #fff;
}

.scroll-x {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.scroll-x::-webkit-scrollbar { display: none; }

.filter-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tab.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  color: var(--text-main);
}

/* ==========================================================================
   1. MODERN IZGARA (MEDIA GRID & 3D TILT)
   ========================================================================== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  perspective: 1000px;
}

.media-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  aspect-ratio: 4/5;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.2, 0, 0.1, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.media-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--border-active);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.media-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.media-card:hover .media-card-thumb {
  transform: scale(1.05);
}

.card-badge-top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.type-badge {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fav-card-btn {
  pointer-events: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.fav-card-btn.favorited {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.25);
}

.fav-card-btn:active {
  transform: scale(1.3);
}

.card-overlay-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 14px 12px;
  background: linear-gradient(to top, rgba(12, 13, 20, 0.95) 0%, rgba(12, 13, 20, 0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-date {
  font-size: 11px;
  color: var(--text-muted);
}

.card-location-tag {
  font-size: 11px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-note-snippet {
  font-size: 12px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Çift Dokunma Patlama Efekti (Burst Heart) */
.heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: #f59e0b;
  font-size: 64px;
  z-index: 10;
  pointer-events: none;
  animation: burstAnim 0.75s ease-out forwards;
}

@keyframes burstAnim {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.8)); }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}

/* ==========================================================================
   2. POLAROID NOSTALJİK GÖRÜNÜM (POLAROID GRID)
   ========================================================================== */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  padding: 10px;
}

.polaroid-card {
  background: #181926;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 12px 12px 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.polaroid-card:nth-child(even) {
  transform: rotate(1.5deg);
}
.polaroid-card:nth-child(odd) {
  transform: rotate(-1.5deg);
}

.polaroid-card:hover {
  transform: rotate(0deg) scale(1.05);
  z-index: 5;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(59, 130, 246, 0.3);
  border-color: var(--primary);
}

.polaroid-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.polaroid-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #000;
  border-radius: 2px;
}

.polaroid-img-wrap img, .polaroid-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-footer {
  padding-top: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.polaroid-handwriting {
  font-family: var(--font-handwriting);
  font-size: 21px;
  color: #f1f5f9;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.polaroid-date {
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-body);
}

/* ==========================================================================
   3. ZAMAN TÜNELİ
   ========================================================================== */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  padding-left: 24px;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), #6366f1);
  opacity: 0.4;
}

.timeline-group-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.timeline-group-title::before {
  content: '';
  position: absolute;
  left: -28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* BOŞ DURUM */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-surface);
  border: 1px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.empty-icon {
  font-size: 48px;
  color: var(--text-dim);
}

.empty-state h3 {
  font-size: 18px;
}

.empty-state p {
  color: var(--text-muted);
  max-width: 360px;
  font-size: 13px;
}

/* ==========================================================================
   MODALLAR
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.drop-zone {
  position: relative;
  background: rgba(10, 11, 18, 0.6);
  border: 2px dashed rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--primary);
  background: rgba(59, 130, 246, 0.05);
}

.file-hidden-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-illu-icon {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 8px;
}

.drop-prompt h4 {
  font-size: 14px;
  margin-bottom: 4px;
}

.drop-prompt p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.upload-badge {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  color: var(--text-dim);
}

.preview-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  max-height: 160px;
  overflow-y: auto;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.preview-item img, .preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #6366f1);
  transition: width 0.3s ease;
}

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.danger-text {
  color: #fca5a5;
}

.settings-sec-title {
  font-size: 13px;
  color: var(--accent);
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 6px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.backup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   LIGHTBOX
   ========================================================================== */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.96);
  backdrop-filter: blur(20px);
}

.lightbox-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

.lightbox-date {
  font-size: 13px;
  font-weight: 600;
}

.lightbox-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.lb-btn.heart-btn.favorited {
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.2);
}

.lb-btn.danger:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.lightbox-media-area {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  min-height: 0;
}

.media-render-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-render-container img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.media-render-container video {
  max-width: 100%;
  max-height: 68vh;
  border-radius: var(--radius-md);
  outline: none;
  box-shadow: var(--shadow-md);
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 5;
}

.nav-arrow.left { left: 10px; }
.nav-arrow.right { right: 10px; }

.lightbox-details-panel {
  padding: 14px 20px;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lightbox-note {
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.4;
}

.lightbox-meta-footer {
  font-size: 11px;
  color: var(--text-dim);
}

/* ==========================================================================
   MOBİL ALT GEZİNME
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-height);
  background: rgba(18, 20, 32, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 10px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 99;
}

.bnav-item {
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-dim);
  font-size: 10px;
  flex: 1;
}

.bnav-item i {
  font-size: 17px;
}

.bnav-item.active {
  color: var(--primary);
}

.bnav-upload {
  position: relative;
  top: -12px;
}

.bnav-upload-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--primary-glow);
  font-size: 20px;
}

/* TOAST */
.toast-container {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2000;
  pointer-events: none;
}

.toast {
  background: rgba(20, 24, 38, 0.95);
  border: 1px solid var(--border-active);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-15px); }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
  .app-shell {
    padding-bottom: 30px;
  }
}

@media (max-width: 600px) {
  .hero-counter-card {
    padding: 16px;
  }
  .counter-grid {
    gap: 6px;
  }
  .counter-item {
    min-width: 52px;
    padding: 6px 4px;
  }
  .counter-num {
    font-size: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .upload-text {
    display: none;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .polaroid-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}
