/* ================================================================
   OnPlay Game Themes — game_themes.css
   Conan = Blue  |  Wixoss = Purple
   Haikyu = Orange  |  Duel Masters = Abyss (deep indigo/void)
   ================================================================ */

/* ---- Conan (Blue) ---- */
.theme-conan {
  --game-primary:       #2563eb;
  --game-primary-dark:  #1d4ed8;
  --game-primary-rgb:   37, 99, 235;
  --game-light:         #dbeafe;
  --game-border:        #93c5fd;
  --game-text:          #1e40af;
  --game-accent:        #3b82f6;
  --game-muted:         #eff6ff;
  --game-section-border:#bfdbfe;
  --game-faq-bg:        #dbeafe;
  --game-faq-open:      #bfdbfe;
  --game-btn-text:      #ffffff;
}

/* ---- Wixoss (Purple) ---- */
.theme-wixoss {
  --game-primary:       #7c3aed;
  --game-primary-dark:  #6d28d9;
  --game-primary-rgb:   124, 58, 237;
  --game-light:         #ede9fe;
  --game-border:        #c4b5fd;
  --game-text:          #5b21b6;
  --game-accent:        #8b5cf6;
  --game-muted:         #f5f3ff;
  --game-section-border:#ddd6fe;
  --game-faq-bg:        #ede9fe;
  --game-faq-open:      #ddd6fe;
  --game-btn-text:      #ffffff;
}

/* ---- Haikyu (Orange) ---- */
.theme-haikyu {
  --game-primary:       #ea580c;
  --game-primary-dark:  #c2410c;
  --game-primary-rgb:   234, 88, 12;
  --game-light:         #ffedd5;
  --game-border:        #fb923c;
  --game-text:          #9a3412;
  --game-accent:        #f97316;
  --game-muted:         #fff7ed;
  --game-section-border:#fdba74;
  --game-faq-bg:        #ffedd5;
  --game-faq-open:      #fdba74;
  --game-btn-text:      #ffffff;
}

/* ---- Duel Masters (Abyss) ---- */
.theme-dm {
  --game-primary:       #4c1d95;
  --game-primary-dark:  #2e1065;
  --game-primary-rgb:   76, 29, 149;
  --game-light:         #ede9fe;
  --game-border:        #7c3aed;
  --game-text:          #3b0764;
  --game-accent:        #8b5cf6;
  --game-muted:         #1e1b4b0a;
  --game-section-border:#a78bfa;
  --game-faq-bg:        #ede9fe;
  --game-faq-open:      #ddd6fe;
  --game-btn-text:      #ffffff;
}

/* ================================================================
   Shared game page components (uses CSS custom properties above)
   ================================================================ */

/* ----- Arena hub grid cards ----- */
.game-arena-card {
  display: block;
  border: 3px solid var(--game-border);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.game-arena-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(var(--game-primary-rgb), 0.25);
}
.game-arena-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ----- Arena background ----- */
.game-arena-bg {
  background: var(--game-muted);
  min-height: 100vh;
}

/* ----- Game top menu bar ----- */
.game-top-menu {
  background: #ffffff;
  border-bottom: 3px solid var(--game-border);
  padding: 8px 16px;
}
.game-top-menu .game-brand {
  font-weight: 700;
  font-size: 1rem;
  color: var(--game-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.game-top-menu .game-brand img {
  height: 32px;
  width: auto;
}
.game-top-menu .game-nav-link {
  color: var(--game-text);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.game-top-menu .game-nav-link:hover,
.game-top-menu .game-nav-link.active {
  background: var(--game-light);
  color: var(--game-primary-dark);
}
.game-top-menu .game-nav-link i {
  margin-right: 4px;
}

/* ----- Rule / content page card wrapper ----- */
.game-content-card {
  background: #ffffff;
  border: 0;
  border-top: 4px solid var(--game-border);
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-top: 1rem;
}

/* ----- Rule page section heading ----- */
.game-section-heading {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--game-section-border);
  color: var(--game-text);
}

/* ----- FAQ accordion ----- */
.game-faq details {
  border: 1px solid var(--game-section-border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
.game-faq details summary {
  cursor: pointer;
  padding: 12px 16px;
  font-size: 0.97rem;
  font-weight: 600;
  background: var(--game-faq-bg);
  list-style: none;
  transition: background 0.15s;
}
.game-faq details summary::-webkit-details-marker { display: none; }
.game-faq details summary::before {
  content: "+ ";
  font-weight: 700;
  color: var(--game-primary);
}
.game-faq details[open] summary {
  background: var(--game-faq-open);
}
.game-faq details[open] summary::before {
  content: "− ";
}
.game-faq details .faq-body {
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.6;
  background: #fff;
}

/* ----- Card search box ----- */
.game-search-box {
  background: #ffffff;
  border: 2px solid var(--game-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
}

.game-filter-panel {
  background: var(--game-muted);
  border: 1px solid var(--game-section-border);
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

/* ----- Themed buttons ----- */
.game-btn-primary {
  background-color: var(--game-primary);
  color: var(--game-btn-text);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.game-btn-primary:hover {
  background-color: var(--game-primary-dark);
  color: var(--game-btn-text);
}
.game-btn-primary:focus {
  outline: 2px solid var(--game-accent);
  outline-offset: 2px;
}

/* ----- Event list grid ----- */
.game-event-card {
  border: 2px solid var(--game-border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s;
}
.game-event-card:hover {
  transform: translateY(-2px);
}

/* ----- Rule page video container ----- */
.game-video-wrapper {
  border: 2px solid var(--game-section-border);
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

/* ----- PDF / doc link ----- */
.game-doc-link {
  color: var(--game-primary);
  font-weight: 600;
  text-decoration: none;
}
.game-doc-link:hover {
  color: var(--game-primary-dark);
  text-decoration: underline;
}

/* ----- Responsive nav collapse on mobile ----- */
@media (max-width: 640px) {
  .game-top-menu .game-nav-link {
    font-size: 0.78rem;
    padding: 5px 6px;
  }
  .game-top-menu .game-brand {
    font-size: 0.85rem;
  }
  .game-top-menu .game-brand img {
    height: 24px;
  }
}
