/*
 * FolaTweaks Red / Black / White Theme
 * Full red accent layer with embedded Fola Utility showcase.
 */

:root {
  --cl-accent: 255, 31, 31 !important;
  --cl-background: 0, 0, 0 !important;
  --cl-card: 8, 8, 8 !important;
  --cl-t-primary: 255, 255, 255 !important;
  --cl-t-accent: 255, 255, 255 !important;
  --cl-snow: 255, 31, 31 !important;

  --fola-red: 255, 31, 31;
  --fola-red-dark: 125, 0, 0;
  --fola-white: 255, 255, 255;
  --fola-soft: 184, 184, 184;
  --fola-bg: #000000;
  --fola-card: #070707;
  --fola-card-2: #0d0d0d;
}

html, body {
  background: #000 !important;
  color: #fff !important;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#app { position: relative; z-index: 1; filter: none !important; }
img, svg, video, canvas, .choices, .splide, #snow { filter: none !important; }

/* Typography */
h1, h2, h3, h4, .font-bold, .font-semibold {
  font-family: 'Chakra Petch', 'Play', system-ui, sans-serif !important;
  letter-spacing: 0.01em;
}

/* Red / black atmospheric background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(70rem 42rem at 50% -10%, rgba(255,31,31,0.22), transparent 60%),
    radial-gradient(46rem 38rem at 0% 100%, rgba(255,255,255,0.05), transparent 58%),
    radial-gradient(42rem 34rem at 100% 100%, rgba(255,31,31,0.09), transparent 58%),
    #000;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.30;
  background-image:
    linear-gradient(rgba(255,31,31,0.050) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 76%);
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 76%);
}

#fola-constellation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .82;
}

/* Global card + border feel */
[class*="bg-card"], .bg-card, .border, .rounded-lg, .rounded-xl, .rounded-2xl {
  border-color: rgba(255,31,31,0.16) !important;
}

[class*="bg-card"], .bg-card {
  background: linear-gradient(180deg, rgba(255,31,31,0.055), rgba(255,255,255,0.018)) !important;
  box-shadow: 0 18px 60px -40px rgba(255,31,31,.55);
}

[class*="bg-card"]:hover, .bg-card:hover {
  border-color: rgba(255,31,31,0.45) !important;
  box-shadow: 0 22px 70px -38px rgba(255,31,31,.75);
  transform: translateY(-3px);
}

/* Hard override every accent utility to red / black / white. */
.text-accent-500, .text-accent-400, .text-accent-600, .text-t-accent,
.hover\:text-accent-500:hover, .hover\:text-accent-600:hover, .hover\:text-accent:hover,
.group:hover .group-hover\:text-accent-500 {
  color: #ff1f1f !important;
  -webkit-text-fill-color: #ff1f1f !important;
  background: none !important;
}

.bg-accent-500, .bg-accent-600, .bg-accent-700, .bg-accent-800,
.hover\:bg-accent-600:hover, .hover\:bg-accent-500\/50:hover,
.bg-accent-500\/10, .bg-accent-500\/5, .bg-accent-500\/15,
.hover\:bg-accent-500\/10:hover {
  background-color: rgba(255,31,31,0.16) !important;
}

.bg-accent-500:not([class*="/10"]):not([class*="/5"]):not([class*="/15"]),
button.bg-accent-500, a.bg-accent-500 {
  background: linear-gradient(180deg, #ff3333, #a80000) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.border-accent-500, .border-accent-600, .border-accent-700, .border-accent-800,
.border-accent-500\/10, .border-accent-500\/20, .border-accent-500\/30, .border-accent-500\/40 {
  border-color: rgba(255,31,31,0.42) !important;
}

.ring-accent-500, .focus\:ring-accent-500:focus, .focus-within\:ring-accent-500:focus-within {
  --tw-ring-color: rgba(255,31,31,.58) !important;
}

.focus\:border-accent-500:focus, .focus-within\:border-accent-500:focus-within {
  border-color: rgba(255,31,31,.70) !important;
}

/* Buttons: red, black, white. */
a[class*="bg-accent"], button[class*="bg-accent"],
a[class*="border-accent"], button[class*="border-accent"] {
  border-radius: 10px !important;
  border: 1px solid rgba(255,31,31,0.62) !important;
  background: linear-gradient(180deg, #ff3030, #9b0000) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 28px rgba(255,31,31,.30), inset 0 1px 0 rgba(255,255,255,.30) !important;
  transition: transform .16s ease, box-shadow .22s ease, filter .22s ease !important;
}

a[class*="bg-accent"] i, button[class*="bg-accent"] i,
a[class*="border-accent"] i, button[class*="border-accent"] i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

a[class*="bg-accent"]:hover, button[class*="bg-accent"]:hover,
a[class*="border-accent"]:hover, button[class*="border-accent"]:hover {
  transform: translateY(-2px);
  filter: brightness(1.07) !important;
  box-shadow: 0 0 38px rgba(255,31,31,.48), inset 0 1px 0 rgba(255,255,255,.42) !important;
}

/* Keep plain white buttons readable when the base theme uses text-accent on white. */
a.bg-white, button.bg-white, .bg-white {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

::selection { background: #ff1f1f; color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: rgba(255,31,31,.55); border-radius: 999px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,31,31,.78); }

/* Navbar/footer brand mark */
.fola-brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff3333, #540000) !important;
  color: #fff !important;
  border: 1px solid rgba(255,31,31,.78);
  box-shadow: 0 0 24px rgba(255,31,31,.32);
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 18px;
}

nav a:not([class*="bg-accent"]):not([class*="border-accent"])::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  margin-top: 2px;
  background: linear-gradient(90deg, #ff1f1f, #fff);
  transition: width .25s ease;
  border-radius: 2px;
}
nav a:not([class*="bg-accent"]):not([class*="border-accent"]):hover::after { width: 100%; }

/* Feature showcase section: real utility screenshot embedded inside the right mockup. */
.fola-showcase-mono {
  position: relative;
  z-index: 2;
  padding: 28px 0 64px;
}

.fola-showcase-wrap {
  width: 100%;
}

.fola-showcase-head {
  text-align: center;
  margin: 0 auto 54px;
  max-width: 900px;
}

.fola-showcase-head h2 {
  color: #fff;
  font-family: 'Chakra Petch', 'Play', system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.04;
  font-weight: 700;
  text-wrap: balance;
  text-shadow: 0 0 28px rgba(255,31,31,.28);
}

.fola-showcase-head p {
  margin-top: 18px;
  color: rgba(255,255,255,.70);
  font-size: clamp(.95rem, 1.25vw, 1.12rem);
}

.fola-showcase-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(520px, 1.42fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
  padding: clamp(34px, 4vw, 58px);
  min-height: 520px;
  border: 1px solid rgba(255,31,31,.38);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(80rem 36rem at 72% 35%, rgba(255,31,31,.12), transparent 62%),
    linear-gradient(135deg, rgba(255,31,31,.075), rgba(255,255,255,.014) 54%, rgba(255,31,31,.045));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.035) inset,
    0 0 86px -38px rgba(255,31,31,.78);
}

.fola-showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,31,31,.14) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 96px 96px;
  opacity: .16;
  mask-image: radial-gradient(circle at 70% 45%, black, transparent 75%);
}

.fola-feature-column {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.fola-feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
}

.fola-feature-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,31,31,.20), rgba(255,31,31,.045));
  border: 1px solid rgba(255,31,31,.62);
  box-shadow: 0 0 30px rgba(255,31,31,.25);
  font-size: 24px;
}

.fola-feature-copy h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  line-height: 1.18;
  font-weight: 700;
}

.fola-feature-copy p {
  margin: 0;
  color: rgba(255,255,255,.70);
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  line-height: 1.65;
  max-width: 42ch;
}

.fola-showcase-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.fola-showcase-actions a {
  padding: 16px 28px !important;
  min-width: 190px;
  justify-content: center;
  font-size: .95rem !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.fola-utility-preview {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,31,31,.56);
  background: #030303;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 28px 90px -44px rgba(255,31,31,.70),
    0 0 46px rgba(255,31,31,.18);
}

.fola-utility-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 56px rgba(255,31,31,.09);
  z-index: 2;
}

.fola-utility-screen {
  position: relative;
  padding: 0;
  background: #000;
}

.fola-utility-img {
  display: block;
  width: 100%;
  height: auto;
  filter: contrast(1.08) brightness(.96) saturate(1.10) !important;
  transform: translateZ(0);
}

@media (max-width: 1024px) {
  .fola-showcase-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .fola-utility-preview { order: -1; }
}

@media (max-width: 640px) {
  .fola-showcase-card {
    padding: 24px;
    border-radius: 22px;
  }
  .fola-feature-row {
    grid-template-columns: 52px 1fr;
    gap: 16px;
  }
  .fola-feature-icon {
    width: 52px;
    height: 52px;
    font-size: 20px;
  }
  .fola-showcase-actions a { width: 100%; }
}
