@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

:root {
  --font: 'Space Mono', monospace;
  --color-text: rgba(220, 235, 255, 0.9);
  --color-text-dim: rgba(180, 200, 225, 0.5);
  --color-success: #4ade80;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: var(--font); background: #050a10; color: var(--color-text); }

/* ARKA PLAN SABİT */
.bg { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-image: url('unsplash.webp'); background-size: cover; background-position: center; filter: blur(4px) brightness(0.35); z-index: -1; }

/* =========================================
   1) GİRİŞ EKRANI (HERO) STİLLERİ
   ========================================= */
#hero {
  position: relative; 
  width: 100%;
  height: 100vh; 
}

.overlay { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; z-index: 5; }

nav { 
  position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; 
  display: block !important; text-align: center !important; padding: 2.5rem 0 !important; 
  z-index: 9999 !important; pointer-events: auto !important;
}
nav a { 
  display: inline-block !important; color: var(--color-text) !important; text-decoration: none !important; 
  font-size: 0.8rem !important; letter-spacing: 0.35em !important; font-weight: bold !important; 
  transition: 0.3s !important; padding: 10px 20px !important; position: relative !important; z-index: 10000 !important;
}
nav a:hover { text-shadow: 0 0 12px rgba(120, 220, 255, 0.8) !important; }

.main-container { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity 0.5s ease, visibility 0.5s ease; }
.main-container.fade-out { opacity: 0; visibility: hidden; }

.hero-date { font-size: clamp(2rem, 8vw, 4.5rem); letter-spacing: 0.4em; text-shadow: 0 0 20px rgba(120, 220, 255, 0.6); margin-bottom: 10px; cursor: crosshair; }

.message-zone { height: 50px; display: flex; align-items: center; justify-content: center; }
.success-msg { visibility: hidden; opacity: 0; color: var(--color-success) !important; text-shadow: 0 0 15px rgba(74, 222, 128, 0.5); letter-spacing: 0.3em; font-size: 0.9rem; text-transform: uppercase; transition: opacity 0.8s ease, visibility 0.8s ease; }
.success-msg.visible { visibility: visible; opacity: 1; }

.subtitle { font-family: 'Courier New', Courier, serif !important; font-size: 1.1rem !important; font-weight: 369 !important; letter-spacing: 0.1em !important; color: #666060 !important; font-style: italic !important; margin-bottom: 35px !important; }

.invite-form { display: flex; flex-direction: column; align-items: center; }
.input-group { display: flex; border: 1px solid rgba(200, 230, 255, 0.2); border-radius: 2px; overflow: hidden; }

#email-input { font-family: 'Times New Roman', Times, serif !important; font-size: 1.2rem !important; background: rgba(10, 20, 35, 0.4); border: none; padding: 15px 25px !important; width: 350px; color: #dcdcdc !important; outline: none; }
#send-btn { font-family: var(--font); background: rgba(120, 220, 255, 0.1); border: none; border-left: 1px solid rgba(200, 230, 255, 0.2); color: white; padding: 0 30px; cursor: pointer; letter-spacing: 0.2em; transition: 0.3s; font-weight: bold; }

/* =========================================
   2) YENİ EXPLORE ZONE & PANELLER (DASHBOARD)
   ========================================= */
#explore-zone {
  position: relative;
  width: 100%;
  min-height: 100vh; 
  padding: 5rem 2rem;
  display: flex; /* Dikey olarak alanı ortalar */
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* 3 Kolonlu Grid Yapısı */
.panels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 eşit kolon */
  gap: 2.5rem;
  width: 100%;
  max-width: 1300px; /* Monitörde çok incelip çirkinleşmemesi için */
  margin: 0 auto;
}

/* Tekil Panel Tasarımı */
.dashboard-panel {
  background: rgba(12, 10, 18, 0.5); 
  border: 1px solid rgba(100, 110, 150, 0.15); 
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(80, 90, 130, 0.1);
  border-radius: 2px; 
  backdrop-filter: blur(4px); 
  font-family: 'Courier New', Courier, monospace; 
  padding: 1.5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Panel Üst Bilgileri */
.panel-header {
  text-align: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08); 
  padding-bottom: 1rem;
}

.panel-subtitle {
  color: #7b8498; 
  font-size: 0.7rem; 
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 0 8px rgba(123, 132, 152, 0.4); 
}

.panel-title {
  color: #d1d8e0;
  font-size: 0.9rem;
  font-weight: normal;
  letter-spacing: 1px;
  margin: 0;
}

/* Panel İçerikleri: 16:9 Orantısını Koruyan Kutu */
.media-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Videoyu, Haritayı hep yatay dikdörtgen tutar */
  background: #000;
  border: 1px solid #2a2a35; 
  box-shadow: 0 0 10px rgba(0,0,0,0.9);
  flex-grow: 1;
}

/* Ekran Scanline Efekti */
.media-wrapper::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.15) 50%);
  background-size: 100% 4px; 
  pointer-events: none; 
  z-index: 10;
}

/* Video İframe Stili */
.media-wrapper iframe {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(40%) sepia(10%) hue-rotate(180deg) brightness(0.8) contrast(1.1);
  transition: filter 0.6s ease;
}
.media-wrapper:hover iframe {
  filter: grayscale(0%) sepia(0%) hue-rotate(0deg) brightness(1) contrast(1);
}

/* Harita İframe Stili (ÖZEL CSS HİLESİ: Renkleri ters çevirip mavi/siyah mod yapar) */
.media-wrapper .map-iframe {
  filter: grayscale(60%) invert(95%) hue-rotate(180deg) brightness(0.8) contrast(1.2) !important;
}
.media-wrapper:hover .map-iframe {
  filter: grayscale(30%) invert(95%) hue-rotate(180deg) brightness(1) contrast(1.2) !important;
}

/* Seçenek 3 İçin Bekleme Animasyonu */
.signal-container {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-success);
  font-size: 0.8rem;
  letter-spacing: 3px;
  background: rgba(0,0,0,0.4);
  animation: pulseSignal 2.5s infinite;
}

@keyframes pulseSignal {
  0%, 100% { opacity: 0.1; text-shadow: none; }
  50% { opacity: 1; text-shadow: 0 0 10px var(--color-success); }
}

/* =========================================
   3) ABOUT EKRANI
   ========================================= */
#about-screen {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background-color: #020508; 
  background-image: linear-gradient(rgba(3, 7, 15, 0.75), rgba(3, 7, 15, 0.75)), url('fade.jpg'); 
  background-size: cover; background-position: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; 
  z-index: 20000;
  opacity: 0; visibility: hidden; transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow: hidden; 
}
#about-screen.visible { opacity: 1; visibility: visible; }

.stars-layer { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background-image: radial-gradient(1px 1px at 40px 30px, rgba(255,255,255,0.8), transparent), radial-gradient(1.5px 1.5px at 120px 90px, rgba(255,255,255,0.5), transparent), radial-gradient(1px 1px at 180px 150px, rgba(255,255,255,0.6), transparent); background-size: 250px 250px; animation: driftStars 15s linear infinite; z-index: 0; pointer-events: none; opacity: 0.5; }
#about-screen::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background-image: radial-gradient(ellipse at center, rgba(35, 10, 100, 0.18) 0%, transparent 40%), radial-gradient(ellipse at center, rgba(0, 60, 140, 0.15) 0%, transparent 45%), radial-gradient(ellipse at center, rgba(70, 20, 120, 0.12) 0%, transparent 50%); background-size: 150% 150%, 200% 200%, 180% 180%; background-repeat: no-repeat; filter: blur(60px); animation: liquidPour 30s ease-in-out infinite alternate; pointer-events: none; z-index: 1; mix-blend-mode: screen; }
#about-screen::after { content: ''; position: absolute; top: -100%; left: -100%; width: 300%; height: 300%; background-image: linear-gradient(-45deg, transparent 0%, transparent 48%, rgba(200, 220, 255, 0.03) 49%, rgba(255, 255, 255, 0.05) 50%, transparent 51%, transparent 100%); filter: blur(8px); animation: lightScan 18s cubic-bezier(0.4, 0, 0.2, 1) infinite; pointer-events: none; z-index: 2; }

.about-text { position: relative; color: var(--color-success); font-size: 1.1rem; line-height: 2; letter-spacing: 0.2em; text-align: center; z-index: 10; }
#log-cursor { animation: blinkCursor 1s step-end infinite; color: var(--color-success); }
@keyframes blinkCursor { 50% { opacity: 0; } }

.close-about { position: absolute; top: 2.5rem; right: 2.5rem; font-size: 0.8rem; cursor: pointer; opacity: 0.6; color: white; z-index: 30000; padding: 10px; pointer-events: auto; }
.close-about:hover { opacity: 1; text-shadow: 0 0 10px white; }

.pixel-emoji { position: absolute; opacity: 0; z-index: 5; font-family: "Courier New", monospace; pointer-events: none; }
.pixel-emoji:not(.binary-data) { animation: floatEmoji 8s linear forwards; }
.pixel-emoji.binary-data { animation: flyTowards 7.5s ease-in forwards !important; }

@keyframes floatEmoji { 0% { transform: translate(0, 0) rotate(0deg); opacity: 0; } 20% { opacity: 0.7; } 80% { opacity: 0.7; } 100% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)); opacity: 0; } }
@keyframes flyTowards { 0% { transform: translate(0, 0) scale(0.1) rotate(0deg); opacity: 0; } 15% { opacity: 0.7; } 45% { opacity: 0.7; } 80% { opacity: 0; } 100% { transform: translate(var(--dx), var(--dy)) scale(var(--final-scale)) rotate(var(--dr)); opacity: 0; } }
.magnetic-glitch { display: inline-block; }


/* =========================================
   4) MOBİL EKRANLAR
   ========================================= */
/* Tablet ve küçük ekranlar için panelleri alt alta dizer */
@media (max-width: 900px) {
  .panels-grid {
    grid-template-columns: 1fr; /* Artık yan yana değil, alt alta duracaklar */
    max-width: 450px;
  }
}

@media (max-width: 480px) {
  nav { padding: 3rem 0 1.5rem 0 !important; }
  .hero-date { font-size: 1.8rem !important; letter-spacing: 0.2em !important; margin-bottom: 5px !important; }
  .subtitle { font-size: 0.9rem !important; margin-bottom: 25px !important; }
  #email-input { width: 220px !important; padding: 12px 15px !important; font-size: 1rem !important; }
  .about-text { font-size: 0.55rem !important; line-height: 1.6 !important; letter-spacing: 0.05em !important; width: 95vw !important; padding: 0 5px !important; overflow-wrap: break-word !important; word-break: break-word !important; white-space: normal !important; margin: 0 auto !important; text-align: center !important; }
  .close-about { top: 1rem !important; right: 1rem !important; font-size: 0.75rem !important; padding: 15px !important; }
  
  /* Mobilde alan daha dar olduğu için panellerin dış kenar boşluğunu kıstık */
  #explore-zone { padding: 2rem 1rem; }
  .dashboard-panel { padding: 1rem; }
}

