/*
 * bx-theme-v2-no2 — White & Red gradient theme
 * Clean white base with red gradient accents (inspired by index page)
 */

/* ── CSS VARIABLES ── */
:root {
  /* Core backgrounds — white / light pink */
  --theme-bg-deep:     #f8cfd6;                        /* deepest light bg */
  --theme-bg-main:     #faf5f6;                        /* main page bg */
  --theme-bg-card:     rgba(255, 255, 255, 0.97);      /* glass card — white */
  --theme-bg-elevated: rgba(255, 248, 249, 0.96);      /* elevated surface */
  --theme-bg-input:    rgba(255, 255, 255, 0.92);      /* input field */

  /* Primary accent — Red */
  --theme-gold:        #c41230;               /* primary red */
  --theme-gold-bright: #e82340;               /* bright red */
  --theme-gold-shine:  #f8cfd6;               /* pale pink / rose */
  --theme-gold-dim:    rgba(196, 18, 48, 0.10);
  --theme-gold-border: rgba(196, 18, 48, 0.38);
  --theme-gold-glow:   rgba(196, 18, 48, 0.22);

  /* Secondary accent — Deep crimson */
  --theme-cyan:        #8b0000;               /* deep crimson */
  --theme-cyan-bright: #b00020;               /* bright crimson */
  --theme-cyan-dim:    rgba(139, 0, 0, 0.07);
  --theme-cyan-border: rgba(139, 0, 0, 0.22);
  --theme-cyan-glow:   rgba(139, 0, 0, 0.18);

  /* Neutral surface tone */
  --theme-blue:        #fce4e8;               /* light pink surface */
  --theme-blue-hover:  #f9c0c8;               /* hover pink */

  /* Status */
  --theme-red:         #ef4444;
  --theme-red-subtle:  rgba(239, 68, 68, 0.10);

  /* Text — dark on light */
  --theme-text-primary:   #2d2d3a;
  --theme-text-secondary: #6b6b7d;
  --theme-text-muted:     rgba(45, 45, 58, 0.38);
  --theme-text-white:     #ffffff;            /* text on colored buttons */

  /* Borders */
  --theme-border-subtle: rgba(0, 0, 0, 0.07);
  --theme-border-mid:    rgba(0, 0, 0, 0.13);

  /* UI tokens */
  --theme-radius:     14px;
  --theme-radius-sm:  8px;
  --theme-radius-lg:  20px;
  --theme-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --theme-font:       'Kanit', 'Sarabun', sans-serif;
}

html {
  scroll-behavior: auto;
  font-family: 'Kanit', sans-serif;
}

/* ── BODY ── */
body {
  background: linear-gradient(160deg, #fff0f2 0%, #faf5f6 50%, #ffffff 100%);
  background-attachment: fixed;
  color: var(--theme-text-primary);
  font-family: var(--theme-font);
}

/* ── AMBIENT GLOW OVERLAY ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%,   rgba(196, 18, 48, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%,   rgba(196, 18, 48, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 100%,  rgba(139, 0, 0, 0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── GLOBAL CARD STYLE ── */
.theme-card {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border-subtle);
  border-radius: var(--theme-radius);
  backdrop-filter: blur(20px) saturate(110%);
  -webkit-backdrop-filter: blur(20px) saturate(110%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  transition: var(--theme-transition);
}
.theme-card:hover {
  border-color: var(--theme-gold-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 24px var(--theme-gold-glow);
}

/* ── RED DIVIDER ── */
.theme-divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--theme-gold-border) 30%, var(--theme-gold-bright) 50%, var(--theme-gold-border) 70%, transparent 100%);
  border: none;
  margin: 0;
}

/* ── BUTTONS ── */
.theme-btn-gold {
  background: linear-gradient(135deg, #a01028 0%, #e82340 50%, #a01028 100%);
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: 50px;
  font-family: var(--theme-font);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--theme-transition);
  box-shadow: 0 4px 18px var(--theme-gold-glow), 0 1px 0 rgba(255, 255, 255, 0.15) inset;
  letter-spacing: 0.03em;
}
.theme-btn-gold:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px var(--theme-gold-glow), 0 0 16px var(--theme-gold-glow);
}

.theme-btn-cyan {
  background: linear-gradient(135deg, #6b0000, #a01028);
  color: #ffffff;
  border: none;
  padding: 8px 22px;
  border-radius: 50px;
  font-family: var(--theme-font);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--theme-transition);
  box-shadow: 0 4px 18px var(--theme-cyan-glow);
}
.theme-btn-cyan:hover {
  box-shadow: 0 6px 26px var(--theme-cyan-glow);
  filter: brightness(1.08);
}

.theme-btn-outline {
  background: rgba(0, 0, 0, 0.04);
  color: var(--theme-text-secondary);
  border: 1px solid var(--theme-border-mid);
  padding: 7px 18px;
  border-radius: 50px;
  font-family: var(--theme-font);
  font-size: 0.80rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--theme-transition);
}
.theme-btn-outline:hover {
  border-color: var(--theme-gold-border);
  color: var(--theme-gold);
  background: rgba(196, 18, 48, 0.08);
}

/* ── BADGE ── */
.theme-badge-hot {
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.theme-badge-new {
  background: linear-gradient(135deg, #c41230, #e82340);
  color: #ffffff;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.theme-badge-live {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  color: var(--theme-gold);
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 50px;
  border: 1px solid var(--theme-gold-border);
  letter-spacing: 0.05em;
}

/* ── SPINNER ── */
.theme-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(196, 18, 48, 0.15);
  border-top-color: var(--theme-gold-bright);
  border-radius: 50%;
  animation: theme-spin 0.85s linear infinite;
  flex-shrink: 0;
}
@keyframes theme-spin { to { transform: rotate(360deg); } }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.04); }
::-webkit-scrollbar-thumb { background: rgba(196, 18, 48, 0.30); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--theme-gold-bright); }

/* ── UTILITY ── */
.text-gold     { color: var(--theme-gold); }
.text-cyan     { color: var(--theme-cyan); }
.text-dim      { color: var(--theme-text-secondary); }
.text-muted    { color: var(--theme-text-muted); }
.bg-card       { background: var(--theme-bg-card); }
.border-gold   { border-color: var(--theme-gold-border) !important; }
.border-subtle { border-color: var(--theme-border-subtle) !important; }
.glow-gold     { box-shadow: 0 0 18px var(--theme-gold-glow); }
.glow-cyan     { box-shadow: 0 0 16px var(--theme-cyan-glow); }

/* ── TEXT ELEMENT DEFAULTS — dark text on light theme ── */
p   { color: var(--theme-text-secondary); }
li  { color: var(--theme-text-secondary); }
h1, h2, h3, h4, h5, h6 { color: var(--theme-text-primary); }
/* a:not(.btn):not([class*="text-"]):not([class*="nav-"]):not([class*="cn-"]):not([class*="sp-"]) {
  color: var(--theme-gold);
} */
a:not(.btn):not([class*="text-"]):not([class*="nav-"]):not([class*="cn-"]):not([class*="sp-"]):hover {
  /* color: var(--theme-gold-bright); */
  text-decoration: none;
}
