/* ================================================
   City Winner Skyline North - Custom CSS
   Keyframes, Prose Styling & Overrides
   ================================================ */

/* ---- CSS Variables ---- */
:root {
  --color-primary: #f59e0b;
  --color-primary-hover: #d97706;
  --color-secondary: #0ea5e9;
  --color-accent: #8b5cf6;
  --color-dark: #0f172a;
  --color-darker: #020617;
  --color-light: #f8fafc;
  --color-muted: #94a3b8;
  --color-success: #22c55e;
  --color-glow: rgba(245, 158, 11, 0.6);
  --font-heading: 'Montserrat', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

/* ---- Base Overrides ---- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  overflow-y: auto;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-darker);
  color: var(--color-light);
  overflow-x: clip;
}

/* ---- Keyframe Animations ---- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-0.625rem); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 1.25rem var(--color-glow); }
  50% { box-shadow: 0 0 2.5rem var(--color-glow), 0 0 3.75rem var(--color-glow); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

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

@keyframes particle-rise {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0);
    opacity: 0;
  }
}

@keyframes slide-in-up {
  0% {
    transform: translateY(1.875rem);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes window-glow {
  0%, 100% { 
    background-color: rgba(251, 191, 36, 0.8);
    box-shadow: 0 0 0.5rem rgba(251, 191, 36, 0.5);
  }
  50% { 
    background-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 0.25rem rgba(251, 191, 36, 0.2);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Animation Utility Classes ---- */
.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-twinkle {
  animation: twinkle 2s ease-in-out infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-particle {
  animation: particle-rise 8s linear infinite;
}

.animate-slide-up {
  animation: slide-in-up 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

.animate-window {
  animation: window-glow 3s ease-in-out infinite;
}

/* ---- Particle System ---- */
.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -1.25rem;
  width: 0.375rem;
  height: 0.375rem;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.6;
  animation: particle-rise 8s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 10s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 12s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 8s; }
.particle:nth-child(4) { left: 40%; animation-delay: 0.5s; animation-duration: 11s; }
.particle:nth-child(5) { left: 50%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(6) { left: 60%; animation-delay: 2.5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.8s; animation-duration: 10s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.8s; animation-duration: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.2s; animation-duration: 11s; }
.particle:nth-child(10) { left: 95%; animation-delay: 0.3s; animation-duration: 9s; }

/* ---- Marquee ---- */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 30s linear infinite;
}

.marquee-content:hover {
  animation-play-state: paused;
}

/* ---- City Skyline SVG Background ---- */
.skyline-bg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0.15;
  z-index: 0;
}

/* ---- Glowing Window Effect ---- */
.window-grid {
  display: grid;
  gap: 0.125rem;
}

.window {
  width: 0.25rem;
  height: 0.375rem;
  background-color: rgba(251, 191, 36, 0.7);
  animation: window-glow 3s ease-in-out infinite;
}

/* ---- Button Styles ---- */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: var(--color-dark);
  font-weight: 700;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.625rem 1.875rem rgba(245, 158, 11, 0.4);
}

.btn-secondary {
  background: transparent;
  border: 0.125rem solid var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-dark);
}

/* ---- Card Styles ---- */
.card-glow {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
  border: 0.0625rem solid rgba(245, 158, 11, 0.2);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card-glow:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 1.875rem rgba(245, 158, 11, 0.15);
  transform: translateY(-0.25rem);
}

/* ---- Table Responsive Wrapper ---- */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: 0.75rem;
}

/* ---- Prose Styling for Markdown Content ---- */
.prose {
  max-width: 100%;
  color: var(--color-light);
  font-size: 1rem;
  line-height: 1.75;
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 0.125rem solid rgba(245, 158, 11, 0.3);
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.prose h4 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-bottom: 1.25rem;
  color: rgba(248, 250, 252, 0.9);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
  transition: color 0.2s ease;
}

.prose a:hover {
  color: var(--color-secondary);
}

.prose strong {
  color: var(--color-light);
  font-weight: 600;
}

.prose em {
  color: rgba(248, 250, 252, 0.85);
  font-style: italic;
}

.prose ul {
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.prose ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: rgba(248, 250, 252, 0.9);
}

.prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.625rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-primary);
  border-radius: 50%;
}

.prose ol {
  counter-reset: prose-counter;
  list-style: none;
  padding-left: 0;
  margin: 1.25rem 0;
}

.prose ol li {
  counter-increment: prose-counter;
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 0.75rem;
  color: rgba(248, 250, 252, 0.9);
}

.prose ol li::before {
  content: counter(prose-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-primary);
  color: var(--color-dark);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prose blockquote {
  border-left: 0.25rem solid var(--color-primary);
  background: rgba(245, 158, 11, 0.1);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
  font-style: italic;
  color: rgba(248, 250, 252, 0.9);
}

.prose blockquote p {
  margin-bottom: 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}

.prose thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
}

.prose thead th {
  color: var(--color-dark);
  font-weight: 700;
  padding: 0.875rem 1rem;
  text-align: left;
  white-space: nowrap;
}

.prose tbody tr {
  border-bottom: 0.0625rem solid rgba(148, 163, 184, 0.2);
  transition: background 0.2s ease;
}

.prose tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}

.prose tbody tr:hover {
  background: rgba(245, 158, 11, 0.1);
}

.prose tbody td {
  padding: 0.875rem 1rem;
  color: rgba(248, 250, 252, 0.9);
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}

.prose hr {
  border: none;
  height: 0.0625rem;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  margin: 2.5rem 0;
}

.prose code {
  background: rgba(139, 92, 246, 0.2);
  color: var(--color-accent);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: rgba(15, 23, 42, 0.8);
  border: 0.0625rem solid rgba(148, 163, 184, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background: transparent;
  padding: 0;
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(0.625rem);
}

/* ---- FAQ Accordion ---- */
.faq-item {
  border-bottom: 0.0625rem solid rgba(148, 163, 184, 0.2);
}

.faq-question {
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 31.25rem;
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Shimmer Effect ---- */
.shimmer {
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0) 0%,
    rgba(245, 158, 11, 0.3) 50%,
    rgba(245, 158, 11, 0) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* ---- Responsive Utilities ---- */
@media (max-width: 1024px) {
  .prose h2 {
    margin-top: 2rem;
  }
  
  .prose h3 {
    margin-top: 1.5rem;
  }
}

@media (max-width: 640px) {
  .prose {
    font-size: 0.9375rem;
    line-height: 1.7;
  }
  
  .prose h2 {
    font-size: 1.375rem;
  }
  
  .prose h3 {
    font-size: 1.125rem;
  }
  
  .prose ul li,
  .prose ol li {
    padding-left: 1.5rem;
  }
  
  .prose ol li::before {
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
  }
  
  .prose blockquote {
    padding: 0.75rem 1rem;
  }
  
  .prose thead th,
  .prose tbody td {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ---- 18+ Badge ---- */
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0.125rem solid var(--color-primary);
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--color-primary);
}

/* ---- Provider Cloud ---- */
.provider-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(30, 41, 59, 0.8);
  border: 0.0625rem solid rgba(148, 163, 184, 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  color: rgba(248, 250, 252, 0.8);
  transition: all 0.2s ease;
}

.provider-tag:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ---- Numbered Step Badge ---- */
.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  box-shadow: 0 0.5rem 1.5rem rgba(245, 158, 11, 0.3);
}

/* ---- Focus States for Accessibility ---- */
a:focus-visible,
button:focus-visible {
  outline: 0.125rem solid var(--color-primary);
  outline-offset: 0.125rem;
}

/* ---- Selection Color ---- */
::selection {
  background: var(--color-primary);
  color: var(--color-dark);
}
