/* AI Guide Classic Theme
 * Dark gradients, rich colors, classic AI guide styling
 * Used for 07012025 and 09012025 guides
 */

/* Theme-specific color overrides */
body.theme-aiguide-classic:not(.variant-fire-gradient):not(.variant-fire-parallax):not(.variant-fire-intense):not(.variant-fire-particles) {
  background: linear-gradient(135deg, #0a0f18 0%, #1a1f2e 50%, #0f1419 100%);
  background-attachment: fixed;
}

.theme-aiguide-classic .main-content {
  background: rgba(16, 23, 31, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(110, 168, 254, 0.15);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* Enhanced gradient text for classic theme */
.theme-aiguide-classic .gradient {
  background: linear-gradient(90deg, #6ea8fe 0%, #a78bfa 50%, #f6c76c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  letter-spacing: -0.02em;
}

/* Classic header styling */
.theme-aiguide-classic header {
  background: rgba(16, 23, 31, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 2px solid rgba(110, 168, 254, 0.2);
}

.theme-aiguide-classic .brand {
  background: linear-gradient(90deg, #6ea8fe 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Classic info boxes with gradient accents */
.theme-aiguide-classic .info-box {
  background: linear-gradient(135deg, rgba(16, 23, 31, 0.9) 0%, rgba(17, 26, 36, 0.95) 100%);
  border-left: 4px solid transparent;
  border-image: linear-gradient(180deg, #6ea8fe 0%, #a78bfa 100%);
  border-image-slice: 1;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Classic model cards */
.theme-aiguide-classic .model-card {
  background: linear-gradient(135deg, rgba(17, 26, 36, 0.9) 0%, rgba(16, 23, 31, 0.95) 100%);
  border: 1px solid rgba(110, 168, 254, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.theme-aiguide-classic .model-card:hover {
  border-color: rgba(110, 168, 254, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* Classic buttons with gradient */
.theme-aiguide-classic .btn.primary,
.theme-aiguide-classic button.primary {
  background: linear-gradient(90deg, #6ea8fe 0%, #a78bfa 100%);
  color: #0a0f18;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px rgba(110, 168, 254, 0.3);
}

.theme-aiguide-classic .btn.primary:hover,
.theme-aiguide-classic button.primary:hover {
  box-shadow: 0 6px 16px rgba(110, 168, 254, 0.4);
  transform: translateY(-2px);
}

/* Classic navigation */
.theme-aiguide-classic .nav-container {
  background: rgba(16, 23, 31, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(110, 168, 254, 0.15);
  border-radius: 12px;
  padding: 16px;
}

.theme-aiguide-classic .nav-button,
.theme-aiguide-classic .nav-link {
  background: rgba(17, 26, 36, 0.8);
  border: 1px solid rgba(110, 168, 254, 0.2);
  transition: all 0.3s ease;
}

.theme-aiguide-classic .nav-button:hover,
.theme-aiguide-classic .nav-link:hover {
  background: rgba(110, 168, 254, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(110, 168, 254, 0.2);
}

/* Classic accordions with gradient */
.theme-aiguide-classic .accordion {
  background: linear-gradient(135deg, rgba(17, 26, 36, 0.8) 0%, rgba(16, 23, 31, 0.9) 100%);
  border: 1px solid rgba(110, 168, 254, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.theme-aiguide-classic .accordion-header {
  background: rgba(16, 23, 31, 0.6);
}

.theme-aiguide-classic .accordion-header:hover {
  background: rgba(110, 168, 254, 0.05);
  border-bottom-color: rgba(110, 168, 254, 0.3);
}

.theme-aiguide-classic .accordion.active .accordion-header {
  border-bottom: 1px solid rgba(110, 168, 254, 0.3);
}

/* Classic code blocks */
.theme-aiguide-classic pre {
  background: rgba(11, 15, 20, 0.9);
  border: 1px solid rgba(110, 168, 254, 0.15);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
}

.theme-aiguide-classic code {
  background: rgba(11, 15, 20, 0.8);
  border: 1px solid rgba(110, 168, 254, 0.1);
}

/* Classic email form */
.theme-aiguide-classic .email-collect-form {
  background: linear-gradient(135deg, rgba(16, 23, 31, 0.9) 0%, rgba(17, 26, 36, 0.95) 100%);
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #6ea8fe 0%, #a78bfa 100%);
  border-image-slice: 1;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.theme-aiguide-classic .email-collect-input {
  background: rgba(11, 15, 20, 0.8);
  border: 1px solid rgba(110, 168, 254, 0.2);
}

.theme-aiguide-classic .email-collect-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.15);
}

/* Classic share section */
.theme-aiguide-classic .share-section {
  background: linear-gradient(135deg, rgba(17, 26, 36, 0.8) 0%, rgba(16, 23, 31, 0.9) 100%);
  border: 1px solid rgba(110, 168, 254, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Classic footer */
.theme-aiguide-classic footer {
  background: rgba(16, 23, 31, 0.6);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(110, 168, 254, 0.2);
}

/* Classic animated border with enhanced glow */
.theme-aiguide-classic .animated-border-box {
  background: linear-gradient(135deg, rgba(17, 26, 36, 0.9) 0%, rgba(16, 23, 31, 0.95) 100%);
  border: 2px solid var(--accent);
  box-shadow: 0 0 20px rgba(110, 168, 254, 0.3);
  animation: pulse-border-classic 3s ease-in-out infinite;
}

@keyframes pulse-border-classic {
  0%, 100% {
    border-color: #6ea8fe;
    box-shadow: 0 0 20px rgba(110, 168, 254, 0.3);
  }
  50% {
    border-color: #a78bfa;
    box-shadow: 0 0 30px rgba(167, 139, 250, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-aiguide-classic .animated-border-box {
    animation: none;
    box-shadow: 0 0 20px rgba(110, 168, 254, 0.3);
  }
}

/* Classic link styling with gradient hover */
.theme-aiguide-classic a:hover {
  background: linear-gradient(90deg, #6ea8fe 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Classic list styling */
.theme-aiguide-classic ul.linklist li {
  background: rgba(17, 26, 36, 0.5);
  border: 1px solid rgba(110, 168, 254, 0.1);
  transition: all 0.3s ease;
}

.theme-aiguide-classic ul.linklist li:hover {
  background: rgba(110, 168, 254, 0.08);
  border-color: rgba(110, 168, 254, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Classic headings with subtle gradient */
.theme-aiguide-classic h1,
.theme-aiguide-classic h2 {
  background: linear-gradient(90deg, #e6edf3 0%, #c9d1d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Classic scrollbar (webkit browsers) */
.theme-aiguide-classic ::-webkit-scrollbar {
  width: 12px;
}

.theme-aiguide-classic ::-webkit-scrollbar-track {
  background: rgba(11, 15, 20, 0.5);
}

.theme-aiguide-classic ::-webkit-scrollbar-thumb {
  background: rgba(110, 168, 254, 0.3);
  border-radius: 6px;
}

.theme-aiguide-classic ::-webkit-scrollbar-thumb:hover {
  background: rgba(110, 168, 254, 0.5);
}

/* Classic selection styling */
.theme-aiguide-classic ::selection {
  background: rgba(110, 168, 254, 0.3);
  color: #e6edf3;
}

.theme-aiguide-classic ::-moz-selection {
  background: rgba(110, 168, 254, 0.3);
  color: #e6edf3;
}

/* --- AIGuide index: orange hero + rainbow links --- */

.theme-aiguide-classic .hero {
  margin: 1.75rem auto 2.25rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff6600 0%, #ff8833 45%, #ffcb4d 100%);
  color: #0a0f18;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.theme-aiguide-classic .hero-inner .lead {
  color: #0a0f18;
}

.theme-aiguide-classic .hn-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 15, 24, 0.12);
  font-size: 0.9rem;
}

.theme-aiguide-classic .hn-badge {
  background: #ff6600;
  color: #0a0f18;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-weight: 700;
  font-size: 0.75rem;
}

.theme-aiguide-classic .hn-flag a {
  color: #0a0f18;
  text-decoration: underline;
}

/* Rainbow guide links using per-link --link-hue from JS */
.theme-aiguide-classic .guide-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-weight: 700;
  text-decoration: none;
  color: hsl(var(--link-hue, 30), 80%, 60%);
}

.theme-aiguide-classic .guide-link:hover,
.theme-aiguide-classic .guide-link:focus-visible {
  text-decoration: underline;
  color: hsl(var(--link-hue, 30), 90%, 70%);
}

@media (max-width: 720px) {
  .theme-aiguide-classic .hero {
    padding: 1.25rem 1.1rem 1.1rem;
    margin: 1.25rem auto 1.75rem;
  }

  .theme-aiguide-classic .two-column-layout {
    display: block;
  }

  .theme-aiguide-classic .two-column-layout > div {
    margin-bottom: 1rem;
  }
}

/* --- Variant 2: Fire Gradient Animation --- */
body.variant-fire-gradient {
  background: linear-gradient(-45deg, #1a0500, #3a1500, #5a1a00, #1a0500) !important;
  background-size: 400% 400% !important;
  background-attachment: scroll !important;
  animation: fireGradient 8s ease infinite !important;
}

@keyframes fireGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

body.variant-fire-gradient .hero {
  background: rgba(10, 15, 24, 0.6) !important;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 102, 0, 0.3);
}

/* --- Variant 3: Parallax Fireballs --- */
body.variant-fire-parallax {
  background: #050505 !important; /* Override base theme gradient */
  background-attachment: scroll !important;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

body.variant-fire-parallax::before,
body.variant-fire-parallax::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  will-change: transform, opacity;
}

body.variant-fire-parallax::before {
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 60, 0, 0.15) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255, 100, 0, 0.1) 0%, transparent 25%);
  animation: floatFire 20s ease-in-out infinite alternate !important;
}

body.variant-fire-parallax::after {
  background-image: 
    radial-gradient(circle at 50% 50%, rgba(255, 140, 0, 0.08) 0%, transparent 40%);
  animation: pulseFire 8s ease-in-out infinite !important;
}

@keyframes floatFire {
  0% { transform: translate(0, 0); }
  100% { transform: translate(40px, -40px); }
}

@keyframes pulseFire {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* --- Variant 4: Intense Fire Glow --- */
body.variant-fire-intense {
  background: #0a0500 !important;
  background-attachment: scroll !important;
}

body.variant-fire-intense .hero {
  background: linear-gradient(to bottom, #ff4500, #ff8c00) !important;
  box-shadow: 0 0 50px rgba(255, 69, 0, 0.6);
  border: none;
}

body.variant-fire-intense .hero h1 {
  color: #000 !important;
  text-shadow: none;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
}

body.variant-fire-intense .hero .lead {
  color: #2a0a00;
  font-weight: 600;
}

/* --- Variant 5: Fire Particles (Simulated) --- */
body.variant-fire-particles {
  background-color: #000 !important;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #ff4500, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 40px 70px, #ff8c00, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 50px 160px, #ff4500, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 90px 40px, #ff8c00, rgba(0,0,0,0)),
    radial-gradient(2px 2px at 130px 80px, #ff4500, rgba(0,0,0,0)) !important;
  background-repeat: repeat !important;
  background-size: 200px 200px !important;
  background-attachment: scroll !important;
  animation: riseParticles 4s linear infinite !important;
  will-change: background-position;
}

@keyframes riseParticles {
  0% { background-position: 0 0; }
  100% { background-position: 0 -200px; }
}
