/*
Theme Name: Tigrão Indica
Theme URI: https://tigraoindica.com.br
Author: Tigrão Indica
Description: Blog de indicações e afiliados — design quente, amigável e colorido.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: tigrao-indica
*/

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

/* ===========================
   VARIABLES
=========================== */
:root {
  --header-bg:   #f5c28a;       /* pêssego/laranja claro — igual ao Manus */
  --accent:      #f07d1a;       /* laranja vibrante */
  --accent-dark: #d96800;
  --red-ticker:  #cc2200;       /* faixa vermelha do ticker */
  --bg:          #f5f5f3;       /* fundo geral cinza claro */
  --card-bg:     #ffffff;
  --text:        #1a1a1a;
  --text-muted:  #666;
  --border:      #e8e8e4;
  --cat-bg:      #fef0e3;
  --cat-color:   #c96800;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover:0 8px 32px rgba(240,125,26,0.18);
  --font-display:'Fredoka', sans-serif;
  --font-body:   'Open Sans', sans-serif;
}

/* ===========================
   RESET
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-wrapper { min-height: 100vh; }

/* ===========================
   HEADER — pêssego igual Manus
=========================== */
.site-header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  gap: 20px;
}

/* Logo + nome */
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.site-branding .logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
}
/* Fallback SVG tigre quando não há logo */
.logo-svg-wrap {
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
}
.site-title-text {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1;
}

/* Nav */
.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
.main-nav a {
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .18s, color .18s;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  background: rgba(255,255,255,0.5);
  color: var(--accent-dark);
}

/* CTA button */
.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 10px rgba(240,125,26,0.3);
}
.header-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  color: #fff !important;
}

/* Menu toggle mobile */
.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.5);
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
}

/* ===========================
   TICKER — faixa vermelha
=========================== */
.ticker-wrap {
  background: var(--red-ticker);
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  animation: ticker-scroll 35s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-block;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0 32px;
}
.ticker-item::before { content: '🔥 '; }
.ticker-sep {
  display: inline-block;
  color: rgba(255,255,255,0.4);
  margin: 0 8px;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
  background: #fff;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 420px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}
.hero-content { padding: 50px 0; }
.hero-eyebrow {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 16px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-title .highlight { color: var(--accent); }
.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 440px;
  margin-bottom: 28px;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 8px;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); color: #fff; }
.btn-secondary {
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 8px;
  border: 2px solid var(--border);
  transition: border-color .2s, background .2s;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: var(--cat-bg); }
.hero-badges {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-badge {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.hero-badge::before { content: '✓ '; color: var(--accent); font-weight: 700; }

.hero-image {
  position: relative;
  height: 420px;
  overflow: hidden;
}
.hero-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Fade esquerda na imagem hero */
.hero-image::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px; height: 100%;
  background: linear-gradient(90deg, #fff, transparent);
  z-index: 1;
}

/* ===========================
   SECTION TITLES
=========================== */
.section-head {
  margin-bottom: 36px;
}
.section-eyebrow {
  display: block;
  width: 36px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===========================
   POSTS GRID
=========================== */
.posts-section { padding: 56px 0; }

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

/* Card */
.post-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.post-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--cat-bg);
}
.post-card .thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .thumb img { transform: scale(1.04); }
.no-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #fef0e3, #fde8d4);
}

.card-body {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Category badge — pill clara igual Manus */
.cat-pill {
  display: inline-block;
  background: var(--cat-bg);
  color: var(--cat-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  flex: 1;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent); }

.card-excerpt {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  font-size: 0.78rem;
  color: #aaa;
  display: flex;
  gap: 10px;
}
.card-read-more {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  transition: gap .2s;
}
.post-card:hover .card-read-more { gap: 8px; }

/* ===========================
   AFFILIATE STRIP
=========================== */
.affiliate-strip {
  background: linear-gradient(90deg, var(--accent) 0%, #f5a623 100%);
  border-radius: var(--radius);
  padding: 28px 36px;
  margin: 8px 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(240,125,26,0.25);
}
.aff-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}
.aff-text p { color: rgba(255,255,255,0.88); font-size: 0.9rem; margin-top: 4px; }
.btn-aff {
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: 50px;
  white-space: nowrap;
  transition: transform .18s, box-shadow .18s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.btn-aff:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(0,0,0,0.18); color: var(--accent); }

/* ===========================
   CONTENT + SIDEBAR
=========================== */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  padding: 50px 0;
}
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.widget-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
}
.widget ul { list-style: none; }
.widget ul li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--text); font-weight: 500; }
.widget ul li a:hover { color: var(--accent); }

.widget-aff {
  background: linear-gradient(135deg, #fff8f2, #fef0e3);
  border-color: #fbd9b7;
  text-align: center;
}
.widget-aff .aff-icon { font-size: 2.2rem; margin-bottom: 8px; }
.widget-aff h4 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.widget-aff p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.btn-widget-aff {
  display: block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 18px;
  border-radius: 50px;
  transition: background .2s;
}
.btn-widget-aff:hover { background: var(--accent-dark); color: #fff; }

/* ===========================
   SINGLE POST
=========================== */
.single-header { padding: 48px 0 32px; }
.single-header .cat-pill { margin-bottom: 14px; }
.single-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 0.83rem;
}
.featured-img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/7;
  margin-bottom: 32px;
}
.featured-img img { width: 100%; height: 100%; object-fit: cover; }

.post-content { font-size: 1.02rem; line-height: 1.85; color: #333; }
.post-content h2 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; margin: 1.8em 0 .6em; color: var(--text); }
.post-content h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 1.5em 0 .5em; color: var(--text); }
.post-content p { margin-bottom: 1.2em; }
.post-content a { color: var(--accent); font-weight: 600; }
.post-content ul, .post-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.post-content li { margin-bottom: .35em; }
.post-content blockquote {
  border-left: 4px solid var(--accent);
  background: var(--cat-bg);
  padding: 14px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.4em 0;
  color: var(--text-muted);
  font-style: italic;
}

/* Affiliate box no post */
.affiliate-box {
  background: linear-gradient(135deg, #fff8f2, #fef0e3);
  border: 2px solid #fbd9b7;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 2em 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.affiliate-box .aff-info { flex: 1; min-width: 180px; }
.affiliate-box .aff-info strong { display: block; font-weight: 700; margin-bottom: 3px; }
.affiliate-box .aff-info span { font-size: 0.83rem; color: var(--text-muted); }
.btn-aff-inline {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 11px 22px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background .2s;
}
.btn-aff-inline:hover { background: var(--accent-dark); color: #fff; }

/* Share buttons */
.share-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2em; padding-top: 1.5em; border-top: 1px solid var(--border); align-items: center; }
.share-label { font-size: .82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.btn-share {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: .82rem;
  padding: 8px 18px;
  border-radius: 50px;
  transition: background .18s;
}
.btn-share:hover { background: var(--accent-dark); color: #fff; }
.btn-share.wpp { background: #25d366; }
.btn-share.wpp:hover { background: #1ebe5d; }

/* ===========================
   PAGINATION
=========================== */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 40px 0;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 9px 17px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  transition: background .18s, border-color .18s, color .18s;
}
.pagination a:hover, .pagination .current {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.footer-brand .brand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-brand p { color: var(--text-muted); font-size: .88rem; max-width: 250px; }
.footer-note { font-size: .75rem; color: #bbb; margin-top: 12px; }
.footer-col h4 {
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: .88rem; font-weight: 500; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: #aaa;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===========================
   CATEGORIES PAGE
=========================== */
.archive-header { padding: 40px 0 32px; }
.archive-header h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-top: 12px; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--header-bg); padding: 16px 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { height: 220px; }
  .hero-image::before { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .affiliate-strip { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
