/* INDEX */

:root {
  --pixel-font: "Press Start 2P", cursive;
  --main-font: "Inter", sans-serif;
}

body {
  background: radial-gradient(circle at center, #235284 0%, #0d1b2a 100%);
  color: white;
  font-family: var(--main-font);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Hiệu ứng CRT/Scanlines giả lập màn hình cổ điển */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.03),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.03)
    );
  z-index: 100;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.pixel-text {
  font-family: var(--pixel-font);
}

.main-text {
  font-family: var(--main-font) !important;
}

.inner-panel {
  background-color: #162447;
  border-radius: 20px;
  border: 6px solid #2d4059;
}

.grid-item {
  transition: transform 0.1s;
  cursor: pointer;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-item:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
  z-index: 10;
}

.btn-retro {
  font-family: var(--main-font);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-bottom: 4px solid rgba(0, 0, 0, 0.3);
  border-right: 4px solid rgba(0, 0, 0, 0.3);
  transition: all 0.1s;
}

.btn-retro:active {
  border-bottom-width: 0;
  border-right-width: 0;
  transform: translate(2px, 2px);
}

.logo-glow {
  text-shadow: 4px 4px 0px #3b2b0e, 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Brand Logo Style */
.brand-logo-container {
  border: 2px solid white;
  padding: 4px;
  background: #000;
  image-rendering: pixelated;
}

/* Dropdown Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #162447;
  border: 4px solid #2d4059;
  min-width: 200px;
  z-index: 50;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

.group:hover .dropdown-menu {
  display: block;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
}

/* Mobile Menu */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
}

#mobile-menu.active {
  transform: translateX(0);
}

@media (max-width: 640px) {
  .pixel-text {
    font-size: 0.5rem;
  }

  .btn-retro {
    font-size: 14px;
  }
}

/* SINGLE CSS */

.brand-logo-container {
  border: 2px solid white;
  padding: 4px;
  background: #000;
  image-rendering: pixelated;
}

/* Dropdown Styles */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #162447;
  border: 4px solid #2d4059;
  min-width: 200px;
  z-index: 50;
}

.group:hover .dropdown-menu {
  display: block;
}

.dropdown-item {
  padding: 9px 16px;
  /* font-size: 0.85rem; */
  font-weight: bolder;
  display: block;
  border-bottom: 2px solid #2d4059;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fbbf24;
}

/* Content Styling */
.post-content p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #d1d5db;
}

.post-content ul,
.post-content ol {
  margin-bottom: 1.5rem;
  margin-left: 1.5rem;
  line-height: 1.8;
  list-style: circle;
  color: #d1d5db;
}

.post-content ul li,
.post-content ol li {
  margin-bottom: 0.5rem;
}

.post-content h2 {
  font-size: 22px;
  font-weight: bolder;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.post-content h3 {
  font-size: 18px;
  font-weight: bolder;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.post-content h4,
.post-content h5,
.post-content h6 {
  font-size: 16px;
  font-weight: bolder;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.pixel-input {
  background: #0d1b2a;
  border: 3px solid #2d4059;
  color: #4ade80;
  padding: 8px;
  font-size: 14px;
  outline: none;
  width: 100%;
}

.pixel-input:focus {
  border-color: #fbbf24;
}

.related-card {
  transition: all 0.2s;
  border: 4px solid transparent;
}

.related-card:hover {
  border-color: #3b82f6;
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.05);
}

/* Breadcrumb separator */
.breadcrumb-item:after {
  content: " > ";
  margin: 0 8px;
  color: #4b5563;
}

.breadcrumb-item:last-child:after {
  content: "";
}

/* MODAL */

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 500px;
  width: 100%;
  animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ARCHIVE */

.btn-retro {
  font-family: var(--pixel-font);
  font-size: 0.6rem;
  padding: 10px 16px;
  border-bottom: 4px solid rgba(0, 0, 0, 0.3);
  border-right: 4px solid rgba(0, 0, 0, 0.3);
  transition: all-colors 0.1s;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-retro:active {
  border-bottom-width: 0;
  border-right-width: 0;
  transform: translate(2px, 2px);
}

.brand-logo-container {
  border: 2px solid white;
  padding: 4px;
  background: #000;
  image-rendering: pixelated;
}

/* Card Styles */
.archive-card {
  transition: transform 0.2s, border-color 0.2s;
  border: 4px solid #2d4059;
  background: #162447;
}

.archive-card:hover {
  border-color: #fbbf24;
  transform: translateY(-5px);
}

/* Pagination */
.page-numbers {
  padding: 0 12px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2d4059;
  font-family: var(--pixel-font);
  font-size: 10px;
  transition: all 0.2s;
}

.page-node.active {
  background: #fbbf24;
  color: #162447;
  border-color: white;
}

.page-node:not(.active):hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Breadcrumb separator */
.breadcrumb-item:after {
  content: " > ";
  margin: 0 8px;
  color: #4b5563;
}

.breadcrumb-item:last-child:after {
  content: "";
}

/* Mobile Menu */
#mobile-menu {
  transition: transform 0.3s ease-in-out;
  transform: translateX(-100%);
}

#mobile-menu.active {
  transform: translateX(0);
}

/* FAQ Styling */
.faq-item {
  border-bottom: 2px solid rgba(45, 64, 89, 0.5);
  padding: 15px 0;
}
.faq-item:last-child {
  border-bottom: none;
}

details summary {
  list-style: none;
  cursor: pointer;
  outline: none;
}
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary {
  color: #fbbf24;
}

.logged-in-as,
label[for="wp-comment-cookies-consent"] {
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.pikachu-leaderboard {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, #0b162e, #0a1024);
}

.pikachu-leaderboard li:hover {
  background: rgba(59, 130, 246, 0.15);
  transform: translateX(2px);
  transition: all 0.2s ease;
}
