/* Audi flagship overrides */

.flagship-audi {
  --flagship-bg: radial-gradient(ellipse at top, #0a0505 0%, #040404 100%);
  --flagship-text: #f7f7f7;
  --flagship-accent: #f50537;
  --flagship-accent-contrast: #ffffff;
  --flagship-accent-muted: rgba(245, 5, 55, 0.72);
  --flagship-hero-overlay-top: rgba(4, 4, 6, 0.72);
  --flagship-hero-overlay-mid: rgba(4, 4, 6, 0.18);
  --flagship-hero-overlay-bottom: rgba(4, 4, 6, 0.88);
  --flagship-menu-bg: rgba(12, 12, 14, 0.92);
  --flagship-cta-bg: rgba(15, 15, 17, 0.45);
  --flagship-cta-border: rgba(245, 5, 55, 0.42);
  --flagship-cta-text: rgba(255, 255, 255, 0.92);
  --flagship-muted-text: rgba(227, 227, 231, 0.76);
  --flagship-surface-border: rgba(245, 5, 55, 0.18);
  --flagship-surface-border-strong: rgba(245, 5, 55, 0.32);
  --flagship-panel-shadow: 0 28px 70px rgba(12, 12, 16, 0.6);
  --flagship-card-shadow: 0 22px 62px rgba(12, 12, 16, 0.5);
  --flagship-font: "Audi Type", "Porsche Next", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--flagship-bg);
}

.flagship-audi .flagship-hero__brand {
  letter-spacing: 0.6em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(245, 5, 55, 0.4);
}

/* Audi rings inspired styling */
.flagship-audi .flagship-hero__brand::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  width: 20px;
  height: 10px;
  border: 2px solid rgba(245, 5, 55, 0.5);
  border-radius: 50%;
  animation: ringPulse 3s ease-in-out infinite;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

.flagship-audi .flagship-card__family {
  letter-spacing: 0.32em;
}

.flagship-audi .flagship-hero__cta,
.flagship-audi .flagship-card__link {
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

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

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

/* quattro AWD styling for relevant cards */
.flagship-audi .flagship-card:has(.flagship-card__desc:contains('quattro')) {
  border: 1px solid rgba(245, 5, 55, 0.3);
  position: relative;
}

.flagship-audi .flagship-card:has(.flagship-card__desc:contains('quattro'))::before {
  background: linear-gradient(45deg, 
    rgba(245, 5, 55, 0.1) 0%,
    rgba(255, 255, 255, 0.02) 25%,
    rgba(245, 5, 55, 0.1) 50%,
    rgba(255, 255, 255, 0.02) 75%,
    rgba(245, 5, 55, 0.1) 100%);
  background-size: 40px 40px;
  animation: quattroPattern 10s linear infinite;
}

@keyframes quattroPattern {
  0% { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Enhanced spotlight with Audi styling */
.flagship-audi .flagship-spotlight {
  background: linear-gradient(135deg, 
    rgba(245, 5, 55, 0.08) 0%, 
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(245, 5, 55, 0.2);
  position: relative;
  overflow: hidden;
}

.flagship-audi .flagship-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(245, 5, 55, 0.8), 
    transparent);
  animation: progressScan 4s ease-in-out infinite;
}

@keyframes progressScan {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.flagship-audi .flagship-discover__item::after {
  background: linear-gradient(0deg, rgba(4, 4, 6, 0.88), rgba(4, 4, 6, 0.42));
}

.flagship-audi .flagship-footer__legal img {
  filter: invert(1) brightness(1.35) drop-shadow(0 0 10px rgba(245, 5, 55, 0.3));
  transition: all 0.3s ease;
}

.flagship-audi .flagship-footer__legal img:hover {
  filter: invert(1) brightness(1.5) drop-shadow(0 0 20px rgba(245, 5, 55, 0.5));
  transform: scale(1.05);
}

.flagship-audi .flagship-hero__menu,
.flagship-audi .flagship-hero__search {
  border-color: rgba(245, 5, 55, 0.36);
}

.flagship-audi .flagship-hero__menu:hover,
.flagship-audi .flagship-hero__search:hover {
  border-color: #f50537;
  box-shadow: 0 0 20px rgba(245, 5, 55, 0.5);
  transform: scale(1.05);
}

/* RS Performance styling */
.flagship-audi .flagship-card__family:contains('RS') {
  background: linear-gradient(45deg, #f50537, #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
}

/* e-tron electric styling */
.flagship-audi .flagship-card__family:contains('e-tron') {
  background: linear-gradient(45deg, #00ff88, #00b4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Card hover effects */
.flagship-audi .flagship-card:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: 
    0 40px 80px rgba(12, 12, 16, 0.7),
    0 0 40px rgba(245, 5, 55, 0.2);
}

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