/* ==========================================================================
   ADISYO.NET - EDITORIAL / SWISS-MODERNIST STYLESHEET
   A controlled, bespoke visual identity for a premium domain sale.
   Zero AI slop: no glassmorphism, no neon glows, no bloated pills.
   ========================================================================== */

:root {
  --bg-primary: #0C0E12;
  --bg-surface: #12151B;
  --border-subtle: #22252C;
  --border-hover: #323742;
  --text-primary: #F2F2EE;
  --text-secondary: #8E929B;
  --text-muted: #5E626B;
  --accent-blue: #2563EB;
  --accent-blue-bright: #3B82F6;
  --accent-blue-subtle: rgba(37, 99, 235, 0.12);

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-space: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Base Reset & Typography Setup */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle Monochrome Micro-Grain Background Texture (2.5% opacity) */
.bg-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.035'/%3E%3C/svg%3E");
}

/* Three.js Canvas Positioning */
#canvas-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

#webgl-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   EDITORIAL TYPOGRAPHY & LAYOUT UTILITIES
   ========================================================================== */

.editorial-headline {
  font-size: clamp(44px, 8.5vw, 132px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--text-primary);
}

.editorial-subheadline {
  font-size: clamp(20px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #B5B9C2;
}

.editorial-body {
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Editorial Info Container */
.editorial-box {
  background: linear-gradient(180deg, rgba(19, 23, 31, 0.85) 0%, rgba(13, 16, 22, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 45px -12px rgba(0, 0, 0, 0.65);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.editorial-box:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 24px 50px -10px rgba(0, 0, 0, 0.75);
}

/* Hairline Separators */
.hairline {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* Eyebrow Label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Tabular Figures for clean financial representation */
.tabular-nums {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* ==========================================================================
   BUTTONS (Understated Luxury, Solid Tactile Feedback)
   ========================================================================== */

/* Primary Action ("Teklif Ver") */
.btn-editorial-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #F2F2EE;
  color: #0A0C10;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 28px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-editorial-primary:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 12px 28px rgba(37, 99, 235, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-editorial-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.btn-editorial-primary:focus-visible {
  outline: 2px solid var(--accent-blue-bright);
  outline-offset: 2px;
}

.btn-editorial-primary svg {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-editorial-primary:hover svg {
  transform: translateX(3px);
}

/* Secondary Action ("E-posta ile iletişim") */
.btn-editorial-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #C2C5CD;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-editorial-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-editorial-secondary:active {
  transform: translateY(0);
}

.btn-editorial-secondary:focus-visible {
  outline: 2px solid var(--border-hover);
  outline-offset: 2px;
}

/* ==========================================================================
   EDITORIAL INFINITE TOP MARQUEE TAPE
   High-end trust ticker with dual typography, pill badges & edge fades
   ========================================================================== */

.editorial-marquee-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  height: 54px;
  background-color: rgba(12, 14, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 30px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  align-items: center;
  user-select: none;
  /* Smooth edge gradient masks so ticker never abruptly clips into screen borders */
  mask-image: linear-gradient(90deg, transparent 0%, #000 64px, #000 calc(100% - 64px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 64px, #000 calc(100% - 64px), transparent 100%);
}

.editorial-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-infinite 42s linear infinite;
  will-change: transform;
}

.editorial-marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes marquee-infinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 26px;
  white-space: nowrap;
}

/* Category Pill Badges (Technical JetBrains Mono) */
.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3.5px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  transition: all 0.2s ease;
}

.marquee-pill-blue {
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.38);
  color: #93C5FD;
}

.marquee-pill-emerald {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.38);
  color: #6EE7B7;
}

.marquee-pill-amber {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.38);
  color: #FCD34D;
}

.marquee-pill-violet {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(167, 139, 250, 0.38);
  color: #C4B5FD;
}

.marquee-pill-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.38);
  color: #67E8F9;
}

/* Marquee Primary Statement (Distinct, bold Space Grotesk) */
.marquee-text {
  font-family: var(--font-space);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #F1F5F9;
}

/* Glowing Diamond Separator */
.marquee-separator {
  color: #3B82F6;
  font-size: 11px;
  margin-left: 10px;
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.8);
  user-select: none;
}

/* ==========================================================================
   2D RETRO VIDEO OYUNU DİYALOG KUTUSU (UNDERTALE / SANS STİLİ)
   Preserved 100% for the developer Easter-egg experience
   ========================================================================== */

.font-pixel {
  font-family: 'Press Start 2P', 'Courier New', monospace;
}

.retro-dialog-box {
  background: #000000;
  border: 4px solid #ffffff;
  box-shadow: 
    0 0 0 4px #000000, 
    0 0 0 8px #ffffff,
    0 30px 80px rgba(0, 0, 0, 0.98);
  image-rendering: pixelated;
  position: relative;
}

/* NPC Konuşma Kıpırdanma Animasyonu */
@keyframes npc-talk-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px) scale(1.02); }
}

.npc-talking {
  animation: npc-talk-bob 0.18s steps(2, start) infinite;
}

/* Retro Piksel Butonlar */
.pixel-btn {
  background: #000000;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  padding: 10px 16px;
  transition: all 0.1s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.pixel-btn:hover {
  background: #ffffff;
  color: #000000;
}

.pixel-btn:active {
  transform: scale(0.96);
}

/* Retro Yanıp Sönen İmleç */
@keyframes retro-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.retro-caret {
  display: inline-block;
  width: 10px;
  height: 18px;
  background-color: var(--accent-blue-bright);
  margin-left: 4px;
  vertical-align: middle;
  animation: retro-caret 0.6s infinite;
}

/* ==========================================================================
   ACCESSIBILITY & PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
