/* =========================================
   PepiTech — Dark Modern Theme v3
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --yellow:    #f1105e;
  --yellow-dk: #d00a4e;
  --bg:        #ffffff;
  --bg2:       #f7f9fa;
  --bg3:       #eef1f3;
  --border:    #e0e5e9;
  --border2:   #cbd3d9;
  --text:      #1a1a1c;
  --text-muted:#5e6b73;
  --text-dim:  #8b98a1;
  --white:     #ffffff;
  --red:       #e11d48;
  --green:     #10b981;
  --blue:      #3b82f6;

  --font:   'Inter', sans-serif;
  --font-h: 'Inter', sans-serif;

  --radius:  8px;
  --radius2: 12px;
  --shadow:  0 8px 30px rgba(0,0,0,0.05);
  --glow:    0 10px 30px rgba(241,16,94,0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-decoration: none; transition: color .2s; }
a:hover { color: var(--yellow-dk); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--yellow); }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ── HEADER ── */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.header-inner {
  display: flex; align-items: center;
  height: 64px; gap: 20px;
}

/* Logo */
.site-logo-text {
  font-family: var(--font-h);
  font-size: 1.75rem; font-weight: 700;
  letter-spacing: -1px; white-space: nowrap;
  text-decoration: none;
}
.logo-pepi { color: var(--text); }
.logo-tech { color: var(--yellow); }

/* Nav */
.site-nav { flex: 1; }
.nav-menu { display: flex; list-style: none; }
.nav-menu > li > a {
  display: block;
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); padding: 8px 13px;
  transition: color .2s;
}
.nav-menu > li > a:hover { color: var(--yellow); text-decoration: none; }
.nav-menu > li.current-menu-item > a { color: var(--yellow); }

/* Search */
.header-search { margin-left: auto; }
.search-form { display: flex; }
.search-form input[type="search"] {
  background: var(--bg3); color: var(--text);
  border: 1px solid var(--border2); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 7px 12px; font-size: .82rem; width: 170px; outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--yellow); }
.search-form button {
  background: var(--yellow); color: var(--bg);
  border: none; padding: 7px 13px;
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer; font-size: .82rem; font-weight: 700;
}
.search-form button:hover { background: var(--yellow-dk); }

/* ── CATEGORY BAR ── */
.category-bar {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.category-bar-inner { display: flex; padding: 0 4px; }
.category-bar a {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-dim); padding: 9px 14px; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
  display: block;
}
.category-bar a:hover { color: var(--yellow); border-bottom-color: var(--yellow); text-decoration: none; }

/* ── MAIN ── */
.site-main { padding: 28px 0 48px; }
.content-grid {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 24px; align-items: start;
}
@media (max-width: 900px) { .content-grid { grid-template-columns: 1fr; } .sidebar { display: none; } }

/* ── FEATURED CAROUSEL ── */
.featured-section { margin-bottom: 40px; margin-top: 10px; }
.carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 20px;
}
.carousel-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.carousel-item {
  scroll-snap-align: start;
  flex: 0 0 85%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius2);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-decoration: none;
}
@media (min-width: 900px) {
  .carousel-item {
    flex: 0 0 calc(33.333% - 11px);
  }
}
@media (min-width: 600px) and (max-width: 899px) {
  .carousel-item {
    flex: 0 0 calc(50% - 8px);
  }
}
.carousel-item:hover { transform: translateY(-4px); box-shadow: var(--glow); }

/* ── CAROUSEL INDICATORS (DOTS) ── */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}
.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.carousel-dot.active {
  background: var(--yellow);
  transform: scale(1.3);
}

.carousel-item img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 16px; /* Reduced padding for unified look */
  transition: transform 0.5s ease;
  background: transparent; /* Removed gray background */
}
.carousel-item:hover img { transform: scale(1.05); }

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  width: 100%;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 12px;
  z-index: 2;
  flex: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  background: var(--yellow); color: #fff;
  padding: 4px 10px; border-radius: 4px; letter-spacing: 0.08em;
  width: fit-content;
  box-shadow: 0 4px 10px rgba(241,16,94,0.3);
}

.hero-title {
  font-family: var(--font-h); font-size: 1.35rem; font-weight: 800;
  color: var(--text); line-height: 1.25; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-title a { color: inherit; }
.hero-title a:hover { text-decoration: none; color: var(--yellow); }

/* ── SECTION HEADING ── */
.section-heading {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.section-heading h2 {
  font-family: var(--font-h); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--bg); background: var(--yellow);
  padding: 5px 12px; border-radius: 3px; white-space: nowrap;
}
.section-heading::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── POST GRID ── */
.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── POST CARD — Magazine style ── */
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-link {
  display: flex; flex-direction: row; gap: 0;
  color: inherit; text-decoration: none;
  min-height: 180px;
}

/* Área da imagem — maior e mais proeminente */
.card-image {
  width: 240px; flex-shrink: 0;
  overflow: hidden; position: relative;
  background: var(--bg2);
}
.card-image img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transition: transform .4s ease;
}
.post-card:hover .card-image img { transform: scale(1.08); }

@media (max-width: 600px) {
  .card-link { flex-direction: column; }
  .card-image { width: 100%; height: 200px; }
}

/* Badge flutuante na imagem */
.card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
  padding: 4px 10px; border-radius: 4px; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.badge-review      { background: var(--yellow); color: #fff; }
.badge-comparativo { background: #7c3aed; color: #fff; }
.badge-oferta      { background: var(--green); color: #fff; }
.badge-guia        { background: var(--blue); color: #fff; }

/* Corpo do card */
.card-body {
  padding: 24px;
  flex: 1; display: flex; flex-direction: column; justify-content: flex-start;
  gap: 8px; overflow: hidden;
}
.card-meta { font-size: .75rem; color: var(--text-muted); display: flex; gap: 8px; align-items: center; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.card-meta .cat { color: var(--yellow); }
.card-meta .dot { color: var(--border2); }
.card-title {
  font-family: var(--font-h); font-size: 1.3rem; font-weight: 800;
  color: var(--text); line-height: 1.3; letter-spacing: -0.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.2s;
}
.post-card:hover .card-title { color: var(--yellow); }
.card-excerpt {
  font-size: .95rem; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px;
}
.card-footer {
  margin-top: auto; padding-top: 12px;
  font-size: .8rem; color: var(--text-dim); font-weight: 500;
}

/* ── POST LIST (sidebar) ── */
.post-list { display: flex; flex-direction: column; gap: 1px; }
.post-list-item {
  background: var(--bg3); overflow: hidden;
  transition: background .2s;
}
.post-list-item:hover { background: var(--bg2); }
.post-list-link { display: flex; gap: 0; text-decoration: none; }
.post-list-img { width: 80px; flex-shrink: 0; aspect-ratio: 1; overflow: hidden; }
.post-list-img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.85); }
.post-list-body { padding: 8px 10px; flex: 1; }
.post-list-cat { font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--yellow); margin-bottom: 3px; }
.post-list-title { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-list-item:hover .post-list-title { color: var(--yellow); }
.post-list-date { font-size: .68rem; color: var(--text-dim); margin-top: 3px; }

/* ── SINGLE POST ── */
.single-container { padding-top: 20px; }
.single-layout { display: grid; grid-template-columns: 1fr 290px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .single-layout { grid-template-columns: 1fr; } }

.single-post { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; }

.post-header { padding: 24px 28px 0; }
.breadcrumb { font-size: .72rem; color: var(--text-dim); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span { margin: 0 5px; }

.post-badge-inline {
  display: inline-block; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: var(--yellow); color: var(--bg);
  padding: 3px 9px; border-radius: 3px; margin-bottom: 10px;
}
.post-title {
  font-family: var(--font-h); font-size: 2.4rem; font-weight: 800;
  color: var(--text); line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em;
}
.post-meta-bar {
  display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
  font-size: .77rem; color: var(--text-dim);
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.post-meta-bar .cat-link { color: var(--yellow); font-weight: 600; }
.post-meta-bar strong { color: var(--yellow); }

.post-featured-image img { width: 100%; max-height: 450px; object-fit: cover; filter: brightness(.9); }

.quality-badge {
  display: inline-flex; align-items: center; gap: 6px; margin: 16px 28px 0;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 5px 12px; font-size: .8rem;
}
.quality-badge strong { color: var(--yellow); }

.post-content {
  padding: 22px 28px 28px; font-size: 1rem; line-height: 1.82; color: var(--text);
}
.post-content h2 {
  font-family: var(--font-h); font-size: 1.6rem; font-weight: 800;
  color: var(--text); margin: 2.5rem 0 1rem;
  border-left: 4px solid var(--yellow); padding-left: 16px; letter-spacing: -0.01em;
}
.post-content h3 { font-family: var(--font-h); font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 1.8rem 0 .75rem; }
.post-content p { margin-bottom: 1.2rem; color: var(--text); font-size: 1.05rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.2rem 1.4rem; font-size: 1.05rem; }
.post-content li { margin-bottom: .6rem; }
.post-content a { color: var(--yellow); font-weight: 600; }

.post-content table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
  border-collapse: collapse; width: 100%; margin: 2rem 0; font-size: .95rem; border-radius: var(--radius); box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.post-content table th { background: var(--bg3); color: var(--text); padding: .8rem 1rem; text-align: left; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.8rem; border-bottom: 2px solid var(--border); }
.post-content table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.post-content table tr:nth-child(even) td { background: var(--bg2); }

/* Plugin blocks */
.post-content .pepi-affiliate-button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--bg);
  font-family: var(--font-h); font-weight: 700; font-size: 1rem;
  padding: 13px 28px; border-radius: var(--radius);
  margin: 1.2rem 0; transition: background .2s, box-shadow .2s, transform .15s;
  box-shadow: 0 4px 16px rgba(249,188,26,.35);
}
.post-content .pepi-affiliate-button:hover {
  background: var(--yellow-dk); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249,188,26,.5); text-decoration: none; color: var(--bg);
}

.post-content .pepi-affiliate-disclaimer {
  background: rgba(249,188,26,.08); border-left: 3px solid var(--yellow);
  padding: 10px 14px; font-size: .82rem; color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2rem 0;
}

.post-content .pepi-comparison-table {
  margin: 1.5rem 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
}

.pepi-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 1.2rem 0; }
@media (max-width: 600px) { .pepi-pros-cons { grid-template-columns: 1fr; } }
.pepi-pros { background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); border-radius: var(--radius); padding: 14px; }
.pepi-cons { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.25); border-radius: var(--radius); padding: 14px; }
.pepi-pros h4 { color: var(--green); font-family: var(--font-h); margin-bottom: 8px; font-size: .9rem; }
.pepi-cons h4 { color: var(--red); font-family: var(--font-h); margin-bottom: 8px; font-size: .9rem; }
.pepi-pros li, .pepi-cons li { font-size: .88rem; margin-bottom: 5px; color: var(--text); }

.pepi-faq { margin: 1.5rem 0; }
.pepi-faq h2 { font-family: var(--font-h); margin-bottom: 14px; }
.pepi-faq-item { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 8px; }
.pepi-faq-item h3 { font-size: .92rem; font-weight: 700; color: var(--yellow); margin-bottom: 6px; }
.pepi-faq-item p { font-size: .88rem; color: var(--text-muted); margin: 0; }

.pepi-chart img { border-radius: var(--radius); border: 1px solid var(--border); }

/* Tags */
.post-tags { padding: 0 28px 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.post-tags a { font-size: .72rem; background: var(--bg3); color: var(--text-muted); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); transition: all .2s; }
.post-tags a:hover { background: var(--yellow); color: var(--bg); border-color: var(--yellow); text-decoration: none; }

/* Related */
.related-posts { padding: 32px 28px; border-top: 2px solid var(--border); margin-top: 40px; }
.related-posts h3 { font-family: var(--font-h); font-size: 1.2rem; font-weight: 800; color: var(--text); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 16px; }
.widget { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius2); overflow: hidden; }
.widget-title {
  font-family: var(--font-h); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--bg); background: var(--yellow);
  padding: 8px 14px; margin: 0;
}
.widget ul { list-style: none; padding: 4px 14px 10px; }
.widget ul li { border-bottom: 1px solid var(--border); padding: 9px 0; font-size: .85rem; }
.widget ul li:last-child { border: none; }
.widget ul li a { color: var(--text-muted); transition: color .2s; }
.widget ul li a:hover { color: var(--yellow); }

/* ── PAGINATION ── */
.pagination { display: flex; justify-content: center; gap: 4px; margin: 28px 0; flex-wrap: wrap; }
.pagination .page-numbers {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: .84rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg2); transition: all .2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--yellow); color: var(--bg); border-color: var(--yellow); text-decoration: none;
}

/* ── MOBILE MENU ── */
.mobile-menu-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; padding: 8px; margin-left: auto;
}
.mobile-menu-toggle span { display: block; height: 2px; background: var(--text-muted); border-radius: 2px; }
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); z-index: 100; }
  .site-nav.is-open { display: block; }
  .nav-menu { flex-direction: column; }
  .nav-menu > li > a { border-bottom: 1px solid var(--border); padding: 13px 20px; }
  .header-search { display: none; }
}

/* ── FOOTER ── */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 40px 0 0; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { font-family: var(--font-h); font-size: 2rem; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.05em; }
.footer-logo .logo-pepi { color: var(--text); }
.footer-logo .logo-tech { color: var(--yellow); }
.footer-brand p { font-size: .9rem; line-height: 1.7; color: var(--text-muted); }
.footer-links h4, .footer-legal h4 {
  color: var(--yellow); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.footer-menu, .footer-legal ul { list-style: none; }
.footer-menu li, .footer-legal li { margin-bottom: 7px; }
.footer-menu a, .footer-legal a { font-size: .84rem; color: var(--text-muted); transition: color .2s; }
.footer-menu a:hover, .footer-legal a:hover { color: var(--yellow); text-decoration: none; }
.footer-disclaimer {
  border-top: 1px solid var(--border);
  padding: 14px 0; font-size: .78rem; color: var(--text-dim); line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 12px 0; font-size: .78rem; text-align: center; color: var(--text-dim);
}
