/* ==========================================================================
   АВТОСЕРВІС СТАНІСЛАВІВ — Industrial Garage & Motorsport Styles
   ========================================================================== */

:root {
  --bg-asphalt: #121417;
  --bg-metal: #1a1d22;
  --bg-metal-hover: #23272f;
  --bg-metal-dark: #0f1114;
  
  --orange-signal: #ff4500;
  --orange-glow: rgba(255, 69, 0, 0.35);
  --orange-gradient: linear-gradient(135deg, #ff6224 0%, #ff4500 55%, #c83200 100%);
  --orange-gradient-hover: linear-gradient(135deg, #ff7a45 0%, #ff5214 55%, #df3800 100%);
  
  --steel-border: rgba(255, 255, 255, 0.08);
  --steel-border-active: rgba(255, 69, 0, 0.5);
  
  --text-white: #ffffff;
  --text-muted: #9ba3af;
  --text-dim: #64748b;
  
  --font-display: 'Teko', sans-serif;
  --font-tech: 'Barlow Semi Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-asphalt);
  color: var(--text-white);
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-asphalt);
  color: var(--text-white);
  line-height: 1.5;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Industrial Asphalt Texture & Grip lines */
.asphalt-texture {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(255, 69, 0, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 69, 0, 0.03) 0%, transparent 45%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

/* Typography Classes */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.95;
}

.font-tech {
  font-family: var(--font-tech);
  letter-spacing: 0.02em;
}

/* Motorsport Hazard Lines */
.hazard-border {
  position: relative;
}
.hazard-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    -45deg,
    #ff4500,
    #ff4500 10px,
    #121417 10px,
    #121417 20px
  );
}

/* Heavy Industrial Metal Card */
.metal-card {
  background: var(--bg-metal);
  border: 1px solid var(--steel-border);
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.metal-card:hover {
  border-color: var(--steel-border-active);
  background: var(--bg-metal-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 69, 0, 0.15);
}

/* Chamfered Box Corners */
.clipped-badge {
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* Signal Orange Button */
.btn-signal {
  background: var(--orange-gradient);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--orange-glow);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn-signal:hover {
  background: var(--orange-gradient-hover);
  box-shadow: 0 6px 28px rgba(255, 69, 0, 0.55);
  transform: translateY(-2px);
  color: #fff;
}

.btn-steel {
  background: #1e2229;
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid var(--steel-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-steel:hover {
  border-color: var(--orange-signal);
  background: #262c36;
  color: #ff6224;
  transform: translateY(-2px);
}

/* Interactive Tabs */
.tab-btn {
  background: #171a20;
  color: var(--text-muted);
  border: 1px solid var(--steel-border);
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 20px;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 69, 0, 0.4);
  background: #20242c;
}

.tab-btn.active {
  background: var(--orange-signal);
  color: #ffffff;
  border-color: var(--orange-signal);
  box-shadow: 0 0 20px var(--orange-glow);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

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

/* Status Pulse Animation */
@keyframes greenPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pulse-bay {
  animation: greenPulse 2s infinite;
}

/* iPhone Fixed Bottom Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(18, 20, 23, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 2px solid var(--orange-signal);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-asphalt);
}
::-webkit-scrollbar-thumb {
  background: #2a2f38;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--orange-signal);
}
