/*
Theme Name: Viraliza Ela
Theme URI: https://viralizaela.com.br
Author: Viraliza Ela IA
Author URI: https://viralizaela.com.br
Description: Tema personalizado Viraliza Ela — Plataforma de IA para Beleza
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: viralizaela
*/

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

:root {
  --bg:        #1a1a1a;
  --bg2:       #222222;
  --card:      #252525;
  --border:    #333333;
  --gold:      #e8a84c;
  --gold-light:#f0bc6e;
  --white:     #f5f0eb;
  --muted:     #999999;
  --text:      #e8e2d9;
  --pink-btn:  #ff5c8d;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ─────────────── NAV ─────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #141414ee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 68px;
}

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.main-nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 400;
  transition: color .2s;
}
.main-nav a:hover { color: var(--gold); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-pink {
  background: var(--pink-btn);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}
.btn-pink:hover { opacity: .88; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: #141414f8;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 24px 24px 32px;
  flex-direction: column;
  z-index: 190;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.btn-pink-full {
  display: block; background: var(--pink-btn); color: #fff; border: none;
  border-radius: 50px; padding: 14px 24px; font-size: 0.95rem; font-weight: 600;
  text-align: center; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-login-full {
  display: block; background: transparent; color: var(--text);
  border: 1px solid var(--border); border-radius: 50px; padding: 13px 24px;
  font-size: 0.95rem; font-weight: 500; text-align: center;
}

/* ─────────────── BLOG ARCHIVE ─────────────── */
.blog-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 64px 60px 56px;
  text-align: center;
}
.blog-header .section-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.blog-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.blog-header p {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 520px;
  margin: 0 auto;
}

.blog-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 72px 60px 90px;
}

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

/* ── Post Card ── */
.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s, transform .25s;
}
.post-card:hover { border-color: var(--gold); transform: translateY(-4px); }

.post-card__thumb {
  overflow: hidden;
  height: 200px;
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .post-card__thumb img { transform: scale(1.05); }

.post-card__thumb-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.post-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-card__cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
}

.post-card__title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  transition: color .2s;
}
.post-card__title:hover { color: var(--gold); }

.post-card__excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.post-card__meta {
  font-size: 0.75rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-card__meta span { display: flex; align-items: center; gap: 4px; }

.post-card__link {
  display: inline-block;
  background: var(--gold);
  color: #1a1107;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 0.83rem;
  font-weight: 700;
  margin-top: 4px;
  align-self: flex-start;
  transition: background .2s, transform .2s;
  font-family: 'DM Sans', sans-serif;
}
.post-card__link:hover { background: var(--gold-light); transform: translateY(-2px); }

/* ── Sem posts ── */
.no-posts {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
  font-size: 1rem;
}
.no-posts h2 { color: var(--white); font-family: 'Playfair Display', serif; margin-bottom: 12px; }

/* ── Paginação ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 0.88rem;
  transition: border-color .2s, color .2s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  border-color: var(--gold);
  color: var(--gold);
}

/* ─────────────── SINGLE POST ─────────────── */
.single-post-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 64px 60px 56px;
  max-width: 860px;
  margin: 0 auto;
}
.single-post-header .post-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.single-post-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.single-post-header .post-meta {
  font-size: 0.83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.single-post-header .post-meta a { color: var(--gold); }

.single-featured-img {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 60px;
}
.single-featured-img img {
  width: 100%;
  border-radius: 16px;
  margin: 40px 0;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.single-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 60px 80px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.85;
}
.single-content h2, .single-content h3 {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  margin: 40px 0 16px;
  line-height: 1.25;
}
.single-content h2 { font-size: 1.75rem; }
.single-content h3 { font-size: 1.35rem; }
.single-content p  { margin-bottom: 20px; color: var(--text); }
.single-content a  { color: var(--gold); border-bottom: 1px solid transparent; transition: border-color .2s; }
.single-content a:hover { border-bottom-color: var(--gold); }
.single-content ul, .single-content ol { margin: 0 0 20px 24px; }
.single-content li { margin-bottom: 8px; }
.single-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 24px;
  margin: 28px 0;
  background: var(--card);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
  font-style: italic;
}
.single-content img { border-radius: 12px; margin: 28px 0; }
.single-content code {
  background: var(--card);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
}

.post-nav {
  max-width: 860px;
  margin: 0 auto 80px;
  padding: 0 60px;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.post-nav a {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  max-width: 48%;
  transition: border-color .2s;
  font-size: 0.85rem;
}
.post-nav a:hover { border-color: var(--gold); }
.post-nav .nav-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.post-nav .nav-title { color: var(--white); font-weight: 600; line-height: 1.3; }
.post-nav .prev { text-align: left; }
.post-nav .next { text-align: right; margin-left: auto; }

/* ─────────────── FOOTER ─────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: #141414;
  text-align: center;
  padding: 28px 60px;
  color: var(--muted);
  font-size: 0.83rem;
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 900px) {
  .site-header { padding: 0 24px; }
  .main-nav, .nav-right { display: none; }
  .hamburger { display: flex; }

  .blog-header { padding: 48px 24px 40px; }
  .blog-container { padding: 48px 24px 60px; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .single-post-header { padding: 48px 24px 40px; }
  .single-featured-img { padding: 0 24px; }
  .single-content { padding: 0 24px 60px; }
  .post-nav { padding: 0 24px; flex-direction: column; }
  .post-nav a { max-width: 100%; }
  .site-footer { padding: 24px; }
}

@media (max-width: 480px) {
  .site-header { height: 60px; }
  .mobile-menu { top: 60px; }
  .site-logo { font-size: 1.25rem; }

  .blog-header h1 { font-size: 1.75rem; }
  .posts-grid { grid-template-columns: 1fr; }
  .post-card__thumb, .post-card__thumb-placeholder { height: 180px; }

  .single-post-header h1 { font-size: 1.6rem; }
  .single-content { font-size: 0.95rem; }
}
