/* ===== PAD ARSENAL - Game Controller Review Blog ===== */

@import url('https://fonts.googleapis.com/css2?family=Bungee&family=JetBrains+Mono:wght@400;500;700&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a25;
  --bg-elevated: #22222e;
  --border: #2a2a3a;
  --border-bright: #3a3a4f;
  --text-primary: #f0f0f5;
  --text-secondary: #a0a0b5;
  --text-muted: #6a6a80;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-pink: #ff2d75;
  --accent-yellow: #ffd93d;
  --accent-blue: #3da8ff;
  --shadow-glow: 0 0 24px rgba(0, 255, 136, 0.15);
  --font-display: 'Bungee', cursive;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(255, 45, 117, 0.04) 0%, transparent 25%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Scanline overlay - retro feel */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.008) 2px,
    rgba(255, 255, 255, 0.008) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

a { color: var(--accent); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--accent-pink); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 8px;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.logo span { color: var(--accent); }

.nav-main {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-main a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 4px 0;
}

.nav-main a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s;
}

.nav-main a:hover,
.nav-main a.active {
  color: var(--text-primary);
}

.nav-main a:hover::after,
.nav-main a.active::after {
  transform: scaleX(1);
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
  max-width: 900px;
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 32px;
}

.stat .stat-num {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--accent);
  display: block;
}

.stat .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ===== SECTIONS ===== */
section { padding: 60px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.5px;
}

.section-title .accent { color: var(--accent); }

.section-link {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ===== FEATURED CARD (HERO-SIZED) ===== */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.featured-main {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
}

.featured-main:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.featured-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a30, #0f0f1a);
  position: relative;
  overflow: hidden;
}

.featured-thumb svg {
  width: 100%;
  height: 100%;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.featured-main:hover .featured-thumb img {
  transform: scale(1.03);
}

.featured-body {
  padding: 32px;
}

.featured-body .category-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-primary);
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 16px;
  border-radius: 4px;
}

.featured-body h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.featured-body h2 a {
  color: var(--text-primary);
}

.featured-body h2 a:hover {
  color: var(--accent);
}

.featured-body .excerpt {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== FEATURED SIDE LIST ===== */
.featured-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.side-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: start;
  transition: all 0.3s;
}

.side-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.side-number {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--accent);
  min-width: 32px;
}

.side-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.side-card h3 a { color: var(--text-primary); }
.side-card h3 a:hover { color: var(--accent); }

.side-card .post-meta { font-size: 11px; gap: 12px; }

/* ===== POST GRID ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.post-thumb {
  aspect-ratio: 16/10;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}

.post-thumb svg {
  width: 100%;
  height: 100%;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.04);
}

.post-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.category-tag-small {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 14px;
  border-radius: 4px;
  align-self: start;
}

.post-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.post-card h3 a { color: var(--text-primary); }
.post-card h3 a:hover { color: var(--accent); }

.post-card .excerpt {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 18px;
  flex: 1;
}

.post-card .post-meta {
  font-size: 11px;
}

/* ===== RATING BADGE ===== */
.rating-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
}

/* ===== CATEGORY CHIPS ===== */
.category-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.chip:hover, .chip.active {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

/* ===== ARTICLE PAGE ===== */
.article-hero {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--border-bright); }

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.article-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.article-meta strong { color: var(--accent); }

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}

.article-content > p,
.article-content > h2,
.article-content > h3,
.article-content > ul,
.article-content > ol,
.article-content > blockquote,
.article-content > .callout,
.article-content > .spec-table,
.article-content > figure {
  margin-bottom: 24px;
}

.article-content .lead {
  font-size: 20px;
  color: var(--text-primary);
  line-height: 1.6;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.article-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  position: relative;
  padding-left: 20px;
}

.article-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: var(--accent);
}

.article-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.article-content p {
  color: var(--text-secondary);
}

.article-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.article-content ul, .article-content ol {
  padding-left: 24px;
  color: var(--text-secondary);
}

.article-content li { margin-bottom: 10px; }

/* ============================================================
   Article images - featured image และรูปแทรกในบทความ
   ============================================================ */
.article-image {
  margin: 32px 0;
  max-width: 100%;
}

.article-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--bg-card);
}

.article-image figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  letter-spacing: 0.5px;
}

/* รูปแทรกอินไลน์ในเนื้อหา - ขนาดมาตรฐาน */
.article-content img {
  max-width: 100%;
  height: auto;
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-card);
  padding: 20px 24px;
  font-size: 18px;
  font-style: italic;
  color: var(--text-primary);
  border-radius: 0 8px 8px 0;
}

.callout {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  gap: 16px;
}

.callout .icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font-display);
}

.callout .text { flex: 1; }
.callout .text strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

.spec-table {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.spec-table table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.spec-table th {
  background: var(--bg-elevated);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  font-weight: 600;
}

.spec-table tr:last-child td { border-bottom: none; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.pros, .cons {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.pros { border-top: 3px solid var(--accent); }
.cons { border-top: 3px solid var(--accent-pink); }

.pros h4, .cons h4 {
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 14px;
}

.pros h4 { color: var(--accent); }
.cons h4 { color: var(--accent-pink); }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pros li, .cons li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.cons li::before {
  content: '−';
  position: absolute;
  left: 0;
  color: var(--accent-pink);
  font-weight: 700;
}

.verdict {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--accent-dim);
  border-radius: 12px;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.verdict .score {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.verdict .score-label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.verdict h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 12px;
}

.verdict p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Tags */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Related */
.related-section {
  background: var(--bg-secondary);
  padding: 60px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 24px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

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

.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }

.footer-about p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav-main { gap: 16px; }
  .nav-main a { font-size: 12px; }
}

@media (max-width: 600px) {
  .header-inner { padding: 14px 16px; }
  .logo { font-size: 18px; }
  .hero { padding: 50px 0 40px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat .stat-num { font-size: 28px; }
  .container { padding: 0 16px; }
}


/* ============================================================
   Mobile header fix - แก้ปัญหา logo + nav overflow บนมือถือ
   ============================================================ */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 14px;
    gap: 12px;
  }

  /* Logo เล็กลง */
  .logo {
    font-size: 15px;
    letter-spacing: 0;
    flex-shrink: 0;
  }

  .logo-mark {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }

  /* Nav กระชับขึ้น ไม่ตัดบรรทัด */
  .nav-main {
    gap: 14px;
  }

  .nav-main a {
    font-size: 12px;
    white-space: nowrap;
    letter-spacing: 0.5px;
  }
}

@media (max-width: 560px) {
  /* บนจอเล็กกว่านี้ ซ่อน "GAME" และ "REVIEWS" เหลือแค่ CTRL */
  .header-inner > .logo {
    font-size: 0;
  }

  .header-inner > .logo .logo-mark {
    font-size: 16px;
  }

  .header-inner > .logo span {
    font-size: 17px;
    letter-spacing: 1px;
  }

  /* Nav ใช้ font เล็กกว่าและ wrap ได้ */
  .nav-main {
    gap: 10px;
    flex-wrap: nowrap;
  }

  .nav-main a {
    font-size: 11px;
    padding: 4px 0;
  }
}

@media (max-width: 400px) {
  .nav-main {
    gap: 8px;
  }

  .nav-main a {
    font-size: 10px;
    letter-spacing: 0;
  }
}
