/* Yılmaz Nakliyat Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary-dark: #121315;
  --secondary-dark: #1A1C1E;
  --cargo-orange: #F25C05;
  --cargo-orange-hover: #D44F02;
  --text-light: #F8F9FA;
  --text-gray: #A0AEC0;
  --border-color: rgba(255, 255, 255, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-light);
  line-height: 1.5;
}

.font-display {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Brand Logo Layout */
.brand-logo-container {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Background Clean */
.blueprint-grid {
  background-image: none;
}

.dot-grid {
  background-image: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
  background: #2D3748;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cargo-orange);
}

/* Animations */
@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.pulse-soft {
  animation: pulse-soft 2s infinite ease-in-out;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.animate-float-slow {
  animation: float-slow 4s ease-in-out infinite;
}

@keyframes glow-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes radar-ping {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.radar-ping {
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Premium 3D Card Mechanics (Dengeli, Akıcı ve Şatafatlı) */
.tilt-card-wrapper {
  perspective: 1000px;
}

.tilt-3d-card {
  position: relative;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(28, 30, 34, 0.9) 0%, rgba(18, 19, 21, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  overflow: hidden;
}

.tilt-3d-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(242, 92, 5, 0.5), transparent 40%, rgba(245, 158, 11, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-3d-card:hover {
  border-color: rgba(242, 92, 5, 0.5);
  box-shadow: 0 20px 35px -10px rgba(242, 92, 5, 0.25), 0 0 20px -5px rgba(242, 92, 5, 0.2);
}

.tilt-3d-card:hover::before {
  opacity: 1;
}

/* 3D Content Layers */
.tilt-3d-card .card-3d-layer-1 {
  transform: translateZ(15px);
  transition: transform 0.25s ease;
}

.tilt-3d-card .card-3d-layer-2 {
  transform: translateZ(30px);
  transition: transform 0.25s ease;
}

/* Dynamic Glare Overlay */
.tilt-3d-card .card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: overlay;
  z-index: 10;
}

.tilt-3d-card:hover .card-glare {
  opacity: 1;
}

/* Leaflet Map Custom Stying */
#live-gps-map {
  width: 100%;
  height: 480px;
  border-radius: 1.25rem;
  z-index: 1;
  background: #121315;
}

.leaflet-container {
  background: #121315 !important;
  font-family: inherit;
}

.leaflet-popup-content-wrapper {
  background: rgba(26, 28, 30, 0.95) !important;
  color: #fff !important;
  border: 1px solid rgba(242, 92, 5, 0.4) !important;
  backdrop-filter: blur(10px);
  border-radius: 12px !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.7) !important;
}

.leaflet-popup-tip {
  background: rgba(26, 28, 30, 0.95) !important;
}

/* Neon Glow Accents */
.glow-box-orange {
  box-shadow: 0 8px 32px 0 rgba(242, 92, 5, 0.25);
}

.glow-box-green {
  box-shadow: 0 8px 32px 0 rgba(34, 197, 94, 0.25);
}

.glow-box-amber {
  box-shadow: 0 8px 32px 0 rgba(245, 158, 11, 0.25);
}

.glow-box-blue {
  box-shadow: 0 8px 32px 0 rgba(59, 130, 246, 0.25);
}

/* Hanger and Box visual indicators */
.truck-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12px, 1fr));
  gap: 4px;
}

.box-unit {
  aspect-ratio: 1;
  background: var(--border-color);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.2s ease;
}

.box-unit.active {
  background: rgba(242, 92, 5, 0.2);
  border-color: var(--cargo-orange);
}
