/*
Theme Name: ShonenHardware
Theme URI: https://shonenhardware.com
Author: ShonenHardware
Description: Tema editorial para o portal ShonenHardware — hardware, games, anime e dorama.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: shonenhardware
Tags: blog, news, magazine, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@600;700&family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: #F5F5F0;
  color: #1A1A1A;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --red: #E8000F;
  --hw: #1A4BAD;
  --hw-bg: #E8F0FF;
  --gm: #1A7A1A;
  --gm-bg: #E8F5E8;
  --an: #7A1AAD;
  --an-bg: #F5E8FF;
  --dr: #AD5A1A;
  --dr-bg: #FFF3E8;
  --border: #E8E8E4;
  --bg: #F5F5F0;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --muted: #777;
  --sidebar-w: 280px;
  --container: 1140px;
}

/* ===== CONTAINER ===== */
.sh-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== TAGS ===== */
.sh-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 2px;
  line-height: 1.6;
}
.sh-tag.hw { background: var(--hw-bg); color: var(--hw); }
.sh-tag.gm { background: var(--gm-bg); color: var(--gm); }
.sh-tag.an { background: var(--an-bg); color: var(--an); }
.sh-tag.dr { background: var(--dr-bg); color: var(--dr); }

/* ===== TOP BAR ===== */
.sh-topbar {
  background: #1A1A1A;
  padding: 5px 0;
}
.sh-topbar .sh-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-date { font-size: 11px; color: #888; }
.topbar-links { display: flex; gap: 16px; }
.topbar-links a { font-size: 11px; color: #888; transition: color .15s; }
.topbar-links a:hover { color: #fff; }

/* ===== HEADER ===== */
.sh-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  padding: 12px 0 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
}
.sh-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.sh-logo span { color: var(--red); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn-search {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.btn-search:hover { border-color: var(--red); color: var(--red); }
.btn-newsletter {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--red); color: #fff;
  border: none; padding: 8px 14px; border-radius: 3px; cursor: pointer;
  transition: opacity .15s;
}
.btn-newsletter:hover { opacity: .88; }

/* ===== MAIN NAV ===== */
.sh-nav {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--border);
}
.sh-nav a {
  font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase;
  padding: 9px 14px;
  color: #555;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color .15s;
}
.sh-nav a:first-child { padding-left: 0; }
.sh-nav a:hover { color: var(--red); }
.sh-nav a.nav-hw { color: var(--hw); }
.sh-nav a.nav-gm { color: var(--gm); }
.sh-nav a.nav-an { color: var(--an); }
.sh-nav a.nav-dr { color: var(--dr); }
.sh-nav a.nav-hw:hover { color: var(--hw); opacity: .75; }
.sh-nav a.nav-gm:hover { color: var(--gm); opacity: .75; }
.sh-nav a.nav-an:hover { color: var(--an); opacity: .75; }
.sh-nav a.nav-dr:hover { color: var(--dr); opacity: .75; }

/* ===== BREAKING NEWS ===== */
.sh-breaking {
  background: var(--red);
  padding: 7px 0;
  overflow: hidden;
}
.breaking-inner { display: flex; align-items: center; gap: 12px; }
.breaking-label {
  font-size: 10px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: #fff;
  background: rgba(0,0,0,.22);
  padding: 2px 8px; border-radius: 2px; white-space: nowrap; flex-shrink: 0;
}
.breaking-text {
  font-size: 12px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== HERO ===== */
.sh-hero {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2px;
  background: var(--border);
  margin-bottom: 2px;
}
.hero-main {
  background: var(--white);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.hero-main:hover .hero-title { color: var(--red); }
.hero-img {
  height: 280px;
  overflow: hidden;
  background: #C8D4E8;
  position: relative;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  padding: 28px 18px 14px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 2px; margin-bottom: 7px;
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: 24px; font-weight: 700; color: #fff; line-height: 1.15;
  transition: color .15s;
}
.hero-meta { font-size: 11px; color: rgba(255,255,255,.7); margin-top: 6px; }
.hero-body {
  padding: 12px 16px;
  border-top: 3px solid var(--hw);
}
.hero-excerpt { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hero-excerpt a { color: var(--red); }

/* HERO SIDE */
.hero-side { display: flex; flex-direction: column; gap: 2px; }
.hsi {
  background: var(--white); cursor: pointer;
  display: flex; flex-direction: column; flex: 1;
  border-top: 3px solid;
  transition: opacity .15s;
}
.hsi:hover { opacity: .88; }
.hsi.gm { border-color: var(--gm); }
.hsi.an { border-color: var(--an); }
.hsi.dr { border-color: var(--dr); }
.hsi-img {
  height: 90px; overflow: hidden;
  background: #EEF;
  display: flex; align-items: center; justify-content: center;
}
.hsi-img img { width: 100%; height: 100%; object-fit: cover; }
.hsi-body { padding: 8px 10px; flex: 1; }
.hsi-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.2;
  margin-top: 5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hsi-meta { font-size: 10px; color: #AAA; margin-top: 4px; }

/* ===== MAIN LAYOUT ===== */
.sh-body {
  padding: 20px 0;
}
.sh-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 24px;
  align-items: start;
}

/* ===== SECTION HEADER ===== */
.sh-section { margin-bottom: 28px; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; gap: 0;
}
.section-bar {
  width: 4px; height: 22px; margin-right: 8px;
  border-radius: 1px; flex-shrink: 0;
}
.bar-hw { background: var(--hw); }
.bar-gm { background: var(--gm); }
.bar-an { background: var(--an); }
.bar-dr { background: var(--dr); }
.section-divider { height: 1px; background: var(--border); margin-bottom: 12px; }
.section-more {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 3px;
  transition: opacity .15s;
}
.section-more:hover { opacity: .7; }

/* ===== CARD GRID ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }

.sh-card {
  background: var(--white); border-radius: 3px;
  overflow: hidden; cursor: pointer;
  border: 1px solid var(--border);
  transition: box-shadow .2s;
}
.sh-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.sh-card:hover .card-title { color: var(--red); }
.card-thumb {
  height: 110px; overflow: hidden;
  background: #E8ECF0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 9px 11px 11px; }
.card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 15px; font-weight: 600; line-height: 1.25;
  margin-top: 5px; color: var(--text);
  transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-date { font-size: 10px; color: #AAA; margin-top: 5px; }

/* FEATURED CARDS */
.sh-card.featured { border-top: 3px solid; }
.sh-card.featured.hw { border-top-color: var(--hw); }
.sh-card.featured.gm { border-top-color: var(--gm); }
.sh-card.featured.an { border-top-color: var(--an); }
.sh-card.featured.dr { border-top-color: var(--dr); }
.sh-card.featured .card-thumb { height: 130px; }

/* LIST CARD */
.sh-list-card {
  display: flex; gap: 0;
  background: var(--white); border-radius: 3px;
  border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  margin-bottom: 7px;
  transition: box-shadow .2s;
}
.sh-list-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.sh-list-card:hover .card-title { color: var(--red); }
.lc-thumb {
  width: 80px; height: 66px; flex-shrink: 0;
  overflow: hidden; background: #E8ECF0;
}
.lc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lc-body { padding: 7px 10px; display: flex; flex-direction: column; justify-content: center; }
.lc-title {
  font-family: 'Oswald', sans-serif;
  font-size: 13px; font-weight: 600; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .15s;
}
.lc-date { font-size: 10px; color: #AAA; margin-top: 3px; }

/* ===== SIDEBAR ===== */
.sh-sidebar {}
.sb-block { margin-bottom: 20px; }
.sb-label {
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #999;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--text);
  margin-bottom: 10px;
}
/* Ad slot */
.ad-slot {
  background: var(--white); border: 1px dashed #CCC;
  border-radius: 3px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px; text-align: center;
  color: #CCC; font-size: 11px;
  cursor: default;
}
.ad-slot-sm { height: 100px; }
.ad-slot-md { height: 250px; }
.ad-slot-label { font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }

/* Trending */
.trending-item {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.trending-item:last-child { border-bottom: none; }
.tr-num {
  font-family: 'Oswald', sans-serif;
  font-size: 22px; font-weight: 700; color: #DDD; min-width: 20px; line-height: 1;
}
.tr-title {
  font-size: 12px; font-weight: 600; line-height: 1.3; color: #333;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tr-tag { margin-bottom: 3px; display: block; }

/* Affiliate */
.aff-card {
  display: flex; gap: 8px; background: var(--white);
  border: 1px solid var(--border); border-radius: 3px;
  padding: 8px; margin-bottom: 7px; align-items: center;
}
.aff-thumb {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--bg); border-radius: 3px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.aff-thumb img { width: 100%; height: 100%; object-fit: cover; }
.aff-info { flex: 1; min-width: 0; }
.aff-name {
  font-size: 11px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: #333;
}
.aff-price { font-size: 13px; font-weight: 700; color: var(--gm); margin-top: 1px; }
.aff-btn {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--red); color: #fff;
  border: none; padding: 5px 8px; border-radius: 2px; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; transition: opacity .15s;
}
.aff-btn:hover { opacity: .85; }

/* ===== SINGLE POST ===== */
.sh-single {}
.post-header { margin-bottom: 20px; }
.post-title {
  font-family: 'Oswald', sans-serif;
  font-size: 32px; font-weight: 700; line-height: 1.15;
  margin: 10px 0 12px;
}
.post-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--muted);
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.post-meta strong { color: var(--text); }
.post-thumb {
  margin-bottom: 20px; border-radius: 4px; overflow: hidden;
}
.post-content {
  font-size: 16px; line-height: 1.75; color: #2A2A2A;
}
.post-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 22px; font-weight: 700;
  margin: 28px 0 10px; padding-top: 4px;
  border-top: 2px solid var(--border);
}
.post-content h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 18px; font-weight: 700;
  margin: 20px 0 8px; color: #333;
}
.post-content p { margin-bottom: 16px; }
.post-content ul, .post-content ol {
  margin: 0 0 16px 24px;
  list-style: disc;
}
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 6px; }
.post-content a { color: var(--red); text-decoration: underline; }
.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }
.post-content blockquote {
  margin: 20px 0; padding: 14px 18px;
  border-left: 4px solid var(--red);
  background: #FFF5F5; font-style: italic;
  color: #555;
}
.post-content img { border-radius: 4px; margin: 12px 0; }
.post-content figure { margin: 16px 0; }
.post-content figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 5px; }
.post-content iframe { max-width: 100%; }

/* ===== CATEGORY HEADER ===== */
.cat-header {
  padding: 16px 0; margin-bottom: 20px;
  border-bottom: 3px solid var(--red);
}
.cat-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 28px; font-weight: 700;
}
.cat-header p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ===== ARCHIVE GRID ===== */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* ===== PAGINATION ===== */
.sh-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin: 24px 0;
}
.sh-pagination a, .sh-pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 3px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--white);
  transition: all .15s;
}
.sh-pagination a:hover { background: var(--red); color: #fff; border-color: var(--red); }
.sh-pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* ===== FOOTER ===== */
.sh-footer { background: #1A1A1A; color: #888; margin-top: 32px; }
.footer-top { padding: 28px 0 20px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 14px; font-weight: 700; color: #fff;
  margin-bottom: 10px; padding-bottom: 7px;
  border-bottom: 2px solid #333;
}
.footer-col a {
  display: block; font-size: 12px; color: #777;
  margin-bottom: 5px; transition: color .15s;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid #2A2A2A; padding: 13px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 18px; font-weight: 700; color: #fff;
}
.footer-logo span { color: var(--red); }
.footer-copy { font-size: 11px; color: #555; }

/* ===== UTILITIES ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.no-results { padding: 32px; text-align: center; color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sh-hero { grid-template-columns: 1fr; }
  .hero-side { flex-direction: row; }
  .hsi { min-width: 160px; }
  .sh-layout { grid-template-columns: 1fr; }
  .sh-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .cards-2 { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-side { flex-direction: column; }
  .sh-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-title { font-size: 24px; }
  .sh-logo { font-size: 24px; }
}
