/* ==========================================================================
   Batomon Showdown Fan Guide - Shared Base Styles
   Design Theme: Pixel Auto-Battler Aesthetic with High-Readability Editorial UI
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0a1118;
  --bg-secondary: #101c26;
  --bg-card: rgba(18, 32, 45, 0.85);
  --bg-card-hover: rgba(26, 46, 64, 0.95);
  --bg-subtle: #172836;
  
  --border-color: rgba(56, 217, 214, 0.22);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38d9d6;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #0a1118;

  --accent-cyan: #38d9d6;
  --accent-cyan-dark: #12b886;
  --accent-pink: #f06595;
  --accent-pink-hover: #e64980;
  --accent-gold: #fcc419;
  --accent-gold-dark: #fab005;
  --accent-blue: #3b82f6;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  /* Layout Sizing */
  --site-max-width: 1120px;
  --article-max-width: 760px;
  --header-height: 68px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 16px rgba(56, 217, 214, 0.18);
  --shadow-glow-pink: 0 0 16px rgba(240, 101, 149, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--text-main);
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 10%, rgba(56, 217, 214, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(240, 101, 149, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(252, 196, 25, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}


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

/* Prevent CSS Grid items from overflowing their parent container */
[class*="-grid"] > *,
[class*="-split"] > * {
  min-width: 0;
}

/* Accessibility: Screen Reader Only */
.sr-only {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  background: var(--accent-cyan);
  color: var(--text-inverse);
  padding: 8px 16px;
  z-index: 1000;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 16px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}


/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-height);
  background: rgba(10, 17, 24, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity var(--transition-fast);
}

.brand:hover {
  opacity: 0.9;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-cyan));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 0 10px rgba(56, 217, 214, 0.4);
  flex-shrink: 0;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-main);
  background-color: var(--bg-subtle);
}

.nav-link.active {
  color: var(--accent-cyan);
  background-color: rgba(56, 217, 214, 0.08);
}

.nav-cta {
  background: linear-gradient(135deg, rgba(56, 217, 214, 0.15), rgba(240, 101, 149, 0.15));
  border: 1px solid var(--border-color);
  color: var(--text-main);
}
.nav-cta:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--border-focus);
}

/* Main Content Wrapper */
main {
  flex: 1;
  padding-bottom: 60px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #ffffff;
  font-weight: 800;
  line-height: 1.3;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.7rem;
  letter-spacing: -0.015em;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
}

h3 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1.1em;
  color: var(--text-main);
}

/* Links & 00B 4B.1 External Link Component */
a {
  color: var(--accent-cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: #79ece9;
  text-decoration-color: #79ece9;
}

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

.external-link {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-weight: 600;
  text-decoration: underline;
}

.external-link .ext-icon {
  font-size: 0.85em;
  line-height: 1;
  display: inline-block;
  opacity: 0.85;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  line-height: 1.4;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #20c997);
  color: var(--text-inverse);
  box-shadow: 0 4px 14px rgba(56, 217, 214, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5fe3e1, #38d9a9);
  color: var(--text-inverse);
  box-shadow: 0 6px 18px rgba(56, 217, 214, 0.45);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.btn-pink {
  background: linear-gradient(135deg, var(--accent-pink), #d6336c);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(240, 101, 149, 0.35);
}

.btn-pink:hover {
  background: linear-gradient(135deg, #f783ac, #e64980);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(240, 101, 149, 0.5);
  transform: translateY(-1px);
}

/* Cards & Badges */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-cyan {
  background: rgba(56, 217, 214, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 217, 214, 0.35);
}

.badge-pink {
  background: rgba(240, 101, 149, 0.15);
  color: var(--accent-pink);
  border: 1px solid rgba(240, 101, 149, 0.35);
}

.badge-gold {
  background: rgba(252, 196, 25, 0.15);
  color: var(--accent-gold);
  border: 1px solid rgba(252, 196, 25, 0.35);
}

.badge-dim {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-muted);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Editorial Callouts / Notice Box */
.notice-box {
  background: var(--bg-subtle);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  margin: 1.6em 0;
}

.notice-box.warning {
  border-left-color: var(--accent-gold);
  background: rgba(252, 196, 25, 0.08);
}

.notice-box.info {
  border-left-color: var(--accent-pink);
  background: rgba(240, 101, 149, 0.08);
}

.notice-title {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 6px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Figures & Captions */
figure {
  margin: 2em 0;
}

figure img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  width: 100%;
}

figcaption {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  line-height: 1.4;
}

figcaption .source-tag {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Responsive Table Wrapper */
.table-scroll-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
  -webkit-overflow-scrolling: touch;
  margin: 1.8em 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-sizing: border-box;
}

table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.94rem;
}


th {
  background: rgba(16, 28, 38, 0.95);
  color: #ffffff;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: top;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background-color: rgba(56, 217, 214, 0.04);
}

/* Footer Section conforming to 00B Trust Guidelines */
.site-footer {
  background: #070c12;
  border-top: 1px solid var(--border-subtle);
  padding: 40px 0 28px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 8px;
  line-height: 1.5;
  max-width: 440px;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.footer-verification-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-verification-bar p {
  margin-bottom: 0;
  color: var(--text-dim);
}

.footer-verification-bar a {
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 58px;
  }

  .site-header .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
    max-width: calc(100% - 48px);
  }

  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .brand-name {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-tag {
    font-size: 0.65rem;
  }

  h1 {
    font-size: 1.65rem;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 1.35rem;
    overflow-wrap: break-word;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 17, 24, 0.98);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .nav-link {
    padding: 12px 16px;
    font-size: 1rem;
  }
}
