/* ============================================
   ROMANTIC WEBSITE - CSS DESIGN SYSTEM
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Dancing+Script:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700;800&display=swap');

/* === CSS VARIABLES === */
:root {
  --bg-primary: #0a0a1a;
  --bg-secondary: #12122a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text-primary: #f0e6ff;
  --text-secondary: #b8a9d4;
  --text-muted: #7a6b99;
  --accent-pink: #ff4d8d;
  --accent-rose: #ff6b9d;
  --accent-purple: #a855f7;
  --accent-violet: #7c3aed;
  --accent-magenta: #e040a0;
  --accent-gold: #fbbf24;
  --gradient-romantic: linear-gradient(135deg, #ff4d8d, #a855f7, #7c3aed);
  --gradient-warm: linear-gradient(135deg, #ff6b9d, #ff4d8d, #e040a0);
  --gradient-bg: linear-gradient(180deg, #0a0a1a 0%, #1a0a2e 50%, #0a0a1a 100%);
  --shadow-glow: 0 0 30px rgba(255, 77, 141, 0.3);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-primary: 'Poppins', sans-serif;
  --font-romantic: 'Dancing Script', cursive;
  --font-elegant: 'Playfair Display', serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-pink) var(--bg-secondary);
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-pink);
  border-radius: 3px;
}

/* === CURSOR HEART TRAIL === */
.cursor-trail {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-size: 16px;
  animation: cursorFade 1s ease forwards;
}

@keyframes cursorFade {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(0.3); }
}

/* === NAVIGATION === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-glass);
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 10px 40px;
  background: rgba(10, 10, 26, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  font-family: var(--font-romantic);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-romantic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .heart-icon {
  font-size: 1.4rem;
  -webkit-text-fill-color: var(--accent-pink);
  animation: heartPulse 1.5s ease-in-out infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  transition: var(--transition-smooth);
  padding: 8px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-romantic);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
}

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

.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(255, 77, 141, 0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 50% 80%, rgba(124, 58, 237, 0.08) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-2%, -2%) scale(1.05); }
}

#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 1s ease 0.2s both;
  backdrop-filter: blur(10px);
}

.hero-badge .sparkle {
  color: var(--accent-gold);
}

.hero-title {
  font-family: var(--font-elegant);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeInUp 1s ease 0.4s both;
}

.hero-title .highlight {
  background: var(--gradient-romantic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-family: var(--font-romantic);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--accent-rose);
  margin-bottom: 24px;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 1s both;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-romantic);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 77, 141, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 77, 141, 0.5);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

/* === FLOATING HEARTS ANIMATION === */
.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -50px;
  font-size: 20px;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) scale(0.5);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) rotate(720deg) scale(0.2);
  }
}

/* === SECTION STYLING === */
.section {
  padding: 100px 40px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-pink);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-elegant);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title .accent {
  font-family: var(--font-romantic);
  background: var(--gradient-romantic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-romantic);
  margin: 20px auto 0;
  border-radius: 3px;
}

/* === GAME SECTION === */
.game-section {
  background: var(--gradient-bg);
}

.game-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.game-wrapper {
  position: relative;
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 30px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}

.game-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 10px;
}

.game-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.game-stat .icon {
  font-size: 1.2rem;
}

.game-stat .value {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

#game-canvas {
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  border: 2px solid rgba(255, 255, 255, 0.05);
  background: #0d0d20;
  max-width: 100%;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.game-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.game-controls .btn-control {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: var(--border-glass);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.game-controls .btn-control:hover {
  background: rgba(255, 77, 141, 0.2);
  border-color: var(--accent-pink);
  transform: scale(1.1);
}

.game-controls .btn-control:active {
  transform: scale(0.95);
}

.game-mobile-controls {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.game-mobile-controls .btn-control {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 77, 141, 0.15);
  border: 2px solid rgba(255, 77, 141, 0.3);
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.game-mobile-controls .btn-control:active {
  background: rgba(255, 77, 141, 0.4);
  transform: scale(0.9);
}

.game-mobile-row {
  display: flex;
  gap: 10px;
}

.game-instructions {
  margin-top: 24px;
  padding: 16px 24px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.game-instructions strong {
  color: var(--accent-pink);
}

/* === ESCAPE ROOM SECTION === */
.escape-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.escape-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* V2: Canvas layout */
.escape-wrapper-v2 {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.escape-game-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.escape-canvas-wrap {
  border-radius: var(--radius-lg);
  border: 2px solid rgba(168,85,247,0.25);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(168,85,247,0.1), var(--shadow-card);
  background: #0c0518;
  position: relative;
}

#escape-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: crosshair;
}

/* D-PAD Controls */
.escape-dpad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dpad-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.dpad-mid {
  gap: 4px;
}

.dpad-btn {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(168,85,247,0.12);
  border: 1px solid rgba(168,85,247,0.25);
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  font-family: var(--font-primary);
}

.dpad-btn:hover { background: rgba(168,85,247,0.25); border-color: rgba(168,85,247,0.5); }
.dpad-btn:active { transform: scale(0.9); background: rgba(168,85,247,0.4); }

.dpad-center {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255,77,141,0.25), rgba(168,85,247,0.25));
  border: 1px solid rgba(255,77,141,0.4);
  font-size: 0.9rem;
  line-height: 1.2;
  text-align: center;
}

.dpad-center small {
  display: block;
  font-size: 0.6rem;
  opacity: 0.7;
  margin-top: 2px;
}

/* Old escape-wrapper kept for compatibility  */
.escape-wrapper {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

/* Oda Sahnesi */
.escape-room-scene {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(180deg, #1a1035 0%, #2d1b4e 40%, #1a1035 100%);
  border-radius: var(--radius-lg);
  border: var(--border-glass);
  box-shadow: var(--shadow-card), inset 0 0 80px rgba(168,85,247,0.05);
  overflow: hidden;
}

.escape-room-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.room-wall {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: 
    repeating-linear-gradient(90deg, rgba(168,85,247,0.03) 0px, rgba(168,85,247,0.03) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(168,85,247,0.02) 0px, rgba(168,85,247,0.02) 1px, transparent 1px, transparent 60px),
    linear-gradient(180deg, #1a1035 0%, #251545 100%);
}

.room-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: 
    repeating-linear-gradient(90deg, rgba(100,50,180,0.08) 0px, rgba(100,50,180,0.08) 1px, transparent 1px, transparent 60px),
    linear-gradient(180deg, #1a0f30 0%, #0d0820 100%);
  border-top: 1px solid rgba(168,85,247,0.1);
}

.room-window {
  position: absolute;
  top: 5%;
  right: 8%;
  width: 60px;
  height: 70px;
  background: linear-gradient(180deg, #0a0a1a, #1a0a2e);
  border: 2px solid rgba(168,85,247,0.3);
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}

.room-window::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(168,85,247,0.3);
}

.room-window::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(168,85,247,0.3);
}

.window-stars {
  position: absolute;
  top: 20%;
  left: 30%;
  font-size: 10px;
  animation: sparkle 3s ease-in-out infinite;
}

/* Oda Eşyaları */
.room-item {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  z-index: 2;
  color: var(--text-primary);
  font-family: var(--font-primary);
  -webkit-tap-highlight-color: transparent;
}

.room-item:hover {
  background: rgba(255, 77, 141, 0.12);
  border-color: rgba(255, 77, 141, 0.3);
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 77, 141, 0.2);
}

.room-item:active {
  transform: scale(0.98);
}

.room-item.found {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.room-item.found:hover {
  background: rgba(16, 185, 129, 0.15);
}

.room-item-icon {
  font-size: 2rem;
  line-height: 1;
}

.room-item-large .room-item-icon {
  font-size: 2.5rem;
}

.room-item-name {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.room-item-check {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.85rem;
}

.room-item-glow {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 77, 141, 0.2);
  animation: glow 3s ease-in-out infinite;
  pointer-events: none;
}

.safe-glow {
  border-color: rgba(251, 191, 36, 0.3) !important;
  animation: safeGlow 2s ease-in-out infinite !important;
}

@keyframes safeGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.2); }
  50% { box-shadow: 0 0 30px rgba(251, 191, 36, 0.3); border-color: rgba(251, 191, 36, 0.5); }
}

.room-item-safe {
  padding: 14px 18px;
}

.room-item-safe .room-item-icon {
  font-size: 2.8rem;
}

.room-item-safe.opened {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.4);
}

/* İpucu Paneli */
.escape-clue-panel {
  background: var(--bg-card);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
}

.escape-clue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.escape-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.escape-action-btn {
  flex: 1;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.12);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.escape-action-btn:hover {
  background: rgba(168, 85, 247, 0.26);
  border-color: rgba(168, 85, 247, 0.6);
}

.escape-action-btn.secondary {
  border-color: rgba(255, 77, 141, 0.35);
  background: rgba(255, 77, 141, 0.1);
}

.escape-action-btn.secondary:hover {
  background: rgba(255, 77, 141, 0.22);
  border-color: rgba(255, 77, 141, 0.55);
}

.escape-live-hint {
  font-size: 0.78rem;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--accent-gold);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.escape-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  max-width: 320px;
  z-index: 8000;
  background: rgba(18, 18, 42, 0.95);
  color: var(--text-primary);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.25s ease;
}

.escape-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.escape-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}

.escape-progress {
  height: 100%;
  width: 0%;
  background: var(--gradient-romantic);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.escape-clue-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.escape-clue-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.escape-clue-item.found {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--text-primary);
}

.escape-clue-item.hidden {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.clue-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.clue-name {
  flex: 1;
  font-weight: 500;
}

.clue-value {
  font-size: 0.75rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.escape-instructions {
  padding: 14px 18px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.escape-instructions strong {
  color: var(--accent-pink);
}

/* Escape Modal Extras */
.escape-modal-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.escape-modal-badge.new {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.escape-modal-badge.revisit {
  background: rgba(168, 85, 247, 0.1);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.escape-hint-box {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 12px;
}

.escape-hint-box p {
  font-style: italic;
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin: 0;
}

.escape-detail-box {
  background: rgba(255, 77, 141, 0.08);
  border: 1px solid rgba(255, 77, 141, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.escape-detail-box p {
  font-weight: 600;
  color: var(--accent-pink);
  font-size: 0.95rem;
  margin: 0;
}

/* Safe Modal */
.safe-clue-status {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 600;
}

.safe-input {
  font-size: 1.8rem !important;
  letter-spacing: 12px !important;
  text-align: center;
}

.escape-extra-hint {
  font-size: 0.85rem;
  color: var(--accent-gold);
  font-style: italic;
  padding: 10px;
  background: rgba(251,191,36,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  animation: fadeInUp 0.5s ease;
}

/* Safe Reveal — Seni Seviyorum */
.safe-reveal {
  text-align: center;
  padding: 10px 0;
}

.safe-reveal-hearts {
  font-size: 1.8rem;
  margin-bottom: 16px;
  animation: heartPulse 1.5s ease-in-out infinite;
  letter-spacing: 8px;
}

.safe-love-text {
  font-family: var(--font-romantic);
  font-size: 2.5rem;
  background: var(--gradient-romantic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease;
}

.safe-love-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Çiçek Kartı */
.safe-flower {
  background: rgba(255, 77, 141, 0.06);
  border: 1px solid rgba(255, 77, 141, 0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 20px 0;
  animation: fadeInUp 1s ease 0.3s both;
}

.flower-emoji {
  font-size: 4rem;
  margin-bottom: 8px;
  animation: heartPulse 2s ease-in-out infinite;
}

.flower-name {
  font-family: var(--font-elegant);
  font-size: 1.5rem;
  color: var(--accent-rose);
  margin-bottom: 4px;
}

.flower-name span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-primary);
}

.flower-meaning {
  font-family: var(--font-romantic);
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 16px;
}

.flower-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.flower-detail-item {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.flower-label {
  color: var(--accent-pink);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.safe-final-msg {
  font-family: var(--font-romantic);
  font-size: 1.1rem;
  color: var(--accent-rose);
  margin-top: 16px;
  animation: fadeInUp 1.2s ease 0.6s both;
}

/* Konfeti */
.escape-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -40px;
  animation: confettiFall linear forwards;
  opacity: 0;
}

@keyframes confettiFall {
  0% { opacity: 0; transform: translateY(0) rotate(0deg) scale(1); }
  10% { opacity: 1; }
  90% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(0.3); }
}

/* === PUZZLE MODAL === */
.puzzle-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.puzzle-modal-overlay.active {
  display: flex;
}

.puzzle-modal {
  background: var(--bg-secondary);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 0 60px rgba(255, 77, 141, 0.2);
  animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.puzzle-modal .puzzle-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  animation: heartPulse 1.5s ease-in-out infinite;
}

.puzzle-modal h3 {
  font-family: var(--font-romantic);
  font-size: 1.8rem;
  color: var(--accent-rose);
  margin-bottom: 12px;
}

.puzzle-modal p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.puzzle-input-group {
  position: relative;
  margin-bottom: 16px;
}

.puzzle-input {
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 4px;
  outline: none;
  transition: var(--transition-smooth);
}

.puzzle-input:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 20px rgba(255, 77, 141, 0.15);
}

.puzzle-input::placeholder {
  letter-spacing: 2px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.puzzle-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.puzzle-error {
  color: #ff4444;
  font-size: 0.85rem;
  margin-bottom: 12px;
  display: none;
  animation: shake 0.4s ease;
}

.puzzle-error.show {
  display: block;
}

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

.puzzle-success-message {
  display: none;
  text-align: center;
  padding: 20px;
}

.puzzle-success-message.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.puzzle-success-message .success-icon {
  font-size: 4rem;
  margin-bottom: 12px;
  animation: heartPulse 1s ease-in-out infinite;
}

.puzzle-success-message h4 {
  font-family: var(--font-romantic);
  font-size: 1.6rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.puzzle-success-message p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* === GALLERY SECTION === */
.gallery-section {
  background: var(--bg-primary);
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: var(--border-glass);
  background: rgba(45, 20, 60, 0.4);
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 77, 141, 0.3);
}

.gallery-item img, .gallery-item video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.gallery-caption {
  padding: 16px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  border-top: 1px solid rgba(255, 77, 141, 0.1);
}

.gallery-caption h4 {
  font-family: var(--font-romantic);
  font-size: 1.4rem;
  color: var(--accent-pink);
  text-shadow: 0 0 10px rgba(255, 77, 141, 0.2);
  margin-bottom: 6px;
}

.gallery-caption p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Gallery placeholder styling */
.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 77, 141, 0.1), rgba(168, 85, 247, 0.1));
  color: var(--text-muted);
  font-size: 0.85rem;
  gap: 12px;
}

.gallery-placeholder .placeholder-icon {
  font-size: 3rem;
  opacity: 0.5;
}

.gallery-upload-info {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px dashed rgba(255, 77, 141, 0.3);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
}

.gallery-upload-info code {
  background: rgba(255, 77, 141, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--accent-rose);
}

/* === LIGHTBOX === */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  z-index: 6000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  background: rgba(255, 77, 141, 0.3);
}

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

.lightbox-nav:hover {
  background: rgba(255, 77, 141, 0.3);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* === LOVE MESSAGE SECTION === */
.message-section {
  background: var(--gradient-bg);
  text-align: center;
}

.message-card {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.message-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  height: 4px;
  background: var(--gradient-romantic);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.message-card .quote-icon {
  font-size: 3rem;
  color: var(--accent-pink);
  opacity: 0.3;
  margin-bottom: 16px;
}

.message-card .message-text {
  font-family: var(--font-romantic);
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 24px;
}

.message-card .message-author {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.message-card .heart-decoration {
  position: absolute;
  font-size: 6rem;
  opacity: 0.04;
  color: var(--accent-pink);
}

.message-card .heart-decoration.top-right {
  top: -10px;
  right: -10px;
}

.message-card .heart-decoration.bottom-left {
  bottom: -10px;
  left: -10px;
}

/* === TIMELINE SECTION === */
.timeline-section {
  background: var(--bg-primary);
}

.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-pink), var(--accent-purple), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--accent-pink);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 20px rgba(255, 77, 141, 0.4);
  z-index: 2;
}

.timeline-content {
  width: 44%;
  padding: 24px;
  background: var(--bg-glass);
  border: var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.timeline-content:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 77, 141, 0.2);
  box-shadow: var(--shadow-glow);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--accent-pink);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-romantic);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === FOOTER === */
.footer {
  padding: 40px;
  text-align: center;
  background: var(--bg-secondary);
  border-top: var(--border-glass);
}

.footer-heart {
  font-size: 2rem;
  margin-bottom: 12px;
  animation: heartPulse 1.5s ease-in-out infinite;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer .footer-romantic {
  font-family: var(--font-romantic);
  font-size: 1.1rem;
  color: var(--accent-rose);
  margin-bottom: 8px;
}

/* === ANIMATIONS === */
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 77, 141, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 77, 141, 0.4); }
}

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

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: var(--border-glass);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 60px 20px;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .game-wrapper {
    padding: 12px;
  }

  .game-mobile-controls {
    display: flex;
  }

  .game-controls {
    display: none;
  }

  .game-info-bar {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }

  .game-stat {
    font-size: 0.85rem;
  }

  .game-instructions {
    font-size: 0.8rem;
    padding: 12px 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 50px;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-dot {
    left: 20px;
  }

  .message-card {
    padding: 30px 20px;
  }

  .puzzle-modal {
    padding: 30px 20px;
  }

  .lightbox-nav {
    display: none;
  }

  /* Escape room v2 mobile */
  .escape-wrapper-v2 {
    grid-template-columns: 1fr;
  }

  .escape-dpad {
    margin-top: 4px;
  }

  .dpad-btn {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .dpad-center {
    width: 68px;
    height: 68px;
  }

  /* Old compat */
  .escape-wrapper {
    grid-template-columns: 1fr;
  }

  .escape-clue-panel {
    padding: 16px;
  }

  .escape-actions {
    flex-direction: column;
  }

  .safe-love-text {
    font-size: 1.8rem;
  }

  .safe-flower {
    padding: 16px;
  }

  .flower-emoji {
    font-size: 3rem;
  }

  .flower-detail-item {
    flex-direction: column;
    gap: 2px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
