/*
Theme Name: AuViet Pro Dark
Theme URI: https://auviet.example.com
Author: AuViet Studio
Author URI: https://auviet.example.com
Description: Premium dark Vietnamese gaming theme with gold accents
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.6
Requires PHP: 7.0
License: GNU General Public License v2 or later
Text Domain: auviet
*/

/* ============================================================
   AuViet Pro Dark — palette & foundations
   ============================================================ */
:root {
  --avpd-base: #0d0d14;
  --avpd-base-2: #13131f;
  --avpd-base-3: #1a1a2b;
  --avpd-gold: #d4a017;
  --avpd-gold-bright: #f59e0b;
  --avpd-red: #dc2626;
  --avpd-blue: #3b82f6;
  --avpd-text: #e8e6e3;
  --avpd-muted: #9a97a3;
  --avpd-line: rgba(212, 160, 23, 0.18);
  --avpd-font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --avpd-font-body: 'Roboto', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--avpd-base);
  background-image: url('assets/images/bg-main.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--avpd-text);
  font-family: var(--avpd-font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--avpd-gold-bright); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #ffd056; }

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--avpd-font-display);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.6em;
}

.avpd-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.avpd-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--avpd-gold);
  color: #000;
  padding: 8px 16px;
  z-index: 999;
}
.avpd-skip:focus { left: 8px; }

/* ============================================================
   Top bar & header
   ============================================================ */
.avpd-topbar {
  background: linear-gradient(180deg, rgba(26, 26, 43, 0.92), rgba(13, 13, 20, 0.88));
  border-bottom: 1px solid var(--avpd-line);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.avpd-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  max-width: 1240px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.avpd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avpd-brand img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.35));
}

.avpd-brand-name {
  font-family: var(--avpd-font-display);
  font-size: 30px;
  letter-spacing: 0.12em;
  color: var(--avpd-gold);
  text-shadow: 0 0 18px rgba(212, 160, 23, 0.4);
}

.avpd-cta-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.avpd-btn {
  display: inline-block;
  font-family: var(--avpd-font-display);
  font-size: 17px;
  letter-spacing: 0.1em;
  padding: 9px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-transform: uppercase;
}

.avpd-btn:hover { transform: translateY(-2px); }

.avpd-btn-gold {
  background: linear-gradient(135deg, var(--avpd-gold), var(--avpd-gold-bright));
  color: #14100a;
  box-shadow: 0 4px 18px rgba(212, 160, 23, 0.35);
}
.avpd-btn-gold:hover { color: #14100a; box-shadow: 0 8px 26px rgba(245, 158, 11, 0.5); }

.avpd-btn-red {
  background: linear-gradient(135deg, #b91c1c, var(--avpd-red));
  color: #fff;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.35);
}
.avpd-btn-red:hover { color: #fff; box-shadow: 0 8px 26px rgba(220, 38, 38, 0.5); }

.avpd-btn-ghost {
  border-color: var(--avpd-gold);
  color: var(--avpd-gold);
  background: transparent;
}
.avpd-btn-ghost:hover { background: rgba(212, 160, 23, 0.12); color: #ffd056; }

/* ============================================================
   Mobile header controls (hidden on desktop)
   ============================================================ */
.avpd-menu-toggle,
.avpd-search-toggle { display: none; }

.avpd-mobile-search { display: none; }

/* ============================================================
   Primary navigation
   ============================================================ */
.avpd-mainnav {
  background: var(--avpd-base-2);
  border-bottom: 2px solid var(--avpd-gold);
}

.avpd-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.avpd-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.avpd-menu li { position: relative; }

.avpd-menu li a {
  display: block;
  padding: 12px 16px;
  font-family: var(--avpd-font-display);
  font-size: 19px;
  letter-spacing: 0.08em;
  color: var(--avpd-text);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.avpd-menu li a:hover,
.avpd-menu li.current-menu-item > a,
.avpd-menu li.current-cat > a {
  color: var(--avpd-gold-bright);
  border-bottom-color: var(--avpd-gold-bright);
  background: rgba(212, 160, 23, 0.06);
}

.avpd-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: var(--avpd-base-3);
  border: 1px solid var(--avpd-line);
  z-index: 120;
  flex-direction: column;
  padding: 4px 0;
}
.avpd-menu li:hover > .sub-menu { display: flex; }
.avpd-menu .sub-menu li a { padding: 9px 16px; font-size: 16px; border-bottom: none; }

.avpd-nav-search { padding: 8px 0; }

.avpd-searchform {
  display: flex;
  align-items: stretch;
}

.avpd-searchform input[type="text"],
.avpd-searchform input[type="search"] {
  background: var(--avpd-base);
  border: 1px solid var(--avpd-line);
  border-right: none;
  color: var(--avpd-text);
  padding: 9px 14px;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  font-family: var(--avpd-font-body);
  flex: 1;
  min-width: 0;
}

.avpd-searchform input:focus { outline: none; border-color: var(--avpd-gold-bright); }

.avpd-searchform button {
  background: linear-gradient(135deg, var(--avpd-gold), var(--avpd-gold-bright));
  color: #14100a;
  border: none;
  padding: 9px 18px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--avpd-font-body);
  letter-spacing: 0.04em;
  transition: filter 0.2s ease;
}

.avpd-searchform button:hover { filter: brightness(1.15); }

.avpd-nav-search .avpd-searchform input[type="text"],
.avpd-nav-search .avpd-searchform input[type="search"] { width: 180px; flex: none; }

/* ============================================================
   Category strip
   ============================================================ */
.avpd-catbar {
  background: var(--avpd-base);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
}

.avpd-catbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}

.avpd-catchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--avpd-line);
  background: var(--avpd-base-2);
  color: var(--avpd-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.avpd-catchip:hover {
  border-color: var(--avpd-gold);
  color: var(--avpd-gold-bright);
  box-shadow: 0 0 14px rgba(212, 160, 23, 0.25);
  transform: translateY(-1px);
}

.avpd-catchip img { width: 18px; height: 18px; }

/* ============================================================
   Hero
   ============================================================ */
.avpd-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  border-bottom: 2px solid var(--avpd-gold);
}

.avpd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 13, 20, 0.94) 0%, rgba(13, 13, 20, 0.7) 45%, rgba(13, 13, 20, 0.25) 100%);
}

.avpd-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 20px;
  width: 100%;
}

.avpd-hero-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--avpd-gold-bright);
  border: 1px solid var(--avpd-gold);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  background: rgba(212, 160, 23, 0.08);
}

.avpd-hero-title {
  font-size: clamp(42px, 6vw, 76px);
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.avpd-hero-title span { color: var(--avpd-gold); }

.avpd-hero-sub {
  max-width: 560px;
  color: var(--avpd-muted);
  font-size: 17px;
  margin-bottom: 28px;
}

.avpd-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   Section headings
   ============================================================ */
.avpd-section { padding: 48px 0 8px; }

.avpd-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  border-left: 5px solid var(--avpd-gold);
  padding-left: 14px;
}

.avpd-section-title {
  font-size: 34px;
  margin: 0;
  text-transform: uppercase;
}

.avpd-section-title em {
  font-style: normal;
  color: var(--avpd-gold);
}

.avpd-section-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--avpd-muted);
}
.avpd-section-link:hover { color: var(--avpd-gold-bright); }

/* ============================================================
   Post cards & grids
   ============================================================ */
.avpd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.avpd-grid-2 { grid-template-columns: repeat(2, 1fr); }

.avpd-card {
  background: linear-gradient(180deg, var(--avpd-base-2), var(--avpd-base));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.avpd-card:hover {
  transform: translateY(-5px);
  border-color: var(--avpd-line);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 22px rgba(212, 160, 23, 0.12);
}

.avpd-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--avpd-base-3);
}

.avpd-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.avpd-card:hover .avpd-card-thumb img { transform: scale(1.06); }

.avpd-card-cat {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
}

.avpd-card-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }

.avpd-card-title {
  font-family: var(--avpd-font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 8px;
}

.avpd-card-title a { color: var(--avpd-text); }
.avpd-card-title a:hover { color: var(--avpd-gold-bright); }

.avpd-card-excerpt {
  color: var(--avpd-muted);
  font-size: 14px;
  flex: 1;
  margin-bottom: 14px;
}

.avpd-card-meta {
  font-size: 12px;
  color: var(--avpd-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

/* Horizontal list card (index/archive) */
.avpd-hcard {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  background: var(--avpd-base-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 26px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.avpd-hcard:hover {
  border-color: var(--avpd-line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.avpd-hcard .avpd-card-thumb { aspect-ratio: auto; height: 100%; min-height: 190px; }

.avpd-hcard-body { padding: 22px 22px 22px 0; display: flex; flex-direction: column; }

/* ============================================================
   Layout: content + sidebar
   ============================================================ */
.avpd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 44px 0;
  align-items: start;
}

.avpd-sidebar { position: sticky; top: 84px; }

.avpd-widget {
  background: var(--avpd-base-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.avpd-widget-title {
  font-size: 24px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--avpd-gold);
  text-transform: uppercase;
}

.avpd-widget ul { list-style: none; margin: 0; padding: 0; }

.avpd-widget li { border-bottom: 1px dashed rgba(255, 255, 255, 0.08); }
.avpd-widget li:last-child { border-bottom: none; }

.avpd-widget li a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px;
  color: var(--avpd-text);
  font-size: 14px;
}

.avpd-widget li a:hover { color: var(--avpd-gold-bright); padding-left: 6px; }

/* ============================================================
   Single article
   ============================================================ */
.avpd-breadcrumb {
  padding: 18px 0;
  font-size: 13px;
  color: var(--avpd-muted);
}

.avpd-breadcrumb a { color: var(--avpd-muted); }
.avpd-breadcrumb a:hover { color: var(--avpd-gold-bright); }
.avpd-breadcrumb .avpd-sep { margin: 0 8px; color: var(--avpd-gold); }

.avpd-article {
  background: var(--avpd-base-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 36px;
  margin-bottom: 36px;
}

.avpd-article-title {
  font-family: var(--avpd-font-body);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.avpd-article-meta {
  font-size: 13px;
  color: var(--avpd-muted);
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.avpd-article-meta .avpd-gold { color: var(--avpd-gold); }

.avpd-content { font-size: 16.5px; color: #d6d4d0; }

.avpd-content p { margin: 0 0 1.2em; }

.avpd-content h2, .avpd-content h3, .avpd-content h4 {
  margin-top: 1.6em;
  color: var(--avpd-gold);
}

.avpd-content a { text-decoration: underline; text-underline-offset: 3px; }

.avpd-content blockquote {
  border-left: 4px solid var(--avpd-gold);
  background: rgba(212, 160, 23, 0.06);
  margin: 1.4em 0;
  padding: 16px 22px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--avpd-text);
}

.avpd-content img { border-radius: 8px; }

.avpd-content ul, .avpd-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }

.avpd-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
}

.avpd-content th, .avpd-content td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 14px;
  text-align: left;
}

.avpd-content th { background: var(--avpd-base-3); color: var(--avpd-gold); }

/* CTA band inside article pages */
.avpd-cta-band {
  margin: 30px 0;
  padding: 26px;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 400px 180px at 85% 20%, rgba(220, 38, 38, 0.22), transparent 60%),
    linear-gradient(135deg, #1c1810, #13131f);
  border: 1px solid var(--avpd-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.avpd-cta-band strong {
  font-family: var(--avpd-font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--avpd-gold-bright);
}

/* ============================================================
   Pagination
   ============================================================ */
.avpd-pagination {
  margin: 36px 0;
  text-align: center;
}

.avpd-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.avpd-pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  padding: 9px 14px;
  background: var(--avpd-base-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--avpd-text);
  font-weight: 700;
}

.avpd-pagination .page-numbers:hover {
  border-color: var(--avpd-gold);
  color: var(--avpd-gold-bright);
}

.avpd-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--avpd-gold), var(--avpd-gold-bright));
  color: #14100a;
  border-color: transparent;
}

/* ============================================================
   Page headers (archive / search / 404)
   ============================================================ */
.avpd-pagehead {
  padding: 44px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.avpd-pagehead h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 0;
}

.avpd-pagehead h1 em { font-style: normal; color: var(--avpd-gold); }

.avpd-pagehead .avpd-pagehead-sub { color: var(--avpd-muted); margin-top: 6px; }

.avpd-404 { text-align: center; padding: 90px 20px; }

.avpd-404-code {
  font-family: var(--avpd-font-display);
  font-size: clamp(90px, 16vw, 180px);
  line-height: 1;
  background: linear-gradient(135deg, var(--avpd-gold), var(--avpd-red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

/* ============================================================
   Footer
   ============================================================ */
.avpd-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, var(--avpd-base-2), #0a0a10);
  border-top: 2px solid var(--avpd-gold);
  padding: 50px 0 20px;
}

.avpd-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-bottom: 36px;
}

.avpd-footer-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--avpd-gold);
  text-transform: uppercase;
}

.avpd-footer p, .avpd-footer li { color: var(--avpd-muted); font-size: 14px; }

.avpd-footer ul { list-style: none; margin: 0; padding: 0; }

.avpd-footer ul li { padding: 5px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.06); }

.avpd-footer ul a { color: var(--avpd-muted); }
.avpd-footer ul a:hover { color: var(--avpd-gold-bright); padding-left: 4px; }

.avpd-footer-brand img { height: 48px; margin-bottom: 12px; }

.avpd-footer-cta {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.16), rgba(212, 160, 23, 0.1));
  border: 1px solid var(--avpd-line);
  border-radius: 10px;
  padding: 22px;
  text-align: center;
}

.avpd-footer-cta strong {
  display: block;
  font-family: var(--avpd-font-display);
  font-size: 26px;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 12px;
}

.avpd-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes avpd-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.avpd-hero-inner > * { animation: avpd-rise 0.7s ease both; }
.avpd-hero-inner > *:nth-child(2) { animation-delay: 0.12s; }
.avpd-hero-inner > *:nth-child(3) { animation-delay: 0.24s; }
.avpd-hero-inner > *:nth-child(4) { animation-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Front page — portal hero
   ============================================================ */
.avpd-hero-portal {
  min-height: 520px;
  background: transparent;
  border-bottom: none;
}

.avpd-hero-portal::before {
  background:
    radial-gradient(ellipse 700px 420px at 18% 35%, rgba(212, 160, 23, 0.16), transparent 65%),
    radial-gradient(ellipse 500px 380px at 85% 75%, rgba(220, 38, 38, 0.14), transparent 60%),
    linear-gradient(90deg, rgba(13, 13, 20, 0.92) 0%, rgba(13, 13, 20, 0.62) 48%, rgba(13, 13, 20, 0.18) 100%);
}

.avpd-hero-portal .avpd-hero-inner { padding: 84px 20px; }

.avpd-hero-portal .avpd-hero-title span {
  background: linear-gradient(135deg, var(--avpd-gold), var(--avpd-gold-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Front page — game category showcase (glassmorphism)
   ============================================================ */
.avpd-game-section { padding: 48px 0 6px; }

.avpd-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.avpd-game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 18px 22px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  animation: avpd-rise 0.6s ease both;
}

.avpd-game-card::before {
  content: "";
  position: absolute;
  inset: -40% -40% auto;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(212, 160, 23, 0.14), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avpd-game-card:hover {
  transform: translateY(-6px);
  border-color: var(--avpd-gold);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 26px rgba(212, 160, 23, 0.28);
  color: var(--avpd-text);
}

.avpd-game-card:hover::before { opacity: 1; }

.avpd-game-icon {
  width: 76px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(13, 13, 20, 0.55);
  border: 1px solid var(--avpd-line);
  box-shadow: 0 0 18px rgba(212, 160, 23, 0.22);
}

.avpd-game-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(212, 160, 23, 0.35));
  transition: transform 0.25s ease;
}

.avpd-game-card:hover .avpd-game-icon img { transform: scale(1.12); }

.avpd-game-name {
  font-family: var(--avpd-font-display);
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.avpd-game-desc {
  font-size: 13px;
  color: var(--avpd-muted);
  line-height: 1.5;
}

.avpd-game-go {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--avpd-gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.avpd-game-card:hover .avpd-game-go { opacity: 1; transform: translateY(0); color: var(--avpd-gold-bright); }

/* ============================================================
   Front page — promotional banner
   ============================================================ */
.avpd-promo-banner { padding: 34px 0 10px; }

.avpd-promo-banner a {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--avpd-line);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 0 30px rgba(212, 160, 23, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.avpd-promo-banner a::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.avpd-promo-banner a:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.6), 0 0 44px rgba(212, 160, 23, 0.3);
}

.avpd-promo-banner a:hover::after { left: 120%; }

.avpd-promo-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   Front page — featured layout (1 big + 2 small)
   ============================================================ */
.avpd-featured-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}

.avpd-featured-side {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.avpd-featured-big, .avpd-featured-small {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.avpd-featured-big { height: 100%; min-height: 480px; }
.avpd-featured-small { flex: 1; min-height: 228px; }

.avpd-featured-big:hover, .avpd-featured-small:hover {
  border-color: var(--avpd-gold);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 160, 23, 0.18);
}

.avpd-featured-media {
  position: absolute;
  inset: 0;
  display: block;
}

.avpd-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.avpd-featured-big:hover .avpd-featured-media img,
.avpd-featured-small:hover .avpd-featured-media img { transform: scale(1.05); }

.avpd-featured-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  background: linear-gradient(180deg, transparent 30%, rgba(13, 13, 20, 0.72) 62%, rgba(13, 13, 20, 0.94) 100%);
}

.avpd-featured-cat { position: static; align-self: flex-start; }

.avpd-featured-title {
  font-family: var(--avpd-font-body);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.35;
  color: #fff;
  margin: 0;
}

.avpd-featured-big .avpd-featured-title { font-size: 30px; }

.avpd-featured-excerpt {
  color: var(--avpd-muted);
  font-size: 14.5px;
  max-width: 620px;
}

.avpd-featured-meta { border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 10px; }

/* ============================================================
   Front page — CTA band (gold-to-red strip)
   ============================================================ */
.avpd-cta-band.avpd-cta-band-home {
  margin: 48px 0 0;
  padding: 0;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(ellipse 620px 220px at 12% 50%, rgba(255, 214, 110, 0.28), transparent 62%),
    linear-gradient(100deg, var(--avpd-gold) 0%, #e07b12 46%, var(--avpd-red) 100%);
}

.avpd-cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 30px;
  padding-bottom: 30px;
}

.avpd-cta-band-copy { display: flex; flex-direction: column; gap: 4px; }

.avpd-cta-band-home strong {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: 0.05em;
  color: #14100a;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.22);
}

.avpd-cta-band-home span {
  color: rgba(20, 16, 10, 0.78);
  font-weight: 500;
  font-size: 15px;
}

.avpd-btn-dark {
  background: #14100a;
  color: var(--avpd-gold-bright);
  font-size: 19px;
  padding: 13px 34px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.avpd-btn-dark:hover { color: #ffd056; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }

/* ============================================================
   Front page — latest posts list
   ============================================================ */
.avpd-post-list {
  display: flex;
  flex-direction: column;
}

.avpd-post-list-item {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.avpd-post-list-item:hover {
  background: rgba(212, 160, 23, 0.06);
  transform: translateX(4px);
}

.avpd-post-list-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  background: var(--avpd-base-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.avpd-post-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.avpd-post-list-item:hover .avpd-post-list-thumb img { transform: scale(1.07); }

.avpd-post-list-cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--avpd-gold-bright);
  margin-bottom: 4px;
}

.avpd-post-list-title {
  font-family: var(--avpd-font-body);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.4;
  margin: 0 0 4px;
}

.avpd-post-list-title a { color: var(--avpd-text); }
.avpd-post-list-title a:hover { color: var(--avpd-gold-bright); }

.avpd-post-list-meta { font-size: 12.5px; color: var(--avpd-muted); }

/* ============================================================
   Front page — FAQ accordion
   ============================================================ */
.avpd-faq-wrap { max-width: 860px; }

.avpd-faq-item {
  background: var(--avpd-base-2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.avpd-faq-item[open] { border-color: var(--avpd-line); }

.avpd-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 52px 17px 22px;
  font-weight: 700;
  font-size: 16px;
  color: var(--avpd-text);
  position: relative;
  transition: color 0.2s ease;
}

.avpd-faq-item summary::-webkit-details-marker { display: none; }

.avpd-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--avpd-font-display);
  font-size: 26px;
  color: var(--avpd-gold);
  transition: transform 0.25s ease;
}

.avpd-faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.avpd-faq-item summary:hover { color: var(--avpd-gold-bright); }

.avpd-faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: var(--avpd-muted);
  font-size: 14.5px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .avpd-grid { grid-template-columns: repeat(2, 1fr); }
  .avpd-layout { grid-template-columns: 1fr; }
  .avpd-sidebar { position: static; }
  .avpd-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .avpd-game-grid { grid-template-columns: repeat(2, 1fr); }
  .avpd-featured-layout { grid-template-columns: 1fr; }
  .avpd-featured-big { min-height: 380px; }
  .avpd-featured-small { min-height: 200px; }
}

@media (max-width: 680px) {
  .avpd-grid, .avpd-grid-2 { grid-template-columns: 1fr; }
  .avpd-hcard { grid-template-columns: 1fr; }
  .avpd-hcard .avpd-card-thumb { min-height: 200px; }
  .avpd-hcard-body { padding: 20px; }
  .avpd-topbar-inner {
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 14px;
  }
  .avpd-menu-toggle {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
  }
  .avpd-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--avpd-gold);
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(212, 160, 23, 0.35);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .avpd-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .avpd-menu-toggle.active span:nth-child(2) { opacity: 0; }
  .avpd-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .avpd-brand { order: 2; margin: 0 auto; gap: 8px; }
  .avpd-brand img { height: 34px; }
  .avpd-brand-name { font-size: 23px; }
  .avpd-search-toggle {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .avpd-search-toggle svg {
    width: 22px;
    height: 22px;
    stroke: var(--avpd-gold);
    filter: drop-shadow(0 0 6px rgba(212, 160, 23, 0.3));
    transition: stroke 0.2s ease;
  }
  .avpd-search-toggle.active svg { stroke: var(--avpd-gold-bright); }
  .avpd-cta-group {
    order: 4;
    flex-basis: 100%;
    justify-content: center;
    gap: 8px;
    padding-top: 2px;
  }
  .avpd-btn { font-size: 14px; padding: 7px 14px; }
  .avpd-mobile-search { display: none; }
  .avpd-mobile-search.open {
    display: block;
    padding: 12px 14px 14px;
    border-top: 1px solid var(--avpd-line);
    background: rgba(13, 13, 20, 0.5);
  }
  .avpd-mobile-search .avpd-searchform input[type="text"],
  .avpd-mobile-search .avpd-searchform input[type="search"] { width: auto; flex: 1; }
  .avpd-mainnav { display: none; }
  .avpd-mainnav.open { display: block; }
  .avpd-mainnav .avpd-nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 4px 0 10px;
    gap: 0;
  }
  .avpd-mainnav .avpd-menu { flex-direction: column; width: 100%; }
  .avpd-mainnav .avpd-menu li a {
    padding: 12px 20px;
    font-size: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .avpd-mainnav .avpd-menu li:last-child a { border-bottom: none; }
  .avpd-mainnav .avpd-menu .sub-menu,
  .avpd-mainnav .avpd-menu li:hover > .sub-menu {
    position: static;
    display: none;
  }
  .avpd-mainnav .avpd-menu li.current-menu-item > .sub-menu,
  .avpd-mainnav .avpd-menu li:hover > .sub-menu { display: block; }
  .avpd-mainnav .avpd-menu .sub-menu {
    min-width: 0;
    background: var(--avpd-base);
    border: none;
    border-left: 3px solid var(--avpd-gold);
    margin-left: 18px;
    padding: 2px 0;
  }
  .avpd-mainnav .avpd-menu .sub-menu li a {
    padding: 10px 14px;
    font-size: 15px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  }
  .avpd-mainnav .avpd-nav-search { display: none; }
  .avpd-article { padding: 22px; }
  .avpd-footer-grid { grid-template-columns: 1fr; }
  .avpd-hero { min-height: 340px; }
  .avpd-hero-portal { min-height: 440px; }
  .avpd-hero-portal .avpd-hero-inner { padding: 60px 20px; }
  .avpd-game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .avpd-game-card { padding: 20px 12px 16px; }
  .avpd-game-icon { width: 60px; height: 60px; }
  .avpd-game-icon img { width: 40px; height: 40px; }
  .avpd-featured-big { min-height: 300px; }
  .avpd-featured-big .avpd-featured-title { font-size: 21px; }
  .avpd-cta-band-inner { justify-content: center; text-align: center; }
  .avpd-post-list-item { grid-template-columns: 104px 1fr; gap: 12px; }
  .avpd-post-list-title { font-size: 15px; }
}
