/* ==========================================================
   ACİL OTO TAMİR - DUAL THEME ENGINE (DARK NOIR & SHADED WHITE)
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700;800&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================
   1. COLOR PALETTES & CSS VARIABLES
   ========================================================== */

:root, html.dark {
  --bg-body: #0a0d14;
  --bg-card: #111622;
  --bg-card-hover: #171f30;
  --bg-header: rgba(17, 22, 34, 0.85);
  --bg-footer: #07090f;
  
  --text-main: #e2e8f0;
  --text-heading: #ffffff;
  --text-muted: #94a3b8;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.5);
  
  --card-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 16px 35px -10px rgba(245, 158, 11, 0.25);
  
  --grid-line: rgba(255, 255, 255, 0.03);
  --grid-line-orange: rgba(245, 158, 11, 0.04);
  --hero-radial: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.14) 0%, rgba(10, 13, 20, 0.95) 75%);
}

/* 2. SHADED WHITE (PEARL & SLATE) LIGHT MODE */
html.light {
  --bg-body: #f4f6fb; /* Yumuşak ve göz yormayan gölgeli sedef beyazı */
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-footer: #0f172a;
  
  --text-main: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  
  --border-color: #e2e8f0;
  --border-hover: #f59e0b;
  
  --card-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  --card-shadow-hover: 0 18px 35px -5px rgba(245, 158, 11, 0.2), 0 8px 12px -3px rgba(15, 23, 42, 0.06);
  
  --grid-line: rgba(15, 23, 42, 0.04);
  --grid-line-orange: rgba(217, 119, 6, 0.05);
  --hero-radial: radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.08) 0%, rgba(244, 246, 251, 0.95) 75%);
}

/* ==========================================================
   2. GLOBAL BASE STYLES & TYPOGRAPHY
   ========================================================== */

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6, .font-tech {
  font-family: 'Chakra Petch', sans-serif;
  letter-spacing: -0.02em;
}

/* ==========================================================
   3. NEON GLOW & PULSE EFFECTS
   ========================================================== */

.glow-amber {
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.35);
}

.glow-red {
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.45);
}

.glow-cyan {
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.35);
}

.glow-text-amber {
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}

.glow-text-orange {
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.btn-emergency-glow {
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.5), 0 0 20px rgba(245, 158, 11, 0.35);
  animation: pulse-fast 2s ease-in-out infinite;
}

.btn-emergency-glow:hover {
  box-shadow: 0 14px 35px -5px rgba(239, 68, 68, 0.7), 0 0 30px rgba(245, 158, 11, 0.5);
}

/* Radar Scan Animation */
@keyframes radar-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.15;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.radar-ring {
  animation: radar-pulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.radar-ring-delayed {
  animation: radar-pulse 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  animation-delay: 1.2s;
}

/* ==========================================================
   4. INDUSTRIAL GRID & HERO BACKGROUNDS
   ========================================================== */

.cyber-grid {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
}

.cyber-grid-orange {
  background-size: 35px 35px;
  background-image: 
    linear-gradient(to right, var(--grid-line-orange) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line-orange) 1px, transparent 1px);
}

.hero-radial-glow {
  background: var(--hero-radial);
}

/* ==========================================================
   5. CARDS & GLASSMORPHISM
   ========================================================== */

.card-industrial {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-industrial:hover {
  transform: translateY(-4px);
}

/* Emergency Heartbeat Button */
@keyframes pulse-fast {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.btn-emergency-pulse {
  animation: pulse-fast 1.8s ease-in-out infinite;
}

/* Glassmorphism */
.glass-panel {
  background: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

/* Theme Toggle Button Hover & Micro-Animations */
.theme-toggle-btn {
  transition: all 0.25s ease;
}
.theme-toggle-btn:hover {
  transform: scale(1.05);
}

/* ==========================================================
   6. CUSTOM SCROLLBAR
   ========================================================== */

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
html.dark ::-webkit-scrollbar-thumb {
  background: #232d42;
}
::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

