/* ===== SANYO MOBILE THEME - MAIN CSS ===== */

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

:root {
  --bg: #0a0c10;
  --surface: #111318;
  --card: #161a22;
  --card-hover: #1c2130;
  --border: #1e2330;
  --border-light: #252d3d;
  --accent: #00d4ff;
  --accent-dim: rgba(0,212,255,0.12);
  --accent-border: rgba(0,212,255,0.25);
  --accent2: #ff4d6d;
  --accent2-dim: rgba(255,77,109,0.12);
  --text: #e8eaf0;
  --text-soft: #c5cad6;
  --muted: #8b95a8;
  --tag-bg: #1a2035;
  --r: 12px;
  --r-sm: 8px;
  --r-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --fh: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --max: 1200px;
  --pad: clamp(14px, 4vw, 40px);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fb);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--fb); cursor: pointer; }
input, textarea { font-family: var(--fb); }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ── UTILS ── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── NOTICE BAR ── */
.notice-bar {
  background: linear-gradient(90deg, var(--accent2), #ff8060);
  color: #fff;
  text-align: center;
  padding: 8px var(--pad);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  position: relative;
}
.notice-bar a { color: #fff; text-decoration: underline; }
.notice-bar .close-notice {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 18px; line-height: 1;
  opacity: 0.7; cursor: pointer; padding: 2px 6px;
}

/* ── TOP BAR ── */
.top-bar {
  background: #060709;
  border-bottom: 1px solid var(--border);
  padding: 7px 0;
  font-size: 13px;
  color: var(--muted);
  display: none;
}
@media (min-width: 768px) { .top-bar { display: block; } }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.top-bar a { color: var(--accent); font-weight: 600; }
.top-social { display: flex; gap: 7px; align-items: center; }
.top-social a {
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  border-radius: var(--r-xs);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted);
  transition: all 0.2s;
}
.top-social a:hover { border-color: var(--accent); color: var(--accent); }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10,12,16,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 12px var(--pad);
  max-width: var(--max); margin: 0 auto;
}
.site-logo {
  font-family: var(--fh);
  font-size: clamp(17px, 3vw, 21px);
  font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0; margin-right: auto;
  letter-spacing: -0.3px;
}
.logo-icon {
  width: 32px; height: 32px; min-width: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.site-logo .accent { color: var(--accent); }

/* Desktop Nav */
.main-nav { display: none; gap: 2px; }
@media (min-width: 920px) { .main-nav { display: flex; } }
.main-nav a {
  padding: 6px 12px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500;
  color: var(--muted); transition: all 0.2s; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.current { background: var(--tag-bg); color: var(--text); }

/* Search */
.header-search { position: relative; flex-shrink: 0; }
.header-search input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 7px 34px 7px 12px;
  font-size: 14px; color: var(--text);
  width: clamp(120px, 18vw, 190px);
  outline: none; transition: border-color 0.2s;
}
.header-search input::placeholder { color: var(--muted); }
.header-search input:focus { border-color: var(--accent); }
.header-search button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: none;
  color: var(--muted); font-size: 14px; line-height: 1;
  transition: color 0.2s;
}
.header-search button:hover { color: var(--accent); }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 7px; flex-shrink: 0;
  transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--accent); }
@media (min-width: 920px) { .hamburger { display: none; } }
.hamburger span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; display: block; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none; flex-direction: column;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px var(--pad) 14px;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.mobile-nav.open { display: flex; max-height: 500px; }
.mobile-nav a {
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: all 0.2s; display: flex; align-items: center; gap: 10px;
}
.mobile-nav a:hover { background: var(--tag-bg); color: var(--text); }
.mobile-nav .nav-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-social { display: flex; gap: 8px; padding: 10px 12px 2px; }
.mobile-social a {
  width: 36px; height: 36px; border: 1px solid var(--border);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; color: var(--muted); font-size: 14px; transition: all 0.2s;
}
.mobile-social a:hover { border-color: var(--accent); color: var(--accent); }

/* ── HERO ── */
.hero {
  background: linear-gradient(155deg, #0a0c10 0%, #0d1421 55%, #0b0e14 100%);
  border-bottom: 1px solid var(--border);
  padding: clamp(36px, 7vw, 72px) var(--pad);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0,212,255,0.07), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.3), transparent);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 20px; padding: 5px 14px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  margin-bottom: 18px; letter-spacing: 0.3px;
  animation: fadeUp 0.5s ease both;
}
.hero h1 {
  font-family: var(--fh);
  font-size: clamp(26px, 5.5vw, 54px);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 16px;
  animation: fadeUp 0.5s 0.08s ease both;
}
.hero h1 .accent { color: var(--accent); }
.hero-desc {
  font-size: clamp(14px, 2.2vw, 17px);
  color: var(--muted); max-width: 540px;
  margin: 0 auto 32px; line-height: 1.75;
  animation: fadeUp 0.5s 0.16s ease both;
}
.hero-stats {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 20px 40px;
  animation: fadeUp 0.5s 0.24s ease both;
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--fh); font-size: clamp(22px, 4vw, 32px); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ── BRAND TICKER ── */
.brand-ticker-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0; overflow: hidden;
}
.brand-ticker { display: flex; width: max-content; animation: ticker 24s linear infinite; }
.brand-ticker:hover { animation-play-state: paused; }
.brand-chip {
  padding: 5px 20px; font-size: 13px; font-weight: 600;
  color: var(--muted); white-space: nowrap;
  border-right: 1px solid var(--border);
  cursor: pointer; transition: color 0.2s;
}
.brand-chip:hover { color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── CATEGORY FILTER ── */
.cat-filter-row {
  display: flex; gap: 8px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 20px var(--pad) 0;
  scrollbar-width: none;
}
.cat-filter-row::-webkit-scrollbar { display: none; }
.cat-pill {
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  background: var(--card); border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--accent-dim);
  border-color: var(--accent); color: var(--accent);
}

/* ── PAGE LAYOUT ── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: var(--max); margin: 0 auto;
  padding: 26px var(--pad) 56px;
}
@media (min-width: 960px) {
  .page-layout { grid-template-columns: 1fr 290px; }
}

/* ── SECTION HEADER ── */
.section-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.section-title {
  font-family: var(--fh); font-size: 20px; font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: ''; width: 4px; height: 22px;
  background: var(--accent); border-radius: 2px; flex-shrink: 0;
}
.view-all {
  font-size: 13px; color: var(--accent); font-weight: 600;
  padding: 5px 13px; border: 1px solid var(--accent-border);
  border-radius: var(--r-xs); transition: all 0.2s; white-space: nowrap;
}
.view-all:hover { background: var(--accent-dim); }

/* ── FEATURED POST ── */
.featured-post {
  display: grid; grid-template-columns: 1fr;
  border-radius: var(--r); overflow: hidden;
  background: var(--card); border: 1px solid var(--border);
  margin-bottom: 24px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
@media (min-width: 560px) { .featured-post { grid-template-columns: 1fr 1fr; } }
.featured-post:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.featured-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.featured-post:hover .featured-thumb img { transform: scale(1.04); }
.play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  opacity: 0; transition: opacity 0.25s;
}
.play-overlay svg { width: 52px; height: 52px; fill: #fff; filter: drop-shadow(0 2px 10px rgba(0,0,0,0.5)); }
.featured-post:hover .play-overlay { opacity: 1; }
.featured-body {
  padding: clamp(16px, 3vw, 26px);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.post-label {
  display: inline-block;
  background: var(--accent-dim); color: var(--accent);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  padding: 4px 10px; border-radius: 4px; width: fit-content;
}
.featured-body h2 {
  font-family: var(--fh);
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 700; line-height: 1.3;
  transition: color 0.2s;
}
.featured-post:hover .featured-body h2 { color: var(--accent); }
.post-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.post-meta a { color: var(--muted); transition: color 0.2s; }
.post-meta a:hover { color: var(--accent); }

/* ── POST GRID ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 500px) { .posts-grid { gap: 14px; } }
@media (min-width: 860px) { .posts-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.4s ease both;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-lg);
}
.post-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; flex-shrink: 0; background: var(--surface); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb .play-overlay svg { width: 36px; height: 36px; }
.post-body { padding: clamp(10px, 2vw, 14px); display: flex; flex-direction: column; flex: 1; }
.post-category { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--accent); margin-bottom: 6px; }
.post-body h3 {
  font-family: var(--fh);
  font-size: clamp(11px, 1.6vw, 14px);
  font-weight: 700; line-height: 1.35;
  flex: 1; transition: color 0.2s; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card:hover .post-body h3 { color: var(--accent); }
.post-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; }
.tag {
  font-size: 10px; font-weight: 500;
  background: var(--tag-bg); color: var(--muted);
  padding: 2px 7px; border-radius: 4px; transition: all 0.2s;
}
.tag:hover { background: var(--accent-dim); color: var(--accent); }
.post-footer {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted);
  padding-top: 8px; border-top: 1px solid var(--border); margin-top: auto;
}

/* ── PAGINATION ── */
.pagination {
  display: flex; justify-content: center;
  align-items: center; gap: 6px;
  margin-top: 32px; flex-wrap: wrap;
}
.page-numbers {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 500;
  color: var(--muted); background: var(--card);
  transition: all 0.2s;
}
.page-numbers:hover, .page-numbers.current {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-dim);
}
.page-numbers.dots { cursor: default; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.widget {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px;
}
.widget-title {
  font-family: var(--fh); font-size: 15px; font-weight: 800;
  margin-bottom: 14px; padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 7px;
}

/* Newsletter Widget */
.widget-newsletter {
  background: linear-gradient(135deg, #0d1a2a, #091520);
  border-color: var(--accent-border);
}
.widget-newsletter p { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.widget-input {
  width: 100%; background: rgba(0,0,0,0.35);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 9px 12px; font-size: 14px; color: var(--text);
  outline: none; margin-bottom: 8px; transition: border-color 0.2s;
}
.widget-input::placeholder { color: var(--muted); }
.widget-input:focus { border-color: var(--accent); }
.btn-primary {
  width: 100%; padding: 10px; background: var(--accent); color: #000;
  border: none; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 700; transition: all 0.2s;
}
.btn-primary:hover { background: #00c4ec; transform: translateY(-1px); }

/* YouTube Widget */
.widget-youtube {
  background: linear-gradient(135deg, #180a0a, #1e0d0d);
  border-color: rgba(255,77,109,0.25);
  text-align: center;
}
.yt-icon { font-size: 36px; margin-bottom: 8px; }
.widget-youtube h3 { font-family: var(--fh); font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.widget-youtube p { font-size: 13px; color: var(--muted); margin-bottom: 12px; line-height: 1.6; }
.btn-youtube {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 10px; background: var(--accent2); color: #fff;
  border: none; border-radius: var(--r-sm); font-size: 14px; font-weight: 700;
  transition: all 0.2s; text-decoration: none;
}
.btn-youtube:hover { background: #e03460; transform: translateY(-1px); }

/* Brand Filter Widget */
.brand-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-btn {
  padding: 5px 11px; background: var(--tag-bg);
  border: 1px solid var(--border); border-radius: var(--r-xs);
  font-size: 12px; font-weight: 600; cursor: pointer; color: var(--muted);
  transition: all 0.2s; text-decoration: none; display: inline-block;
}
.brand-btn:hover, .brand-btn.active {
  border-color: var(--accent); color: var(--accent); background: var(--accent-dim);
}

/* Popular Posts Widget */
.popular-post {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.popular-post:last-child { border-bottom: none; padding-bottom: 0; }
.popular-num { font-family: var(--fh); font-size: 20px; font-weight: 800; color: var(--border); line-height: 1; min-width: 22px; flex-shrink: 0; }
.popular-post a { font-size: 12px; font-weight: 600; line-height: 1.4; transition: color 0.2s; display: block; }
.popular-post a:hover { color: var(--accent); }
.popular-date { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* Category List Widget */
.cat-list-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted); transition: color 0.2s;
  cursor: pointer; text-decoration: none;
}
.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { color: var(--accent); }
.cat-count { background: var(--tag-bg); padding: 2px 8px; border-radius: 4px; font-size: 11px; }

/* ── SINGLE POST PAGE ── */
.single-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: var(--max); margin: 0 auto;
  padding: 26px var(--pad) 56px;
}
@media (min-width: 960px) { .single-layout { grid-template-columns: 1fr 290px; } }

.breadcrumb {
  font-size: 13px; color: var(--muted);
  margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border-light); }

.single-post-header { margin-bottom: 24px; }
.single-post-header .post-label { margin-bottom: 14px; }
.single-post-header h1 {
  font-family: var(--fh);
  font-size: clamp(20px, 4vw, 34px);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 16px;
}
.single-post-header .post-meta { margin-bottom: 18px; font-size: 13px; }

.single-thumb {
  border-radius: var(--r); overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.single-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* YouTube embed */
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--r); overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--border);
}
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Post content */
.entry-content {
  font-size: 15px; line-height: 1.8; color: var(--text-soft);
}
.entry-content h2, .entry-content h3 {
  font-family: var(--fh); font-weight: 700; color: var(--text);
  margin: 28px 0 12px;
}
.entry-content h2 { font-size: 20px; }
.entry-content h3 { font-size: 17px; }
.entry-content p { margin-bottom: 16px; }
.entry-content ul, .entry-content ol { margin: 12px 0 16px 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content strong { color: var(--text); font-weight: 600; }
.entry-content a { color: var(--accent); }
.entry-content a:hover { text-decoration: underline; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Problems solved box */
.solution-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-sm);
  padding: 18px 20px;
  margin: 20px 0;
}
.solution-box h4 { font-family: var(--fh); font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.6px; }
.solution-box ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.solution-box li { font-size: 14px; color: var(--text-soft); display: flex; align-items: center; gap: 8px; }
.solution-box li::before { content: '✔'; color: var(--accent); font-size: 12px; flex-shrink: 0; }

/* Tools box */
.tools-box {
  background: linear-gradient(135deg, #0f1a28, #0c1520);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 18px 20px; margin: 20px 0;
}
.tools-box h4 { font-family: var(--fh); font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.6px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.tool-item { background: rgba(0,0,0,0.3); border: 1px solid var(--border); border-radius: var(--r-xs); padding: 7px 10px; font-size: 13px; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.tool-item::before { content: '🔧'; font-size: 12px; }

/* Watch button */
.watch-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent2); color: #fff;
  padding: 14px 28px; border-radius: var(--r);
  font-size: 16px; font-weight: 700;
  margin: 28px 0; transition: all 0.2s;
  border: none; width: 100%;
}
.watch-btn:hover { background: #e03460; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,77,109,0.3); }
.watch-btn svg { width: 22px; height: 22px; fill: #fff; }

/* Compatible models */
.compat-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 16px 18px; margin: 20px 0;
}
.compat-box h4 { font-family: var(--fh); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px; color: var(--muted); }
.compat-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.compat-tag { padding: 5px 12px; background: var(--tag-bg); border: 1px solid var(--border); border-radius: var(--r-xs); font-size: 13px; color: var(--text-soft); }

/* Post tags */
.post-tags-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); }
.post-tags-section h4 { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.post-tags-list { display: flex; flex-wrap: wrap; gap: 7px; }
.post-tag-link { padding: 5px 12px; background: var(--tag-bg); border: 1px solid var(--border); border-radius: var(--r-xs); font-size: 13px; color: var(--muted); transition: all 0.2s; }
.post-tag-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Related posts */
.related-posts { margin-top: 36px; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

/* Post nav */
.post-navigation {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin-top: 28px;
}
.post-nav-link {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px 16px;
  transition: all 0.2s; display: block;
}
.post-nav-link:hover { border-color: var(--accent-border); }
.nav-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 5px; }
.nav-title { font-family: var(--fh); font-size: 13px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-link.next { text-align: right; }

/* ── ARCHIVE / CATEGORY PAGE ── */
.archive-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: clamp(28px, 5vw, 52px) var(--pad);
}
.archive-header h1 { font-family: var(--fh); font-size: clamp(22px, 4vw, 36px); font-weight: 800; margin-bottom: 8px; }
.archive-header p { font-size: 15px; color: var(--muted); }

/* ── SEARCH RESULTS PAGE ── */
.search-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: clamp(24px, 4vw, 44px) var(--pad);
}
.search-header h1 { font-family: var(--fh); font-size: clamp(20px, 3.5vw, 30px); font-weight: 800; margin-bottom: 14px; }
.search-form { display: flex; gap: 10px; max-width: 500px; }
.search-form input {
  flex: 1; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: 15px; color: var(--text); outline: none;
  transition: border-color 0.2s;
}
.search-form input:focus { border-color: var(--accent); }
.search-form button {
  background: var(--accent); color: #000; border: none;
  border-radius: var(--r-sm); padding: 10px 18px;
  font-size: 14px; font-weight: 700; transition: all 0.2s;
}
.search-form button:hover { background: #00c4ec; }

/* ── 404 PAGE ── */
.page-404 {
  text-align: center; padding: clamp(60px, 10vw, 100px) var(--pad);
  max-width: 480px; margin: 0 auto;
}
.page-404 .error-code { font-family: var(--fh); font-size: clamp(80px, 15vw, 140px); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 16px; }
.page-404 h2 { font-family: var(--fh); font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin-bottom: 12px; }
.page-404 p { font-size: 15px; color: var(--muted); margin-bottom: 28px; line-height: 1.7; }
.btn-home {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #000;
  padding: 12px 24px; border-radius: var(--r);
  font-size: 15px; font-weight: 700; transition: all 0.2s;
}
.btn-home:hover { background: #00c4ec; transform: translateY(-2px); }

/* ── ABOUT PAGE ── */
.page-content {
  max-width: 760px; margin: 0 auto;
  padding: 40px var(--pad) 60px;
}
.page-content h1 {
  font-family: var(--fh); font-size: clamp(24px, 4vw, 36px);
  font-weight: 800; margin-bottom: 24px;
}
.page-content h2 { font-family: var(--fh); font-size: 22px; font-weight: 700; margin: 28px 0 12px; }
.page-content p { font-size: 15px; line-height: 1.8; color: var(--text-soft); margin-bottom: 16px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 26px; padding: 36px var(--pad) 28px;
  max-width: var(--max); margin: 0 auto;
}
@media (min-width: 480px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .site-logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.75; margin-bottom: 14px; }
.footer-social { display: flex; gap: 7px; flex-wrap: wrap; }
.footer-social a {
  width: 34px; height: 34px; border: 1px solid var(--border);
  border-radius: var(--r-sm); display: flex; align-items: center;
  justify-content: center; color: var(--muted); font-size: 14px; transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 {
  font-family: var(--fh); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.9px;
  margin-bottom: 12px; color: var(--text);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-col li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 14px var(--pad);
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--muted); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed; bottom: 20px; right: 20px;
  width: 42px; height: 42px;
  background: var(--accent); color: #000;
  border: none; border-radius: 10px;
  font-size: 18px; font-weight: 800;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,212,255,0.35);
  transition: all 0.2s; z-index: 100;
}
#back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 26px rgba(0,212,255,0.45); }
#back-to-top.show { display: flex; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card-hover) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── RESPONSIVE UTILITIES ── */
@media (max-width: 480px) {
  .post-navigation { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── THUMBNAIL PLACEHOLDER ── */
.thumb-placeholder {
  width: 100%; height: 100%;
  background: var(--card);
  display: flex; align-items: center; justify-content: center;
  min-height: 120px;
  border-bottom: 1px solid var(--border);
}
.thumb-placeholder span { font-size: 36px; opacity: 0.3; }

/* ── BRAND CHIP LINKS ── */
.brand-chip {
  text-decoration: none;
  display: inline-block;
}

/* ── SEO: OG image fix for posts without featured image ── */
/* handled in functions.php sanyo_get_thumbnail() */

/* ── Brand Scroll Row ── */
.brand-scroll-row {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brand-scroll-row::-webkit-scrollbar { display: none; }

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  background: var(--brand-color, #333);
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.brand-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  opacity: .9;
}

/* ── Hero CTA Buttons ── */
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}
.btn-primary {
  padding: 12px 28px;
  border-radius: 50px;
  background: #00bcd4;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 15px rgba(0,188,212,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,188,212,.5); }
.btn-secondary {
  padding: 12px 28px;
  border-radius: 50px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── POPULAR GUIDES with thumbnails ── */
.popular-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-item:hover .popular-title { color: var(--accent); }

.popular-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--surface);
  position: relative;
}
.popular-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.popular-item:hover .popular-thumb img { transform: scale(1.06); }

.popular-info { flex: 1; min-width: 0; }
.popular-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-date { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── RECENT GUIDES with thumbnails ── */
.recent-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.2s;
}
.recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-item:hover .recent-title { color: var(--accent); }
.recent-item img {
  flex-shrink: 0;
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  background: var(--surface);
}
.recent-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

/* ── THUMBNAIL placeholder fix ── */
.post-thumb,
.featured-thumb {
  background: var(--surface);
}
.thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-size: 28px;
  position: absolute;
  top: 0; left: 0;
}
