/*
Theme Name: Gamer Depot
Theme URI: https://thegamerdepot.com
Author: The Gamer Depot
Author URI: https://thegamerdepot.com
Description: Tema WordPress magazine terang (light mode) untuk portal review, panduan, dan berita games. Tampilan bersih bergaya majalah dengan hero featured story, grid artikel, dan aksen oranye.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gamer-depot
Tags: gaming, magazine, news, blog, light, responsive, custom-menu, featured-images
*/

/* ============================================================
   Variabel & Reset
   ============================================================ */
:root {
  --gd-bg:        #f5f5f2;
  --gd-surface:   #ffffff;
  --gd-ink:       #16181d;
  --gd-ink-soft:  #43474f;
  --gd-muted:     #7a8088;
  --gd-line:      #e4e3dd;
  --gd-accent:    #ff5a1f;
  --gd-accent-2:  #ffb000;
  --gd-dark:      #16181d;
  --gd-radius:    10px;
  --gd-shadow:    0 1px 2px rgba(20,24,32,.06), 0 8px 24px rgba(20,24,32,.06);
  --gd-wrap:      1180px;
  --gd-font:      "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --gd-head:      "Archivo", "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--gd-font);
  background: var(--gd-bg);
  color: var(--gd-ink);
  line-height: 1.65;
  font-size: 17px;
}

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

a { color: var(--gd-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--gd-head);
  line-height: 1.2;
  color: var(--gd-ink);
  font-weight: 800;
  letter-spacing: -.01em;
}

.gd-container {
  width: 100%;
  max-width: var(--gd-wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.gd-btn {
  display: inline-block;
  background: var(--gd-accent);
  color: #fff;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--gd-head);
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease;
}
.gd-btn:hover { background: #e6470f; text-decoration: none; transform: translateY(-1px); }

.gd-badge {
  display: inline-block;
  font-family: var(--gd-head);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gd-accent);
  background: rgba(255,90,31,.1);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ============================================================
   Top bar + Header / Masthead
   ============================================================ */
.gd-topbar {
  background: var(--gd-dark);
  color: #c9ccd2;
  font-size: .82rem;
}
.gd-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}
.gd-topbar a { color: #c9ccd2; }
.gd-topbar a:hover { color: #fff; }
.gd-topbar .gd-date { letter-spacing: .02em; }

.gd-header {
  background: var(--gd-surface);
  border-bottom: 1px solid var(--gd-line);
}
.gd-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}
.gd-logo {
  font-family: var(--gd-head);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--gd-ink);
  white-space: nowrap;
}
.gd-logo:hover { text-decoration: none; }
.gd-logo b { color: var(--gd-accent); }
.gd-logo .chip {
  display: inline-block;
  background: var(--gd-ink);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 2px;
}

.gd-header-search { margin-left: auto; }
.gd-header-search .gd-search-form { display: flex; }
.gd-header-search input[type="search"] {
  border: 1px solid var(--gd-line);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  padding: 9px 16px;
  font: inherit;
  font-size: .9rem;
  width: 210px;
  background: var(--gd-bg);
  color: var(--gd-ink);
}
.gd-header-search input[type="search"]:focus { outline: 2px solid var(--gd-accent-2); }
.gd-header-search button {
  border-radius: 0 999px 999px 0;
  padding: 9px 18px;
}

/* Navigation bar */
.gd-navbar {
  background: var(--gd-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.gd-navbar-inner { display: flex; align-items: center; }
.gd-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.gd-nav li { position: relative; }
.gd-nav a {
  display: block;
  color: #e8eaee;
  font-family: var(--gd-head);
  font-weight: 600;
  font-size: .92rem;
  padding: 14px 16px;
  letter-spacing: .01em;
}
.gd-nav a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.gd-nav .current-menu-item > a { color: var(--gd-accent-2); box-shadow: inset 0 -3px 0 var(--gd-accent); }

.gd-nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gd-surface);
  min-width: 200px;
  flex-direction: column;
  box-shadow: var(--gd-shadow);
  border: 1px solid var(--gd-line);
  border-radius: 0 0 8px 8px;
}
.gd-nav li:hover > ul { display: flex; }
.gd-nav ul ul a { color: var(--gd-ink); padding: 10px 16px; }
.gd-nav ul ul a:hover { background: var(--gd-bg); }

.gd-menu-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 0;
  font-family: var(--gd-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 4px;
  cursor: pointer;
}

/* ============================================================
   Layout utama
   ============================================================ */
.gd-main { padding: 36px 0 56px; }

.gd-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
}
.gd-section-head h2 {
  font-size: 1.35rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.gd-section-head::after {
  content: "";
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg, var(--gd-accent), transparent);
  border-radius: 2px;
}

/* ============================================================
   Layout daftar (listing) dengan sidebar
   ============================================================ */
.gd-listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}
/* Grid di dalam kolom yang lebih sempit: 2 kolom */
.gd-listing .gd-grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .gd-listing { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero featured
   ============================================================ */
.gd-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-bottom: 44px;
}
.gd-hero-main {
  position: relative;
  border-radius: var(--gd-radius);
  overflow: hidden;
  min-height: 420px;
  background: var(--gd-dark);
  box-shadow: var(--gd-shadow);
}
.gd-hero-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}
.gd-hero-main .gd-hero-body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(to top, rgba(8,9,12,.92) 5%, rgba(8,9,12,.2) 60%, transparent);
}
.gd-hero-main h2 {
  color: #fff;
  font-size: 2rem;
  margin: 10px 0 8px;
}
.gd-hero-main h2 a { color: #fff; }
.gd-hero-main h2 a:hover { color: var(--gd-accent-2); text-decoration: none; }
.gd-hero-main .gd-meta { color: #c9ccd2; }

.gd-hero-side { display: flex; flex-direction: column; gap: 22px; }
.gd-hero-side .gd-mini {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  align-items: center;
}
.gd-hero-side .gd-mini .thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--gd-line);
}
.gd-hero-side .gd-mini .thumb img { width: 100%; height: 100%; object-fit: cover; }
.gd-hero-side .gd-mini h3 { font-size: 1.02rem; margin: 6px 0 0; }
.gd-hero-side .gd-mini h3 a { color: var(--gd-ink); }

/* ============================================================
   Grid artikel (kartu)
   ============================================================ */
.gd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.gd-card {
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .2s ease;
}
.gd-card:hover { transform: translateY(-4px); box-shadow: var(--gd-shadow); }
.gd-card-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--gd-line);
  overflow: hidden;
}
.gd-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gd-card:hover .gd-card-thumb img { transform: scale(1.05); }
.gd-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gd-card-title { font-size: 1.12rem; margin: 0; }
.gd-card-title a { color: var(--gd-ink); }
.gd-card-title a:hover { color: var(--gd-accent); text-decoration: none; }
.gd-card-excerpt { color: var(--gd-ink-soft); font-size: .94rem; margin: 0; }
.gd-card .gd-meta { margin-top: auto; }

.gd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .82rem;
  color: var(--gd-muted);
  font-family: var(--gd-head);
  font-weight: 500;
}
.gd-meta a { color: var(--gd-muted); }

/* ============================================================
   Single / Page artikel
   ============================================================ */
.gd-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}
@media (max-width: 980px) { .gd-article-wrap { grid-template-columns: 1fr; } }

.gd-article { background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-radius); overflow: hidden; }
.gd-article-hero { aspect-ratio: 21 / 9; background: var(--gd-line); overflow: hidden; }
.gd-article-hero img { width: 100%; height: 100%; object-fit: cover; }
.gd-article-content { padding: 30px 34px 38px; }
@media (max-width: 600px) { .gd-article-content { padding: 22px 18px; } }
.gd-article-title { font-size: 2.2rem; margin: 12px 0 16px; line-height: 1.15; }
.gd-article-body { font-size: 1.05rem; color: var(--gd-ink-soft); }
.gd-article-body p { margin: 0 0 1.3em; }
.gd-article-body h2 { font-size: 1.5rem; margin: 1.6em 0 .6em; }
.gd-article-body h3 { font-size: 1.2rem; margin: 1.4em 0 .5em; }
.gd-article-body img { border-radius: 8px; margin: 1.2em 0; }
.gd-article-body blockquote {
  margin: 1.4em 0;
  padding: 4px 22px;
  border-left: 4px solid var(--gd-accent);
  color: var(--gd-ink);
  font-style: italic;
  background: rgba(255,90,31,.05);
}
.gd-article-body a { text-decoration: underline; }
.gd-article-body ul, .gd-article-body ol { padding-left: 1.4em; }

/* Kotak skor verdict (custom field gd_score 0-100) */
.gd-verdict {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 26px 0;
  padding: 22px 24px;
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  background: linear-gradient(135deg, #fff, #fff7f0);
}
.gd-verdict-score {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  flex: none;
  border-radius: 50%;
  font-family: var(--gd-head);
  font-weight: 800;
  font-size: 2rem;
  color: #fff;
  background: conic-gradient(var(--gd-accent) var(--deg, 280deg), #e9e7e1 0);
}
.gd-verdict-score span {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--gd-dark);
}
.gd-verdict-label { font-family: var(--gd-head); font-weight: 800; font-size: 1.1rem; margin: 0; }
.gd-verdict-sub { color: var(--gd-muted); margin: 2px 0 0; font-size: .9rem; }

.gd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 6px; }
.gd-tag {
  font-size: .82rem;
  color: var(--gd-ink-soft);
  background: var(--gd-bg);
  border: 1px solid var(--gd-line);
  padding: 5px 12px;
  border-radius: 999px;
}
.gd-tag:hover { border-color: var(--gd-accent); color: var(--gd-accent); text-decoration: none; }

.gd-author {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 30px;
  padding: 22px;
  background: var(--gd-bg);
  border-radius: var(--gd-radius);
}
.gd-author img { border-radius: 50%; }
.gd-author-name { font-family: var(--gd-head); font-weight: 800; font-size: 1.05rem; }
.gd-author-bio { color: var(--gd-ink-soft); font-size: .92rem; margin: 4px 0 0; }

.gd-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 26px 0;
}
.gd-postnav a {
  display: block;
  padding: 16px 18px;
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  color: var(--gd-ink);
  font-family: var(--gd-head);
  font-weight: 600;
}
.gd-postnav a:hover { border-color: var(--gd-accent); text-decoration: none; }
.gd-postnav small { color: var(--gd-muted); display: block; font-weight: 500; }
@media (max-width: 600px) { .gd-postnav { grid-template-columns: 1fr; } }

/* ============================================================
   Sidebar
   ============================================================ */
.gd-sidebar { display: flex; flex-direction: column; gap: 26px; }
.gd-widget {
  background: var(--gd-surface);
  border: 1px solid var(--gd-line);
  border-radius: var(--gd-radius);
  padding: 20px;
}
.gd-widget-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gd-accent);
  display: inline-block;
}
.gd-widget ul { list-style: none; margin: 0; padding: 0; }
.gd-widget ul li { padding: 7px 0; border-bottom: 1px solid var(--gd-line); }
.gd-widget ul li:last-child { border-bottom: 0; }
.gd-widget a { color: var(--gd-ink); }
.gd-widget a:hover { color: var(--gd-accent); }

.gd-popular-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.gd-popular-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.gd-popular-item .t { font-family: var(--gd-head); font-weight: 600; font-size: .92rem; line-height: 1.3; }
.gd-rank {
  font-family: var(--gd-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--gd-accent);
  width: 26px;
  flex: none;
}

/* ============================================================
   Komentar
   ============================================================ */
.gd-comments { margin-top: 36px; background: var(--gd-surface); border: 1px solid var(--gd-line); border-radius: var(--gd-radius); padding: 26px 30px; }
.gd-comments h3 { margin-top: 0; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--gd-line); }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-author { font-family: var(--gd-head); font-weight: 700; }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: .8rem; color: var(--gd-muted); }
.comment-respond { margin-top: 24px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gd-line);
  border-radius: 8px;
  font: inherit;
  margin-top: 4px;
  background: var(--gd-bg);
}
.comment-form p { margin: 0 0 14px; }

/* ============================================================
   Pagination
   ============================================================ */
.gd-pagination, .pagination, .nav-links { margin: 40px 0 0; display: flex; justify-content: center; }
.gd-pagination .nav-links, .pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--gd-line);
  border-radius: 8px;
  background: var(--gd-surface);
  color: var(--gd-ink);
  font-family: var(--gd-head);
  font-weight: 700;
}
.page-numbers.current { background: var(--gd-accent); color: #fff; border-color: var(--gd-accent); }
.page-numbers:hover { border-color: var(--gd-accent); text-decoration: none; }

/* ============================================================
   Footer
   ============================================================ */
.gd-footer {
  background: var(--gd-dark);
  color: #aeb3bc;
  padding: 48px 0 0;
  margin-top: 40px;
}
.gd-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
}
.gd-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px; }
.gd-footer a { color: #aeb3bc; }
.gd-footer a:hover { color: var(--gd-accent-2); }
.gd-footer ul { list-style: none; padding: 0; margin: 0; }
.gd-footer ul li { padding: 5px 0; }
.gd-footer-brand .gd-logo { color: #fff; font-size: 1.5rem; }
.gd-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 0;
  text-align: center;
  font-size: .85rem;
  color: #7a8088;
}

/* Accessibility */
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  width: 1px; height: 1px; overflow: hidden;
}

/* ============================================================
   Responsif
   ============================================================ */
@media (max-width: 980px) {
  .gd-grid { grid-template-columns: repeat(2, 1fr); }
  .gd-hero { grid-template-columns: 1fr; }
  .gd-hero-main { min-height: 320px; }
  .gd-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .gd-header-inner { flex-wrap: wrap; gap: 14px; }
  .gd-header-search { margin-left: 0; width: 100%; }
  .gd-header-search input[type="search"] { width: 100%; flex: 1; }
  .gd-menu-toggle { display: block; margin-left: auto; }
  .gd-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
  }
  .gd-nav.is-open { display: block; }
  .gd-nav ul { flex-direction: column; width: 100%; }
  .gd-nav ul ul { position: static; box-shadow: none; border: 0; }
  .gd-navbar-inner { flex-wrap: wrap; }
  .gd-grid { grid-template-columns: 1fr; }
  .gd-article-title { font-size: 1.6rem; }
  .gd-footer-grid { grid-template-columns: 1fr; }
}
