/*
Theme Name: Gamepad Tester
Theme URI: https://gamepad-tester.virenial.com
Author: Virenial
Author URI: https://virenial.com
Description: Gamepad Tester — Test Stick PS4, PS5, Xbox, Nintendo, USB PC Online. Alat diagnostik gamepad real-time gratis di browser. Test stick online, cek stick drift, test vibration controller.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: gamepad, controller, tester, test-stick, gamepad-tester, diagnostic, gaming, light, clean, minimal, responsive, seo-optimized
Text Domain: gamepad-tester
*/

/* ====================================
   CSS CUSTOM PROPERTIES — LIGHT THEME
   ==================================== */
:root {
  /* Brand Colors */
  --primary:       #4A9EFF;
  --primary-light: rgba(74, 158, 255, 0.12);
  --accent:        #FF3B5C;
  --success:       #34C759;
  --warning:       #FF9500;

  /* Neutrals — Light */
  --bg-base:       #F5F7FA;
  --bg-surface:    #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-elevated:   #F0F2F5;
  --border:        #E2E6ED;
  --border-strong: #C8CDD6;
  --text-primary:  #1A1D23;
  --text-secondary:#5A6075;
  --text-muted:    #9BA3B5;

  /* Gamepad Button Colors */
  --btn-a:    #34C759;
  --btn-b:    #FF3B5C;
  --btn-x:    #4A9EFF;
  --btn-y:    #FF9500;
  --btn-lb:   #8E6FD8;
  --btn-rb:   #8E6FD8;
  --btn-lt:   #FF6B35;
  --btn-rt:   #FF6B35;

  /* SVG Gamepad colors */
  --svg-body:        #F0F3F9;
  --svg-btn-bg:      #E8ECF4;
  --svg-face-bg:     #F5F7FC;
  --svg-stroke:      #B8C4D8;
  --svg-inner:       #D0D8EA;
  --svg-label:       #7A8BA8;
  --svg-arrow:       #9AAAC0;
  --svg-stick-bg:    #E2E8F4;
  --svg-stick-inner: #EDF0F8;
  --svg-cross:       #C8D4E8;

  /* Typography */
  --font-display: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Transitions */
  --transition-fast:   0.12s ease;
  --transition-medium: 0.25s ease;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
}

/* ====================================
   RESET & BASE
   ==================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ====================================
   TYPOGRAPHY
   ==================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

h1 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-secondary); line-height: 1.7; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: #1a7ae0; }

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

/* ====================================
   LAYOUT
   ==================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 72px 0; }

/* ====================================
   HEADER & NAVIGATION
   ==================================== */
#site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition-medium);
}

#site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.logo-icon svg { width: 100%; height: 100%; }

.logo-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

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

.logo-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: -2px;
  letter-spacing: 0.02em;
}

/* Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 6px 14px !important;
}

.nav-cta:hover {
  background: #1a7ae0 !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ====================================
   HERO SECTION
   ==================================== */
.hero {
  padding: 56px 0 40px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(74,158,255,0.2);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.15;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 24px;
  line-height: 1.65;
}

.compat-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.compat-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.compat-badge-icon { font-size: 0.85rem; }

/* ====================================
   TESTER SECTION — hardwaretester.com style
   ==================================== */
.tester-section {
  padding: 32px 0 48px;
}

.tester-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ── Tabs ── */
.tester-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.tester-tab {
  padding: 11px 16px;
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.tester-tab:last-child { border-right: none; }
.tester-tab.active {
  background: var(--bg-surface);
  border-bottom: 2px solid var(--primary);
}
.tester-tab-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.tester-tab-dots {
  display: flex;
  gap: 3px;
  margin-top: 5px;
}
.tester-tab-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
}
.tester-tab-dot--active { background: var(--primary) !important; }

/* ── Header ── */
.tester-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 14px;
  border-bottom: 1px solid var(--border);
}
.tester-controller-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.tester-controller-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* ── Connection Status ── */
.connection-status { display: flex; align-items: center; }
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.status-indicator.connected {
  background: rgba(52,199,89,0.08);
  border-color: rgba(52,199,89,0.3);
  color: var(--success);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}
.status-indicator.connected .status-dot {
  background: var(--success);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.6; transform:scale(0.8); }
}

/* ── Meta Row ── */
.tester-meta {
  display: flex;
  gap: 28px;
  padding: 10px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-base);
  flex-wrap: wrap;
}
.tester-meta-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1px;
}
.tester-meta-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

/* ── Body: 2-col layout ── */
.tester-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.tester-left {
  padding: 20px 22px 22px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.tester-right {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-base);
}

/* ── Section Label (like hardwaretester sub-headings) ── */
.ht-section-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

/* ── Button Grid: circular style ── */
.ht-buttons-wrap { margin-bottom: 4px; }
.ht-buttons-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.ht-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
}
.ht-btn-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: all 0.1s ease;
  position: relative;
}
.ht-btn-label {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-transform: uppercase;
  line-height: 1;
  transition: color 0.1s;
}
.ht-btn-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.1s ease;
}

/* Active state — circle lights up with its color */
.ht-btn.active .ht-btn-circle,
.ht-btn.pressed .ht-btn-circle {
  border-color: var(--btn-color);
  background: color-mix(in srgb, var(--btn-color) 14%, transparent);
  transform: scale(0.92);
  box-shadow: 0 0 10px color-mix(in srgb, var(--btn-color) 35%, transparent);
}
.ht-btn.active .ht-btn-label,
.ht-btn.pressed .ht-btn-label {
  color: var(--btn-color);
}
.ht-btn.active .ht-btn-dot,
.ht-btn.pressed .ht-btn-dot {
  background: var(--btn-color);
  box-shadow: 0 0 6px var(--btn-color);
}

/* ── Triggers ── */
.ht-triggers-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ht-trigger-item {}
.ht-trigger-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.ht-trigger-name {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.ht-trigger-val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--primary);
}
.ht-trigger-track {
  height: 10px;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.ht-trigger-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #7BC8FF);
  border-radius: 100px;
  transition: width 0.05s;
}

/* ── Sticks ── */
.ht-sticks-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ht-stick { text-align: center; }
.ht-stick-label {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 7px;
  text-transform: uppercase;
}
.ht-stick-zone { display: flex; justify-content: center; margin-bottom: 7px; }
.ht-stick-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-base);
  overflow: hidden;
}
.ht-stick-cross-h {
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
  transform: translateY(-50%);
}
.ht-stick-cross-v {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}
.ht-stick-dot {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(74,158,255,0.5);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: top 0.04s, left 0.04s;
  z-index: 1;
}
.ht-stick-vals {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.ht-stick-axis {
  display: flex;
  gap: 4px;
  align-items: center;
}
.ht-axis-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}
.ht-axis-val {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Action Buttons ── */
.tester-action-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ht-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.ht-action-btn:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Event Log ── */
.ht-event-log {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.9;
  color: var(--text-muted);
  height: 90px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.ht-log-placeholder {
  opacity: 0.5;
  font-style: italic;
}
.ht-event-log .log-time  { color: var(--text-muted); }
.ht-event-log .log-event { color: var(--primary); }
.ht-event-log .log-value { color: var(--success); }

/* Keep legacy log classes working */
.tester-log { display: none; }

/* ── Gamepad SVG ── */
.gamepad-visual-wrap {
  width: 100%;
  max-width: 520px;
  padding: 8px;
}
#gamepad-svg { width: 100%; height: auto; }

/* SVG pressed state */
#gamepad-svg .gp-btn.pressed rect,
#gamepad-svg .gp-btn.pressed path,
#gamepad-svg .gp-btn.pressed circle {
  fill: var(--primary-light) !important;
  stroke: var(--primary) !important;
}
#gamepad-svg .gp-btn.pressed text {
  fill: var(--primary) !important;
}
#gamepad-svg .gp-btn.pressed polygon {
  fill: var(--primary) !important;
}
#gamepad-svg .btn-a.pressed circle  { stroke: #4A9EFF !important; fill: rgba(74,158,255,0.15) !important; }
#gamepad-svg .btn-b.pressed circle  { stroke: #FF3B5C !important; fill: rgba(255,59,92,0.15) !important; }
#gamepad-svg .btn-x.pressed circle  { stroke: #e060c0 !important; fill: rgba(224,96,192,0.15) !important; }
#gamepad-svg .btn-y.pressed circle  { stroke: #34c759 !important; fill: rgba(52,199,89,0.15) !important; }

/* ── Connect Prompt ── */
.connect-prompt {
  padding: 40px 20px;
  text-align: center;
}
.connect-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.connect-icon svg { width: 40px; height: 40px; }
.connect-title { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.connect-desc { font-size: 0.88rem; color: var(--text-secondary); max-width: 340px; margin: 0 auto 20px; }
.connect-steps { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.connect-step {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem; color: var(--text-secondary);
  background: var(--bg-base); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 7px 11px;
}
.connect-step-num {
  width: 20px; height: 20px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 800; flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .tester-body { grid-template-columns: 1fr; }
  .tester-left { border-right: none; border-bottom: 1px solid var(--border); }
  .tester-right { min-height: 300px; }
  .ht-buttons-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 540px) {
  .tester-tabs { grid-template-columns: repeat(2, 1fr); }
  .ht-buttons-grid { grid-template-columns: repeat(5, 1fr); }
  .ht-sticks-wrap { grid-template-columns: 1fr 1fr; }
  .tester-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ====================================
   FEATURES SECTION
   ==================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-medium);
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 1.3rem;
}

.feature-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ====================================
   SECTION HEADER
   ==================================== */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ====================================
   FOOTER
   ==================================== */
#site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.7;
  max-width: 260px;
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}
.footer-links li a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover { color: var(--primary); }

/* ====================================
   STATIC PAGES
   ==================================== */
.page-hero {
  padding: 100px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  background: var(--bg-surface);
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px 72px;
}

.page-content h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
}

.page-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.page-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}

.page-content ul li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 7px;
}

.page-content ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Contact Form */
.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 28px;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.1);
}

.form-textarea { height: 130px; resize: vertical; }

.btn-submit {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.btn-submit:hover { background: #1a7ae0; }

/* ====================================
   TOAST
   ==================================== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text-primary);
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 300px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { border-color: rgba(52,199,89,0.35); }
.toast.error { border-color: rgba(255,59,92,0.35); }

/* ====================================
   SCROLL PROGRESS
   ==================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--primary);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* ====================================
   SCANLINES — disabled in light mode
   ==================================== */
.scanlines { display: none; }

/* ====================================
   FADE IN ANIMATION
   ==================================== */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner { height: 54px; }

  .main-nav {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.open { display: flex; }
  .nav-link { width: 100%; text-align: center; padding: 10px; }
  .menu-toggle { display: flex; }

  .hero { padding: 80px 0 32px; }

  .tester-body {
    grid-template-columns: 1fr;
  }

  .tester-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .buttons-grid { grid-template-columns: repeat(6, 1fr); gap: 5px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }

  .tester-tabs { grid-template-columns: repeat(2, 1fr); }
  .buttons-grid { grid-template-columns: repeat(4, 1fr); }
  .sticks-row { grid-template-columns: 1fr 1fr; }
  .triggers-row { grid-template-columns: 1fr; }
  .vibration-controls { flex-direction: column; }
  .btn-vibrate { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; gap: 6px; text-align: center; }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.1ms !important;
  }
}

/* ====================================
   SVG GAMEPAD PRESSED STATES (Light)
   ==================================== */
.gp-btn.pressed .lb-shape,
.gp-btn.pressed .rb-shape { fill: #c8d8f8; stroke: #4A7EFF; }

.gp-btn.pressed .lt-shape,
.gp-btn.pressed .rt-shape { fill: #b8c8f0; stroke: #5a70bb; }

.gp-btn.pressed .dup-shape,
.gp-btn.pressed .ddown-shape,
.gp-btn.pressed .dleft-shape,
.gp-btn.pressed .dright-shape { fill: #dce4f5; stroke: #4A9EFF; }

.gp-btn.pressed .select-shape,
.gp-btn.pressed .start-shape { fill: #dce4f5; stroke: #4A9EFF; }

.gp-btn.pressed .home-shape { fill: #c8d0f0; stroke: #5060a0; }

.gp-btn.btn-a.pressed .btn-a-shape { fill: #b8c8ff; stroke: #2244cc; }
.gp-btn.btn-b.pressed .btn-b-shape { fill: #ffd0d8; stroke: #FF3B5C; }
.gp-btn.btn-x.pressed .btn-x-shape { fill: #f0c8e8; stroke: #cc44aa; }
.gp-btn.btn-y.pressed .btn-y-shape { fill: #b8f0d0; stroke: #38b882; }

/* ====================================
   FUNCTIONS.PHP GOOGLE FONTS (Inter + JetBrains Mono)
   ==================================== */
/* Loaded via functions.php wp_enqueue_style */

/* ====================================
   SEO CONTENT SECTIONS
   ==================================== */
.breadcrumb-nav { position:relative; z-index:1; }
.breadcrumb-list { padding:0; margin:0; }

.seo-guide-section {}

.guide-grid article:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: all var(--transition-medium);
}

.compat-table-wrap table tr:hover {
  background: var(--primary-light) !important;
}

.faq-item {
  transition: all var(--transition-medium);
}
.faq-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(74,158,255,0.08);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  font-size: 0.85rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }
