/*
Theme Name: Folha Solta
Theme URI: https://folhasoltaoficial.com.br
Author: Folha Solta
Author URI: https://folhasoltaoficial.com.br
Description: Tema do blog Folha Solta — Evolução Pessoal que Transforma. Mindset, hábitos, inteligência emocional e indicações de livros.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: folha-solta
Tags: blog, personal-development, purple, clean, minimal
*/

:root {
  --purple: #7C3AED;
  --purple-light: #A855F7;
  --purple-pale: #F3EEFF;
  --purple-dark: #5B21B6;
  --text: #1C1B2E;
  --text-muted: #6B7280;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --border: #E5E7EB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

/* ─── NAV ─── */
nav.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.3px;
}

.site-logo img { width: 38px; height: 38px; border-radius: 8px; }
.site-logo span em { font-style: normal; color: var(--purple); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  align-items: center;
}

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}

.nav-menu a:hover { color: var(--purple); }

.nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: background .2s !important;
}

.nav-cta:hover { background: var(--purple-dark) !important; }

/* ─── HERO ─── */
.site-hero {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 50%, var(--purple-light) 100%);
  color: var(--white);
  padding: 80px 1.5rem 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='30' cy='30' r='2' fill='%23ffffff' fill-opacity='0.04'/%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-inner h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-inner p {
  font-size: 1.1rem;
  opacity: 0.88;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background: var(--white);
  color: var(--purple);
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .2s;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: white; }

/* ─── SECTIONS ─── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
}

.section-title span { color: var(--purple); }

.see-all {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
}

.see-all:hover { text-decoration: underline; }

/* ─── CATEGORIES ─── */
.categories-bg {
  background: var(--purple-pale);
  border-top: 1px solid #E0D0FF;
  border-bottom: 1px solid #E0D0FF;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}

.category-card:hover {
  box-shadow: 0 6px 24px rgba(124,58,237,0.12);
  transform: translateY(-3px);
  border-color: var(--purple-light);
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.cat-info h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.cat-info p { font-size: 0.78rem; color: var(--text-muted); }

/* ─── FEATURED POST ─── */
.featured-post {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 2.5rem;
  transition: box-shadow .25s;
}

.featured-post:hover { box-shadow: 0 10px 40px rgba(0,0,0,0.1); }

.featured-cover {
  background: linear-gradient(145deg, #5B21B6, #8B5CF6, #C084FC);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}

.featured-cover img { width: 100%; height: 100%; object-fit: cover; }
.featured-cover .cover-emoji { font-size: 5rem; }

.featured-body {
  padding: 2rem 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.featured-label::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--purple);
  border-radius: 50%;
}

.featured-body h2 {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.featured-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* ─── POST CARDS ─── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s, transform .25s;
}

.post-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.post-cover {
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.post-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-body { padding: 1.2rem 1.3rem 1.4rem; }

.post-tag {
  display: inline-block;
  background: var(--purple-pale);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.post-title {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.post-excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.post-meta strong { color: var(--text); font-weight: 600; }
.read-more { font-size: 0.82rem; font-weight: 700; color: var(--purple); }

/* ─── BOOKS ─── */
.books-bg {
  background: linear-gradient(180deg, #fff 0%, var(--purple-pale) 100%);
  border-top: 1px solid #E0D0FF;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.book-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: box-shadow .25s, transform .25s;
}

.book-card:hover {
  box-shadow: 0 8px 28px rgba(124,58,237,0.13);
  transform: translateY(-4px);
}

.book-cover {
  width: 90px;
  height: 126px;
  border-radius: 6px;
  margin: 0 auto 1rem;
  overflow: hidden;
  box-shadow: 4px 4px 16px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.book-cover img { width: 100%; height: 100%; object-fit: cover; }

.book-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--purple);
  margin-bottom: 0.4rem;
}

.book-title {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.book-author { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1rem; }

.btn-ml {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFE600;
  color: #333;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  width: 100%;
  justify-content: center;
  transition: background .2s, transform .2s;
  border: 1px solid #E6CF00;
}

.btn-ml:hover { background: #FFD500; transform: translateY(-1px); }

/* ─── SINGLE POST ─── */
.single-post-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 1.5rem 40px;
  text-align: center;
}

.single-post-header .post-tag { margin-bottom: 1rem; }

.single-post-header h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.single-post-header .post-meta {
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

.single-post-thumbnail {
  width: 100%;
  max-width: 860px;
  margin: 0 auto 3rem;
  border-radius: 16px;
  overflow: hidden;
  height: 400px;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
}

.single-post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 80px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #2d2d2d;
}

.post-content h2 {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.post-content h3 {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: var(--text);
}

.post-content p { margin-bottom: 1.5rem; }

.post-content a { color: var(--purple); text-decoration: underline; }

.post-content blockquote {
  border-left: 4px solid var(--purple);
  padding: 1rem 1.5rem;
  background: var(--purple-pale);
  border-radius: 0 12px 12px 0;
  margin: 2rem 0;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--purple-dark);
}

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content li { margin-bottom: 0.5rem; }

/* ─── NEWSLETTER ─── */
.newsletter-section {
  padding: 0 1.5rem 60px;
}

.newsletter-box {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  border-radius: 24px;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  max-width: 1100px;
  margin: 0 auto;
}

.newsletter-box h2 {
  font-family: 'Lora', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.newsletter-box p {
  opacity: 0.85;
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-size: 0.9rem;
  min-width: 200px;
  outline: none;
  font-family: 'Inter', sans-serif;
}

.newsletter-form button {
  background: var(--white);
  color: var(--purple);
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: transform .2s;
}

.newsletter-form button:hover { transform: scale(1.03); }

/* ─── BUTTONS ─── */
.btn-purple {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--purple);
  color: var(--white);
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  width: fit-content;
  transition: background .2s, transform .2s;
}

.btn-purple:hover { background: var(--purple-dark); transform: translateX(2px); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.6);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .site-logo { color: var(--white); margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.55); transition: color .2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.affiliate-note { font-size: 0.75rem; opacity: 0.5; max-width: 500px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-menu { display: none; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-cover { min-height: 180px; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .newsletter-box { border-radius: 16px; padding: 2rem 1.2rem; }
}

@media (max-width: 480px) {
  .site-hero { padding: 60px 1.2rem 70px; }
  .section { padding: 40px 1.2rem; }
}
