/* Apollo flagship overrides */

.flagship-apollo {
  --flagship-bg: radial-gradient(ellipse at center, #0a0a0a 0%, #010101 100%);
  --flagship-text: #f2f2f2;
  --flagship-accent: #eaeaea;
  --flagship-accent-contrast: #ffffff;
  --flagship-accent-muted: rgba(234, 234, 234, 0.68);
  --flagship-hero-overlay-top: rgba(0, 0, 0, 0.78);
  --flagship-hero-overlay-mid: rgba(0, 0, 0, 0.2);
  --flagship-hero-overlay-bottom: rgba(0, 0, 0, 0.92);
  --flagship-menu-bg: rgba(8, 8, 8, 0.92);
  --flagship-cta-bg: rgba(0, 0, 0, 0.5);
  --flagship-cta-border: rgba(234, 234, 234, 0.32);
  --flagship-cta-text: rgba(255, 255, 255, 0.92);
  --flagship-muted-text: rgba(215, 215, 215, 0.78);
  --flagship-surface-border: rgba(234, 234, 234, 0.16);
  --flagship-surface-border-strong: rgba(234, 234, 234, 0.32);
  --flagship-panel-shadow: 0 32px 70px rgba(0, 0, 0, 0.6);
  --flagship-card-shadow: 0 26px 66px rgba(0, 0, 0, 0.55);
  --flagship-font: "Eurostile", "Porsche Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--flagship-bg);
  position: relative;
}

/* Carbon fiber pattern overlay */
.flagship-apollo::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 2px,
      rgba(234, 234, 234, 0.01) 2px,
      rgba(234, 234, 234, 0.01) 4px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 2px,
      rgba(234, 234, 234, 0.01) 2px,
      rgba(234, 234, 234, 0.01) 4px
    );
  pointer-events: none;
  z-index: 1;
}

.flagship-apollo .flagship-hero__brand {
  letter-spacing: 0.58em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-shadow: 
    0 0 30px rgba(234, 234, 234, 0.4),
    0 0 60px rgba(255, 255, 255, 0.2);
  z-index: 2;
}

/* Hypercar speed lines effect */
.flagship-apollo .flagship-hero__brand::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(234, 234, 234, 0.8), 
    transparent);
  animation: speedLines 2s ease-in-out infinite;
}

.flagship-apollo .flagship-hero__brand::before {
  content: '';
  position: absolute;
  top: 60%;
  right: -90px;
  transform: translateY(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(234, 234, 234, 0.5), 
    transparent);
  animation: speedLines 2s ease-in-out infinite 0.2s;
}

@keyframes speedLines {
  0%, 100% { opacity: 0; transform: translateY(-50%) translateX(-20px); }
  50% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.flagship-apollo .flagship-card__family {
  letter-spacing: 0.38em;
}

.flagship-apollo .flagship-card::after {
  background: linear-gradient(200deg, 
    rgba(0, 0, 0, 0.05) 0%,
    rgba(234, 234, 234, 0.02) 30%,
    rgba(0, 0, 0, 0.92) 100%);
}

.flagship-apollo .flagship-card {
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flagship-apollo .flagship-card:hover {
  transform: translateY(-12px) scale(1.02) rotateX(2deg);
  box-shadow: 
    0 50px 100px rgba(0, 0, 0, 0.8),
    0 0 50px rgba(234, 234, 234, 0.2),
    inset 0 1px 0 rgba(234, 234, 234, 0.1);
  border-color: rgba(234, 234, 234, 0.3);
}

/* Intensa Emozione exclusive styling */
.flagship-apollo .flagship-card__family:contains('Intensa') {
  background: linear-gradient(45deg, #ff6b35, #f7931e, #eaeaea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  position: relative;
  animation: hypercarGlow 3s ease-in-out infinite;
}

@keyframes hypercarGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.3) drop-shadow(0 0 5px rgba(234, 234, 234, 0.5)); }
}

/* Track-only styling */
.flagship-apollo .flagship-card__family:contains('Track') {
  background: linear-gradient(45deg, #ff0000, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.flagship-apollo .flagship-card__family:contains('Track')::after {
  content: '\1F3C1';
  position: absolute;
  right: -18px;
  top: 0;
  color: #ff6b35;
  font-size: 12px;
  animation: flagWave 2s ease-in-out infinite;
}

@keyframes flagWave {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Enhanced spotlight with carbon fiber effect */
.flagship-apollo .flagship-spotlight {
  background: linear-gradient(135deg, 
    rgba(234, 234, 234, 0.08) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(234, 234, 234, 0.2);
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flagship-apollo .flagship-spotlight:hover {
  transform: translateY(-8px) scale(1.02);
  background: linear-gradient(135deg, 
    rgba(234, 234, 234, 0.15) 0%, 
    rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(234, 234, 234, 0.4);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 40px rgba(234, 234, 234, 0.1);
}

/* Aerodynamic lines effect */
.flagship-apollo .flagship-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%,
    rgba(234, 234, 234, 0.3) 25%,
    rgba(234, 234, 234, 0.8) 50%,
    rgba(234, 234, 234, 0.3) 75%,
    transparent 100%);
  animation: aeroFlow 4s ease-in-out infinite;
}

@keyframes aeroFlow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.flagship-apollo .flagship-hero__cta,
.flagship-apollo .flagship-card__link {
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.flagship-apollo .flagship-hero__cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(234, 234, 234, 0.3), 
    transparent);
  transition: left 0.6s ease;
}

.flagship-apollo .flagship-hero__cta:hover::before {
  left: 100%;
}

.flagship-apollo .flagship-hero__cta:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(234, 234, 234, 0.3);
  border-color: rgba(234, 234, 234, 0.6);
}

/* Hypercar performance indicators */
.flagship-apollo .flagship-hero__content {
  position: relative;
  z-index: 2;
}

.flagship-apollo .flagship-hero__content::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(234, 234, 234, 0.1);
  border-radius: 50%;
  animation: hypercarRadar 6s linear infinite;
}

@keyframes hypercarRadar {
  0% {
    transform: scale(0.5) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(2) rotate(360deg);
    opacity: 0;
  }
}

.flagship-apollo .flagship-discover__item::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.45));
}

.flagship-apollo .flagship-footer__legal img {
  filter: invert(1) brightness(1.2) drop-shadow(0 0 15px rgba(234, 234, 234, 0.3));
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.flagship-apollo .flagship-footer__legal img:hover {
  filter: invert(1) brightness(1.4) drop-shadow(0 0 25px rgba(234, 234, 234, 0.6));
  transform: scale(1.05);
}

/* Apollo exclusivity counter */
.flagship-apollo .flagship-hero__legal {
  position: relative;
  z-index: 2;
}

.flagship-apollo .flagship-hero__legal::before {
  content: 'ОГРАНИЧЕННАЯ СЕРИЯ';
  position: absolute;
  top: -25px;
  left: 0;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(234, 234, 234, 0.6);
  animation: exclusivityBlink 4s ease-in-out infinite;
}

@keyframes exclusivityBlink {
  0%, 90%, 100% { opacity: 0.6; }
  95% { opacity: 1; }
}

@media (max-width: 768px) {
  .flagship-apollo .flagship-hero__brand {
    letter-spacing: 0.4em;
  }
}
