/* Hebat303 IpohSakuraHotel.com — Varian D + Esports UI */

:root {
  --bg-deep: #1a0505;
  --bg-mid: #4a0000;
  --bg-panel: #2d0808;
  --red: #ed1c24;
  --red-dark: #b71c1c;
  --orange: #f7941d;
  --orange-deep: #ff6b00;
  --gold: #ffcc00;
  --gold-bright: #ffd700;
  --purple: #662d91;
  --text: #fff8f0;
  --muted: #e8b4a0;
  --stripe: linear-gradient(135deg, var(--red) 0%, var(--orange) 50%, var(--gold) 100%);
  --side-w: 220px;
  --container: 960px;
  --clip-diag: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(237, 28, 36, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 90% 70%, rgba(247, 148, 29, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 5% 85%, rgba(255, 204, 0, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
}

.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ico {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  color: currentColor;
}

.ico--sm { width: 1em; height: 1em; }
.ico--lg { width: 1.35rem; height: 1.35rem; }
.ico--btn { width: 0.95em; height: 0.95em; }

/* Esports panel */
.esport-panel {
  background: var(--bg-panel);
  border: 2px solid rgba(237, 28, 36, 0.45);
  clip-path: var(--clip-diag);
  position: relative;
}

.esport-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--stripe);
}

/* App shell — variant D */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.side-nav {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: var(--side-w);
  padding: 1.25rem 0;
  background: rgba(26, 5, 5, 0.97);
  border-right: 3px solid var(--red);
  position: sticky;
  top: 0;
  height: 100vh;
}

.side-nav::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(237, 28, 36, 0.15) 100%);
  pointer-events: none;
}

.side-brand {
  padding: 0 1rem 1rem;
  border-bottom: 2px solid rgba(255, 204, 0, 0.2);
  margin-bottom: 0.5rem;
}

.side-brand img {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.side-menu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0.65rem;
  flex: 1;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.side-link:hover,
.side-link.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(237, 28, 36, 0.12);
}

.side-cta {
  padding: 1rem 0.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.main-wrap { flex: 1; min-width: 0; }

/* Mobile top bar */
.mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: rgba(26, 5, 5, 0.95);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 400;
}

.mobile-bar img {
  height: 28px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--bg-panel);
  border: 2px solid var(--red);
  color: var(--gold);
  cursor: pointer;
}

.menu-toggle .ico-close { display: none; }
.menu-toggle.is-open .ico-menu { display: none; }
.menu-toggle.is-open .ico-close { display: block; }

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 52px 0 auto 0;
  z-index: 350;
  background: rgba(26, 5, 5, 0.98);
  border-bottom: 3px solid var(--orange);
  padding: 1rem;
}

.mobile-drawer.is-open { display: block; }

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text);
  border-left: 3px solid var(--red);
  background: rgba(45, 8, 8, 0.8);
}

@media (min-width: 900px) {
  .mobile-bar,
  .mobile-drawer,
  .menu-toggle { display: none !important; }
  .side-nav { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  border: none;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  transition: transform 0.12s, filter 0.2s;
}

.btn:active { transform: scale(0.97); }

.btn-esport {
  color: var(--bg-deep);
  background: linear-gradient(180deg, var(--gold) 0%, var(--orange) 100%);
  border-bottom: 3px solid var(--red-dark);
  box-shadow: 0 4px 0 var(--red-dark);
}

.btn-esport:hover {
  color: var(--bg-deep);
  filter: brightness(1.08);
}

.btn-outline {
  color: var(--gold);
  background: transparent;
  border: 2px solid var(--gold);
  clip-path: none;
  border-radius: 0;
  box-shadow: none;
}

.btn-outline:hover { background: rgba(255, 204, 0, 0.1); }

.btn-lg { padding: 0.8rem 1.6rem; font-size: 0.8rem; }

/* Split hero — variant D */
.split-hero {
  padding: 2rem 0 2.5rem;
}

.split-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
}

.hero-copy h1 a { color: var(--gold-bright); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.35rem 0.9rem;
  margin-bottom: 0.85rem;
  background: var(--purple);
  clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.hero-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

/* Esports stat bars */
.stat-bars {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.stat-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr 2.5rem;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-label { color: var(--muted); }

.stat-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 204, 0, 0.25);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: var(--stripe);
}

.stat-val { color: var(--gold); text-align: right; }

.banner-frame {
  position: relative;
  padding: 4px;
  background: var(--stripe);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.banner-frame img {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

/* Horizontal feature strip — variant D */
.feature-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(45, 8, 8, 0.85);
  border: 2px solid rgba(237, 28, 36, 0.35);
  clip-path: var(--clip-diag);
}

.strip-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(237, 28, 36, 0.2);
  border: 2px solid var(--orange);
  flex-shrink: 0;
}

.strip-icon .ico { width: 1.35rem; height: 1.35rem; color: var(--gold); }

.strip-item strong {
  display: block;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.strip-item span {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (min-width: 600px) {
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 820px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Sections */
.section {
  padding: 2.75rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}

.section h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text);
}

.prose-panel { padding: 1.5rem 1.35rem; }
.prose-panel p { margin: 0 0 0.9rem; color: var(--muted); }

.article-panel { padding: 1.5rem 1.35rem; }

.article-panel .meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.article-panel h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.4rem 0 0.55rem;
  font-size: 1.02rem;
  color: var(--gold);
}

.article-panel h3 .ico { color: var(--orange); }

.article-panel p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.article-note {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(237, 28, 36, 0.3);
  font-size: 0.92rem;
}

/* Benefits — horizontal cards esports */
.benefit-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

.benefit-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.15rem 1.25rem;
}

.benefit-num {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  flex-shrink: 0;
}

.benefit-body h3 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.benefit-body p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

@media (min-width: 640px) {
  .benefit-row { grid-template-columns: repeat(2, 1fr); }
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item { overflow: hidden; }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.faq-q-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-q-text .ico { color: var(--orange); }

.faq-toggle .ico {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--gold);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-toggle .ico { transform: rotate(45deg); }

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

.faq-a-inner {
  padding: 0 1.2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  padding: 2.25rem 0 2.5rem;
  border-top: 3px solid var(--red);
  background: rgba(26, 5, 5, 0.7);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.footer-brand img {
  height: 30px;
  width: auto;
  max-width: 170px;
  margin-bottom: 0.65rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 26rem;
}

.footer-nav h4 {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li { margin-bottom: 0.3rem; }

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.footer-nav a:hover { color: var(--gold); }

.footer-end {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 204, 0, 0.15);
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted);
}

.footer-end a { color: var(--muted); }
.footer-end a:hover { color: var(--gold); }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
