/*
Theme Name: Vika Viante Blog
Theme URI: https://blog.vikaviante.com.br
Author: Vika Viante
Author URI: https://vikaviante.com.br
Description: Tema oficial do Blog Vika Viante — Guitarra, Rock e Vida.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: vika-viante
*/

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

:root {
  --preto:    #0f0f0f;
  --cinza1:   #1a1a1a;
  --cinza2:   #242424;
  --cinza3:   #2e2e2e;
  --borda:    #333333;
  --texto:    #e8e4de;
  --subtexto: #888888;
  --branco:   #f5f2ed;
  --vermelho: #d72b2b;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--preto);
  color: var(--texto);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TIPOGRAFIA ── */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&family=Lora:ital,wght@0,400;0,600;1,400&family=Merriweather:ital,wght@0,400;0,700;1,400&display=swap');

h1, h2, h3, h4 {
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.25;
  color: var(--branco);
}

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

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
#masthead {
  background: var(--preto);
  border-bottom: 3px solid var(--vermelho);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.site-branding a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 30px;
  letter-spacing: 4px;
  color: var(--branco);
}
.site-branding a span { color: var(--vermelho); }

/* Nav */
#primary-navigation ul {
  display: flex;
  gap: 8px;
  list-style: none;
}
#primary-navigation a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--subtexto);
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
#primary-navigation a:hover,
#primary-navigation .current-menu-item a {
  color: var(--branco);
  background: var(--cinza2);
}

/* ══════════════════════════════
   HERO — POST EM DESTAQUE
══════════════════════════════ */
.hero-section {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--borda);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3px;
}

/* Post principal */
.hero-main {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--cinza1);
}
.hero-main .post-thumb {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-main:hover .post-thumb { transform: scale(1.03); }
.hero-main .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 40%, transparent 100%);
}
.hero-main .post-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
}
.hero-main .cat-badge {
  display: inline-block;
  background: var(--vermelho);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.hero-main h2 {
  font-size: clamp(20px, 3vw, 28px);
  color: #fff;
  margin-bottom: 8px;
}
.hero-main .post-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.5px;
}

/* Posts secundários */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hero-side-post {
  position: relative;
  overflow: hidden;
  flex: 1;
  cursor: pointer;
  background: var(--cinza1);
  min-height: 200px;
}
.hero-side-post .post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-side-post:hover .post-thumb { transform: scale(1.05); }
.hero-side-post .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 40%, transparent 100%);
}
.hero-side-post .post-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
}
.hero-side-post h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}
.hero-side-post .post-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
}

/* ══════════════════════════════
   FILTROS / CATEGORIAS
══════════════════════════════ */
.cats-bar {
  border-bottom: 1px solid var(--borda);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cats-bar ul {
  display: flex;
  gap: 0;
  list-style: none;
  white-space: nowrap;
}
.cats-bar a {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--subtexto);
  padding: 14px 20px;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.cats-bar a:hover,
.cats-bar .current-cat a {
  color: var(--branco);
  border-bottom-color: var(--vermelho);
}

/* ══════════════════════════════
   GRID DE POSTS
══════════════════════════════ */
.posts-section { padding: 48px 0; }
.posts-section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--subtexto);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--borda);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.post-card {
  background: var(--cinza1);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { background: var(--cinza2); }

.post-card .thumb-wrap {
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--cinza2);
}
.post-card .thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.post-card:hover .thumb-wrap img { transform: scale(1.05); }

.post-card .card-body {
  padding: 18px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-card .cat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vermelho);
}
.post-card h3 {
  font-size: 15px;
  line-height: 1.35;
  flex: 1;
}
.post-card .post-meta {
  font-size: 11px;
  color: var(--subtexto);
  margin-top: 4px;
}

/* ══════════════════════════════
   SEÇÃO DESCOBRIR MAIS
══════════════════════════════ */
.discover-section {
  background: var(--cinza1);
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
  padding: 56px 0;
}
.discover-header {
  text-align: center;
  margin-bottom: 36px;
}
.discover-header h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.discover-header p {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--subtexto);
  font-size: 15px;
}
.discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
#colophon {
  background: var(--cinza1);
  border-top: 3px solid var(--vermelho);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 3px;
  margin-bottom: 12px;
}
.footer-brand .logo span { color: var(--vermelho); }
.footer-brand p {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--subtexto);
  font-size: 14px;
  line-height: 1.6;
}
.footer-col h4 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--subtexto);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  font-size: 13px;
  color: var(--subtexto);
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--vermelho); }

.footer-bottom {
  border-top: 1px solid var(--borda);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 13px;
  color: #444;
}
.footer-bottom strong { color: var(--vermelho); font-style: normal; }

/* ══════════════════════════════
   POST ÚNICO
══════════════════════════════ */
.single-post-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.single-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vermelho);
  margin-bottom: 16px;
}
.single-post-wrap h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin-bottom: 16px;
  line-height: 1.2;
}
.single-meta {
  font-size: 12px;
  color: var(--subtexto);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--borda);
}
.single-thumb {
  width: 100%;
  height: 400px;
  object-fit: cover;
  margin-bottom: 40px;
}
.entry-content,
.entry-content p,
.entry-content li,
.entry-content span {
  font-family: 'Merriweather', serif !important;
  font-size: 17px !important;
  line-height: 1.85 !important;
  color: #c8c4be !important;
}
.entry-content p { margin-bottom: 24px; }
.entry-content h2 {
  font-size: 22px;
  margin: 36px 0 16px;
  color: var(--branco);
}
.entry-content h3 {
  font-size: 18px;
  margin: 28px 0 12px;
}
.entry-content a { color: var(--vermelho); text-decoration: underline; }
.entry-content blockquote {
  border-left: 3px solid var(--vermelho);
  padding: 12px 24px;
  margin: 28px 0;
  font-style: italic;
  color: var(--subtexto);
  background: var(--cinza1);
}

/* ══════════════════════════════
   RESPONSIVO
══════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sidebar { flex-direction: row; }
  .hero-side-post { min-height: 160px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .discover-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  #primary-navigation { display: none; }
  .hero-sidebar { flex-direction: column; }
  .posts-grid { grid-template-columns: 1fr; }
  .discover-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
/* Logo em imagem */
.site-branding a img {
  height: 37px;
  width: auto;
  max-width: 100%;
  display: block;
}
.footer-brand .logo img {
  height: 31px;
  width: auto;
  max-width: 100%;
}