/* ===============================================
   MOLOKSHER LAB HOME PAGE - CLINICAL FUTURISM DESIGN
   =============================================== */

/* Force override all potential Ghost theme body/html background interference */
body.home-template,
body:has(.adb),
html.home-template,
html:has(.adb) {
  background: var(--death-black) !important;
  background-color: var(--death-black) !important;
  background-image: none !important;
}

/* Reset any Ghost theme background conflicts */
.home-template,
.adb,
body:has(.adb),
.site-wrapper:has(.adb),
.site-main:has(.adb),
.content:has(.adb),
main.adb {
  background: var(--death-black) !important;
  background-color: var(--death-black) !important;
  background-image: none !important;
}

/* Main home page styling with Moloksher Lab aesthetic */
.adb {
  background: var(--death-black) !important;
  min-height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  position: relative;
}

/* Container */
.adb .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ============================
   HERO SECTION
   ============================ */
.hero-section {
  padding: 120px 0 80px;
  text-align: center;
  background: var(--death-black);
  position: relative;
  overflow: hidden;
}

/* Subtle gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, var(--death-black) 0%, var(--death-black-tertiary) 50%, var(--death-black) 100%);
  z-index: 0;
}

/* Red accent glow */
.hero-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(216, 35, 42, 0.08) 0%, transparent 70%);
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--death-text);
  font-family: var(--font-headings);
  letter-spacing: 0.02em;
}

/* Moloksher Lab gradient text effect */
.gradient-text {
  background: linear-gradient(135deg, var(--death-chrome-light), var(--death-red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: var(--death-text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.5;
}

.hero-cta {
  margin-top: 2rem;
}

.protocol-btn {
  background: var(--death-red) !important;
  color: var(--death-black) !important;
  border: 1px solid var(--death-red) !important;
  padding: 16px 32px !important;
  font-family: var(--font-headings) !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  border-radius: var(--radius) !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 16px rgba(216,35,42,0.3) !important;
}

.protocol-btn:hover {
  background: var(--death-red-hover) !important;
  color: var(--death-black) !important;
  box-shadow: 0 6px 24px rgba(216,35,42,0.4), 0 0 30px rgba(216,35,42,0.2) !important;
  transform: translateY(-2px) !important;
  border-bottom: none !important;
}

/* ============================
   FEATURED SECTION
   ============================ */
.featured-section {
  padding: 80px 0;
  background: var(--death-black-secondary);
  border-top: 1px solid var(--death-border);
  border-bottom: 1px solid var(--death-border);
}

.section-label {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--death-text-muted);
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: var(--death-border);
}

.section-label::before {
  left: -80px;
}

.section-label::after {
  right: -80px;
}

.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Featured Main Article */
.featured-main {
  position: relative;
}

.featured-card {
  display: block;
  background: var(--death-black);
  border: 1px solid var(--death-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.8);
}

.featured-card:hover {
  border-color: var(--death-chrome);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2), 0 12px 48px rgba(0,0,0,0.9);
  transform: translateY(-4px);
}

.featured-image {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  filter: grayscale(100%) contrast(1.2);
  transition: all 0.3s ease;
}

.featured-card:hover .featured-image {
  filter: grayscale(80%) contrast(1.1);
}

/* Red accent overlay */
.featured-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(216,35,42,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.featured-card:hover .featured-image::after {
  opacity: 1;
}

.default-featured {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--death-black-tertiary);
  border-bottom: 1px solid var(--death-border);
}

.brain-icon {
  font-size: 4rem;
  filter: grayscale(100%);
  opacity: 0.6;
}

.featured-content {
  padding: 2rem;
}

.featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.category {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--death-red);
  padding: 4px 8px;
  background: rgba(216,35,42,0.1);
  border: 1px solid rgba(216,35,42,0.3);
  border-radius: var(--radius);
}

.date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--death-text-muted);
  letter-spacing: 0.05em;
}

.featured-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--death-text);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.featured-content p {
  color: var(--death-text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* Featured Side Section */
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.vendors-card {
  background: var(--death-black);
  border: 1px solid var(--death-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.8);
  transition: all 0.3s ease;
}

.vendors-card:hover {
  border-color: var(--death-chrome);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 12px 48px rgba(0,0,0,0.9);
}

.vendors-content h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--death-text);
  margin-bottom: 1rem;
  font-family: var(--font-headings);
}

.vendors-content p {
  color: var(--death-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.vendors-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vendors-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--death-text-secondary);
  font-size: 0.875rem;
}

.vendors-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--death-red);
  font-weight: bold;
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-label::before,
  .section-label::after {
    display: none;
  }

  .featured-image {
    height: 200px;
  }

  .featured-content {
    padding: 1.5rem;
  }

  .vendors-card {
    padding: 1.5rem;
  }
}

/* Moloksher Lab specific accent animations */
.hero-section .death-pulse-accent {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 2px;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--death-red), transparent);
  animation: deathPulse 3s ease-in-out infinite;
  opacity: 0.6;
}

.featured-section .death-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--death-red), transparent);
  animation: scanline 5s linear infinite;
}

/* Hover states for interactivity */
.featured-card:hover .featured-content h3 {
  color: var(--death-chrome-light);
  transition: color 0.3s ease;
}

.vendors-card:hover .vendors-content h4 {
  color: var(--death-chrome-light);
  transition: color 0.3s ease;
}
/* ============================
   FIRE TEXT ANIMATION
   ============================ */
.fire-text {

/* ============================
   FIRE TEXT ANIMATION - SUBTLE & MODERN
   ============================ */
.fire-text {
  display: inline-block;
  background: linear-gradient(180deg, #ff3333 0%, #ff6633 40%, #ff9933 70%, #ff6633 100%);
  background-size: 100% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: subtleFire 4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(255, 80, 40, 0.3)) 
          drop-shadow(0 0 15px rgba(255, 60, 30, 0.15));
  position: relative;
}

@keyframes subtleFire {
  0%, 100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
}

/* ==== Moloksher Lab: SMARTER cryo-flame (homepage only) ==== */
.home-template .die-once {
  position: relative;
  display: inline-block;
  font-family: Rajdhani, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: clamp(60px, 10vw, 180px);
  background: linear-gradient(180deg, #dff8ff 0%, #6fe4ff 40%, #a7f4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 18px rgba(111,228,255,.25),
    0 0 40px rgba(111,228,255,.12);
  filter: url(#cyanFlame);
  animation: icePulse 8s ease-in-out infinite;
  padding-bottom: 0.15em;
}

/* Frost Underline Effect - Enhanced for Smarter */
.home-template .die-once::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(111,228,255,0.5) 5%,
    rgba(191,239,252,0.95) 15%,
    rgba(111,228,255,0.9) 25%,
    rgba(191,239,252,1) 35%,
    rgba(111,228,255,0.9) 45%,
    rgba(191,239,252,1) 55%,
    rgba(111,228,255,0.9) 65%,
    rgba(191,239,252,0.95) 75%,
    rgba(111,228,255,0.7) 85%,
    rgba(191,239,252,0.8) 95%,
    transparent 100%);
  box-shadow:
    0 0 15px rgba(111,228,255,0.8),
    0 3px 20px rgba(111,228,255,0.5),
    0 0 30px rgba(191,239,252,0.4),
    inset 0 1px 3px rgba(191,239,252,0.9);
  filter: blur(0.3px);
  animation: frostShimmer 4s ease-in-out infinite;
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}

/* Enhanced underline effect for "Smarter" */
.home-template .smart-underline::before {
  height: 7px;
  background: linear-gradient(90deg,
    rgba(111,228,255,0.3) 0%,
    rgba(191,239,252,1) 20%,
    rgba(111,228,255,1) 40%,
    rgba(191,239,252,1) 60%,
    rgba(111,228,255,1) 80%,
    rgba(191,239,252,0.3) 100%);
  box-shadow:
    0 0 20px rgba(111,228,255,1),
    0 4px 25px rgba(111,228,255,0.6),
    0 0 35px rgba(191,239,252,0.5),
    inset 0 1px 4px rgba(191,239,252,1),
    inset 0 -1px 4px rgba(111,228,255,0.8);
  filter: blur(0.2px);
}

.home-template .die-once::after {
  content: '';
  position: absolute;
  inset: -10% -6% -35% -6%;
  background:
    radial-gradient(60% 35% at 50% 10%, rgba(111,228,255,.15), rgba(111,228,255,0) 70%),
    radial-gradient(50% 25% at 60% 0%, rgba(111,228,255,.1), rgba(111,228,255,0) 65%);
  mix-blend-mode: screen;
  filter: blur(10px);
  animation: vapor 7s ease-in-out infinite;
  z-index: -1;
}

@keyframes icePulse {
  0%,100% { text-shadow: 0 0 18px rgba(111,228,255,.25), 0 0 40px rgba(111,228,255,.12); }
  50%     { text-shadow: 0 0 24px rgba(111,228,255,.35), 0 0 60px rgba(111,228,255,.18); }
}

@keyframes vapor {
  0%,100% { transform: translateY(0); opacity:.9; }
  50%     { transform: translateY(-6px); opacity:.8; }
}

@keyframes frostShimmer {
  0%, 100% {
    opacity: 0.7;
    background-position: 0% 50%;
  }
  25% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.8;
    background-position: 100% 50%;
  }
  75% {
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .die-once, .die-once::before, .die-once::after { animation: none !important; }
}

/* ==== BUTTON TEXT CONTRAST FIX - NUCLEAR OVERRIDE ==== */
.hero-cta .deathlab-btn-secondary {
  background: transparent !important;
  border: 1px solid rgba(111,228,255,0.4) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.hero-cta .deathlab-btn-secondary:hover {
  background: var(--death-red) !important;
  background: #6FE4FF !important;
  border-color: #6FE4FF !important;
  color: #000000 !important;
  text-decoration: none !important;
}

.hero-cta .deathlab-btn-primary {
  background: linear-gradient(135deg, #6FE4FF, #BFEFFC) !important;
  border: 1px solid #6FE4FF !important;
  color: #000000 !important;
  text-decoration: none !important;
}

.hero-cta .deathlab-btn-primary:hover {
  background: linear-gradient(135deg, #BFEFFC, #6FE4FF) !important;
  color: #000000 !important;
  text-decoration: none !important;
}
