/* GLUBBLE: 100% Strict Pure Black & White Theme */

/* ---------- FONTS (self-hosted, variable font covers weights 400-900) ---------- */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/outfit-variable.woff2') format('woff2');
}

/* ---------- SITE LOADER ---------- */
.site-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #000000 !important;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  /* Safety net: auto-hide even if JS never runs, so the loader can never block the site. */
  animation: loader-auto-hide 0.4s ease 1.6s forwards;
}
.site-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes loader-auto-hide {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.loader-text-wrap {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
  animation: loader-reveal 0.6s steps(7, end) forwards;
  will-change: clip-path;
}
.loader-text {
  display: inline-block;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 6px;
  color: #ffffff !important;
}
@keyframes loader-reveal {
  to { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  .loader-text-wrap { animation: none; clip-path: inset(0 0 0 0); }
}

:root {
  --bg-black: #000000;
  --panel-black: #0a0a0a;
  --border-white: #333333;
  --border-bright: #ffffff;
  --text-white: #ffffff;
  --text-muted: #888888;
  --header-height: 64px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0px !important; /* STRICT ZERO RADIUS */
  box-shadow: none !important;    /* STRICT ZERO SHADOW */
}

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

/* STICKY FOOTER FLEXBOX BODY */
body.strict-body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #ffffff !important;
  background: #000000 !important;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-height);
}

/* ---------- BREADCRUMBS ---------- */
.breadcrumbs {
  width: 100%;
  background: var(--panel-black) !important;
  border-bottom: 1px solid var(--border-white);
}
.breadcrumbs ol {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  list-style: none; font-size: 0.78rem; color: var(--text-muted);
  text-align: left; padding: 13px 0;
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs a { color: var(--text-muted); font-weight: 600; }
.breadcrumbs a:hover { color: #ffffff !important; }
.breadcrumbs li[aria-current="page"] {
  color: #ffffff !important; font-weight: 700;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 320px;
}
.breadcrumbs .crumb-sep { display: flex; align-items: center; opacity: 0.45; }
.breadcrumbs .crumb-sep svg { width: 9px; height: 9px; transform: rotate(-90deg); }

/* LOCK BODY SCROLL WHEN MOBILE MENU IS OPEN */
body.no-scroll {
  overflow: hidden !important;
  touch-action: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: background 0.2s ease, color 0.2s ease; }
a:hover { transform: none !important; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 16px; } }

h1, h2, h3, h4 { font-weight: 800; color: #ffffff !important; letter-spacing: -0.5px; }

/* ---------- TOP HEADER REDESIGN ---------- */
.strict-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-height); background: #000000 !important;
  border-bottom: 1px solid var(--border-bright);
}

.header-flex {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; gap: 20px;
}

.strict-logo {
  font-size: 1.6rem; font-weight: 900; letter-spacing: 2px; color: #ffffff !important;
  padding: 4px 8px;
}

/* Desktop Navigation */
.desktop-menu-nav { display: flex; align-items: center; gap: 8px; height: 100%; }
@media (max-width: 900px) { .desktop-menu-nav { display: none; } }

.header-nav-item { position: relative; height: 100%; display: flex; align-items: center; }

.nav-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.5px;
  border: 1px solid transparent; color: #ffffff !important;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-btn:hover {
  background: #ffffff !important; color: #000000 !important; border-color: #ffffff !important;
}

/* STRICT ACTIVE MENU TAB */
.nav-btn.active {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  font-weight: 800 !important;
}

.chevron-icon { transition: transform 0.25s ease; }
.header-nav-item:hover .chevron-icon { transform: rotate(180deg) !important; }

/* Smooth Dropdown Submenu Panel */
.dropdown-panel {
  position: absolute; top: 100%; left: 0; min-width: 200px;
  background: #000000 !important; border: 1px solid var(--border-bright);
  display: flex; flex-direction: column; z-index: 1100;
  white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.header-nav-item:hover .dropdown-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
}

.header-nav-item:last-child .dropdown-panel,
.header-nav-item:nth-last-child(2) .dropdown-panel {
  left: auto !important;
  right: 0 !important;
}

.dropdown-panel a {
  padding: 12px 18px; font-weight: 700; font-size: 0.85rem; color: #ffffff !important;
  border-bottom: 1px solid #222222;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown-panel a:last-child { border-bottom: none; }
.dropdown-panel a:hover {
  background: #ffffff !important; color: #000000 !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none; align-items: center; justify-content: center;
  padding: 6px; border: 1px solid var(--border-bright); color: #ffffff !important;
  width: 36px; height: 36px;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu-toggle svg {
  width: 20px !important; height: 20px !important; display: block;
}
.mobile-menu-toggle .icon-close { display: none; }
.mobile-menu-toggle.is-active .icon-open { display: none; }
.mobile-menu-toggle.is-active .icon-close { display: block; }
@media (max-width: 900px) { .mobile-menu-toggle { display: flex; } }

/* Mobile Menu Drawer */
.mobile-menu-drawer {
  position: fixed; top: var(--header-height); left: 0; right: 0; bottom: 0;
  background: #000000 !important; border-top: 1px solid var(--border-bright);
  overflow-y: auto; z-index: 999;
  padding: 20px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: none !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.mobile-menu-drawer.is-active {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none !important;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--border-white); margin-bottom: 8px;
}
.mobile-item-header {
  display: flex; align-items: center; justify-content: space-between;
}
.mobile-nav-link {
  display: block; padding: 12px 16px; font-weight: 800; font-size: 1rem; color: #ffffff !important; flex: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-nav-link.active {
  background: #ffffff !important; color: #000000 !important; font-weight: 800 !important;
}
.mobile-dropdown-toggle {
  padding: 12px 16px; border-left: 1px solid var(--border-white); color: #ffffff !important;
  transition: transform 0.25s ease;
}
.mobile-nav-item.open .mobile-dropdown-toggle svg { transform: rotate(180deg) !important; }

/* Smooth Mobile Submenu Accordion */
.mobile-submenu {
  display: flex; flex-direction: column; background: #111111 !important; border-top: 1px solid var(--border-white);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.mobile-nav-item.open .mobile-submenu {
  max-height: 400px; opacity: 1;
}
.mobile-submenu a {
  padding: 10px 24px; font-weight: 600; font-size: 0.85rem; color: #ffffff !important; border-bottom: 1px solid #222222;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-submenu a:hover {
  background: #ffffff !important; color: #000000 !important;
}

/* ---------- MAIN VIEWPORT & STICKY MIN-HEIGHT ---------- */
.strict-main {
  padding-top: 24px;
  padding-bottom: 0 !important; /* PADDING BOTTOM ZERO AS REQUESTED */
  flex: 1 0 auto;
  min-height: calc(100vh - var(--header-height) - 120px);
}

.strict-section { margin-bottom: 40px; }
.game-inner-details-grid .strict-section { margin-bottom: 0; }
.strict-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; border-bottom: 1px solid var(--border-white); padding-bottom: 8px;
}
.strict-section-header h1, .strict-section-header h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.5px; }

.category-intro { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; max-width: 780px; margin: -8px 0 20px; }

.grid-section-heading {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted); margin-bottom: 16px; font-weight: 800;
}

.visually-compact-h1 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted) !important; font-weight: 700; margin-bottom: 16px;
}

.view-all-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border: 1px solid var(--border-bright); font-size: 0.75rem;
  font-weight: 800; text-transform: uppercase; color: #ffffff !important;
  transition: background 0.2s ease, color 0.2s ease;
}
.view-all-btn:hover {
  background: #ffffff !important; color: #000000 !important;
}

.category-total-badge {
  font-size: 0.8rem; font-weight: 700; color: var(--text-muted);
  padding: 4px 10px; border: 1px solid var(--border-white);
}

/* ---------- 6-COLUMNS DESKTOP GRID SYSTEM ---------- */
.strict-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) {
  .strict-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .strict-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .strict-section-header h1, .strict-section-header h2 { font-size: 1rem; }
}

.strict-card {
  display: flex; flex-direction: column; background: #000000 !important;
  border: 1px solid var(--border-white); overflow: hidden;
  transition: border-color 0.2s ease;
}
.strict-card:hover {
  border-color: #ffffff !important; transform: none !important;
}

.strict-thumb-wrapper {
  position: relative; width: 100%; aspect-ratio: auto;
  background: #111111 !important; overflow: hidden;
}
.strict-thumb-wrapper img {
  width: 100%; height: auto; object-fit: cover; display: block;
  transform: none !important;
}

.strict-play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5); opacity: 0; color: #ffffff !important; transition: opacity 0.2s ease;
}
.strict-card:hover .strict-play-overlay { opacity: 1; }

.strict-card-info { padding: 8px 10px; }
.strict-card-info .title {
  display: block; font-size: 0.85rem; font-weight: 700; color: #ffffff !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.strict-card-info .cat { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; display: block; }

/* ---------- LOAD MORE BUTTON & SPINNER ---------- */
.load-more-wrapper {
  display: flex; justify-content: center; align-items: center;
  margin-top: 40px; margin-bottom: 20px;
}

.load-more-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; height: 48px; padding: 0 32px;
  background: #000000 !important; border: 1px solid var(--border-bright);
  color: #ffffff !important; font-weight: 800; font-size: 0.9rem; letter-spacing: 1px;
  transition: background 0.2s ease, color 0.2s ease; cursor: pointer;
}
.load-more-btn:hover {
  background: #ffffff !important; color: #000000 !important;
}

.btn-spinner {
  display: none; width: 18px; height: 18px;
  border: 2px solid #ffffff; border-top-color: transparent;
  border-radius: 50% !important;
  animation: spin 0.6s linear infinite;
}
.load-more-btn:hover .btn-spinner {
  border-color: #000000; border-top-color: transparent;
}

.load-more-btn.is-loading .btn-text { display: none; }
.load-more-btn.is-loading .btn-spinner { display: block; }

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ---------- GAME INNER PAGE REDESIGN ---------- */
.game-inner-page-container { margin-bottom: 40px; }

.game-inner-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; border-bottom: 1px solid var(--border-white); padding-bottom: 12px;
}
.game-inner-title { font-size: 1.8rem; text-transform: uppercase; }
.game-cat-badge {
  padding: 4px 12px; border: 1px solid var(--border-bright); font-size: 0.75rem;
  font-weight: 800; text-transform: uppercase; color: #ffffff !important;
}

.strict-theater-stage { position: relative; background: #000000 !important; border: 1px solid var(--border-white); margin-bottom: 24px; }
.game-frame-wrapper { position: relative; width: 100%; }
.game-frame-wrapper.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Poster preview: shown at its own natural aspect ratio, full image, no cropping. */
.play-facade { position: relative; display: block; width: 100%; }
.play-facade .poster { display: block; width: 100%; height: auto; }
.play-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); }
.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 10; display: flex; align-items: center; gap: 8px;
  padding: 14px 32px; background: #ffffff !important; color: #000000 !important; font-weight: 900; font-size: 0.95rem;
  white-space: nowrap;
}

.stage-fullscreen-btn {
  position: absolute; top: 16px; right: 16px; z-index: 20;
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: rgba(0,0,0,0.65) !important; border: 1px solid var(--border-bright); color: #ffffff !important;
  transition: background 0.2s ease, color 0.2s ease;
}
.stage-fullscreen-btn:hover { background: #ffffff !important; color: #000000 !important; }

.game-inner-details-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: stretch; }
.details-side-col { align-self: stretch; }
@media (max-width: 900px) { .game-inner-details-grid { grid-template-columns: 1fr; } }

.game-inner-details {
  background: #000000 !important; border: 1px solid var(--border-white); padding: 24px;
  display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px;
}
.inner-detail-box h2 { font-size: 1rem; border-bottom: 1px solid var(--border-white); padding-bottom: 6px; margin-bottom: 8px; text-transform: uppercase; }
.inner-detail-box p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.inner-detail-box p:last-child { margin-bottom: 0; }

.static-page-content h2 { margin-top: 28px; }
.static-page-content h2:first-of-type { margin-top: 0; }
.static-page-content ul { margin: -4px 0 14px 20px; list-style: disc; }
.static-page-content li { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 6px; }
.static-page-updated { font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; margin-bottom: 20px !important; font-style: italic; }

/* ---------- FAQ ACCORDION ---------- */
.faq-accordion { display: flex; flex-direction: column; }
.faq-accordion-item { border-bottom: 1px solid var(--border-white); }
.faq-accordion-item:last-child { border-bottom: none; }
.faq-accordion-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 2px; cursor: pointer; list-style: none; font-weight: 700; font-size: 0.9rem;
}
.faq-accordion-item summary::-webkit-details-marker { display: none; }
.faq-q { flex: 1; }
.faq-accordion-item .chevron-icon { flex-shrink: 0; transition: transform 0.2s ease; color: var(--text-muted); }
.faq-accordion-item[open] .chevron-icon { transform: rotate(180deg); }
.faq-accordion-item[open] summary { color: #ffffff !important; }
.faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
/* No-JS fallback: native toggle still reveals content, just without the animated height (JS drives that via inline style). */
.faq-accordion-item[open] .faq-answer-wrap { max-height: none; }
.faq-answer { padding: 0 2px 18px; }
.faq-answer p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

.quick-specs-card {
  background: #000000 !important; border: 1px solid var(--border-white); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: calc(var(--header-height) + 16px);
}
.quick-specs-card h2 { font-size: 1rem; border-bottom: 1px solid var(--border-white); padding-bottom: 6px; margin-bottom: 6px; text-transform: uppercase; }
.spec-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding-bottom: 6px; border-bottom: 1px solid #111111; }
.spec-label { color: var(--text-muted); font-weight: 600; }
.spec-val { color: #ffffff !important; font-weight: 700; }

.ad-slot {
  width: 100%; min-height: 90px; margin: 24px 0; overflow: hidden;
  text-align: center;
}
.ad-slot--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: #000000 !important; border: 1px dashed var(--border-white);
  color: var(--text-muted); font-size: 0.8rem; font-weight: 700;
}

/* ---------- FOOTER ---------- */
.strict-footer {
  border-top: 1px solid var(--border-white);
  padding: 10px 0;
  background: #000000 !important;
  margin-top: auto !important;
}
.footer-flex {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-flex > .strict-logo { justify-self: start; }
.footer-flex > .footer-copyright { justify-self: center; }
.footer-flex > .footer-links { justify-self: end; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: #ffffff !important; }
.footer-copyright { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; white-space: nowrap; }

@media (max-width: 768px) {
  .footer-flex {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-flex > .strict-logo,
  .footer-flex > .footer-copyright,
  .footer-flex > .footer-links {
    justify-self: center;
  }
}
