/* ===========================================================
   MODDING CAFE — DESIGN SYSTEM TOKENS
   Dark cinematic / Tomato Orange / Industrial workshop
   =========================================================== */

:root {
  /* ── PUBLIC WEBSITE THEME ENGINE — fallback defaults (Carbon Orange).
     SSR (public-head.php → mc_site_theme_css) ghi đè các token này theo preset
     đang chọn. --site-primary-rgb dùng cho mọi rgba() đã chuyển sang token. ── */
  --site-primary: #FF6347;
  --site-primary-rgb: 255, 99, 71;
  --site-secondary: #FF8A65;
  --site-accent: #FFB199;
  --site-primary-hover: #ff8a73;
  --site-primary-press: #d6432a;
  --site-primary-soft: rgba(255, 99, 71, 0.12);
  --site-bg: #08090B;
  --site-bg-2: #0d1011;
  --site-surface: #121418;
  --site-card: #17191D;
  --site-card-2: #1b2024;
  --site-border: rgba(255, 99, 71, 0.20);
  --site-border-soft: rgba(255, 255, 255, 0.10);
  --site-text: #FFFFFF;
  --site-muted: #9CA3AF;
  --site-gradient: linear-gradient(135deg, #FF6347 0%, #FF8A65 100%);
  --site-hero-glow: rgba(255, 99, 71, 0.35);
  --site-link: #FF6347;
  --site-link-hover: #ff8a73;
  --site-footer-bg: #121418;
  --site-footer-border: rgba(255, 99, 71, 0.18);
  --site-footer-accent: #FF6347;
  --site-radius: 14px;
  --site-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  --site-focus: rgba(255, 99, 71, 0.45);

  /* Brand */
  --color-orange: #FF6347;
  --color-orange-600: #ff7556;
  --color-orange-700: #e54a30;
  --color-orange-dim: rgba(255, 99, 71, 0.18);
  --color-orange-glow: rgba(255, 99, 71, 0.35);

  /* Surfaces */
  --color-bg:        #090b0c;
  --color-bg-2:      #0d1011;
  --color-panel:     #111416;
  --color-panel-2:   #15191c;
  --color-panel-3:   #1b2024;

  /* Text */
  --color-text:      #f5f5f5;
  --color-text-dim:  #b5b5b5;
  --color-text-mute: #9ca3af;
  --color-text-faint:#6b7280;

  /* Borders */
  --color-border:        rgba(255, 255, 255, 0.12);
  --color-border-strong: rgba(255, 255, 255, 0.22);
  --color-border-orange: rgba(255, 99, 71, 0.45);

  /* Typography V3 — Smooch Sans (heading) + Barlow Condensed (body)
     Final correction per spec */
  --font-display: "Smooch Sans", sans-serif;
  --font-heading: "Smooch Sans", sans-serif;
  --font-label:   "Barlow Condensed", sans-serif;
  --font-body:    "Barlow Condensed", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-script:  "Smooch Sans", sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-orange: 0 0 24px rgba(255, 99, 71, 0.25);

  /* Layout */
  --container: 1280px;
  --container-wide: 1440px;
  --header-h: 84px;

  /* Transition */
  --t-fast: 120ms ease;
  --t: 220ms ease;
  --t-slow: 420ms ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.02em; }
p { margin: 0; }

::selection { background: var(--color-orange); color: #0a0a0a; }

/* ===== UTILS ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 32px; }
.text-orange { color: var(--color-orange); }
.text-dim    { color: var(--color-text-dim); }
.text-mute   { color: var(--color-text-mute); }
.uppercase  { text-transform: uppercase; }
.tracking   { letter-spacing: 0.12em; }
.tracking-lg{ letter-spacing: 0.2em; }
.mono       { font-family: var(--font-mono); }

/* Section label — “— SECTION NAME” */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-orange);
}
.section-label::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--color-orange);
  opacity: 0.7;
}
.section-label.pre::before {
  content: "—";
  color: var(--color-orange);
  margin-right: 4px;
}

/* Industrial display heading */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 92px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.display .accent { color: var(--color-orange); display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-xs);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  transition: var(--t);
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { border-color: var(--color-orange); color: var(--color-orange); }
.btn .arrow {
  width: 18px; height: 12px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: skew(45deg) scaleY(0.5);
  position: relative;
}
.btn-primary {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: #0a0a0a;
}
.btn-primary:hover { background: var(--color-orange-600); color: #000; }
.btn-outline-orange { border-color: var(--color-orange); color: var(--color-orange); }
.btn-outline-orange:hover { background: var(--color-orange); color: #0a0a0a; }
.btn-ghost { border-color: transparent; color: var(--color-text-dim); }
.btn-ghost:hover { color: var(--color-orange); border-color: transparent; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 11px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 14px; }

/* Arrow icon (chevron right) */
.icon-arrow-r {
  width: 16px; height: 16px;
  display: inline-block;
  position: relative;
}
.icon-arrow-r::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8h10M8 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M2 8h10M8 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='square'/></svg>") center/contain no-repeat;
}

/* Cards */
.card {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: var(--t);
}
.card:hover { border-color: var(--color-border-orange); }

/* Tag chip */
.chip {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  font-family: var(--font-label);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-orange);
  border: 1px solid var(--color-orange);
  border-radius: var(--radius-xs);
  background: rgba(var(--site-primary-rgb,255,99,71), 0.06);
}
.chip-mute {
  color: var(--color-text-dim);
  border-color: var(--color-border);
  background: transparent;
}

/* Image placeholders — dark cinematic (no more orange frame) */
.ph {
  background:
    radial-gradient(120% 80% at 50% 35%, rgba(var(--site-primary-rgb,255,99,71),0.12), transparent 60%),
    linear-gradient(160deg, #1a1d20 0%, #0a0c0e 50%, #0d1011 100%);
  background-color: #0a0c0e;
  position: relative;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(transparent 0%, rgba(0,0,0,0.4) 100%),
    repeating-linear-gradient(45deg, transparent 0 22px, rgba(255,255,255,0.015) 22px 23px);
  pointer-events: none;
}
/* Real photo-style image background slots (use background-image) */
.bg-image {
  background-color: #0a0c0e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.bg-image::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.ph-flat {
  background: linear-gradient(135deg, #1a1d20 0%, #0d1011 60%, #15191c 100%);
}
.ph-flat::before, .ph-flat::after { content: none; }

.ph-label {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font: 600 10px/1 var(--font-label);
  letter-spacing: 0.24em;
  color: var(--color-orange);
  text-transform: uppercase;
  z-index: 2;
  opacity: 0.6;
}

/* Hexagonal MC logo mark */
.mc-mark {
  width: 56px; height: 56px;
  position: relative;
  flex: none;
}
.mc-mark svg { width: 100%; height: 100%; }

/* Scroll indicator */
.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font: 600 10px/1 var(--font-label);
  letter-spacing: 0.32em;
  color: var(--color-text-mute);
}
.scroll-indicator .line {
  width: 1px; height: 28px;
  background: linear-gradient(var(--color-orange), transparent);
}
