/*
Theme Name: SmartBooks
Theme URI: https://smartbooks.com.br
Author: SmartBooks
Author URI: https://smartbooks.com.br
Description: Tema premium de landing page para a biblioteca digital SmartBooks. Design escuro com detalhes em dourado.
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: smartbooks
*/

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

:root {
  --gold: #FFD700;
  --gold-dim: #C8A600;
  --gold-glow: #FFE44D;
  --bg: #000000;
  --card-bg: #0F0F0F;
  --border-color: #262626;
  --text: #FFFFFF;
  --text-muted: #999999;
  --radius: 0.75rem;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== UTILITY CLASSES ===== */
.section-padding {
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 7rem 1rem;
  }
}

.max-w-container {
  max-width: 1200px;
  margin: 0 auto;
}

.max-w-narrow {
  max-width: 800px;
  margin: 0 auto;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #FFD700, #FFE082, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #FFD700, #C8A600);
}

.glass-card {
  background: rgba(15, 15, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(38, 38, 38, 0.5);
  border-radius: 1rem;
}

.gold-glow {
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.15), 0 0 80px rgba(255, 215, 0, 0.05);
}

.gold-glow-strong {
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 0 60px rgba(255, 215, 0, 0.1);
}

/* ===== BUTTONS ===== */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #000;
  background: linear-gradient(135deg, #FFD700, #C8A600);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  text-transform: uppercase;
}

.btn-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold);
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-cta-outline:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: scale(1.05);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2rem 1rem;
}

.hero__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 215, 0, 0.05);
  filter: blur(120px);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 215, 0, 0.05);
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== BOOK CAROUSEL ===== */
.carousel-section {
  padding: 3rem 1rem;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: 1.5rem;
  animation: scroll-x 30s linear infinite;
}

.carousel__book {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 2/3;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== ADVANTAGES GRID ===== */
.advantages__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.advantage-card {
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.advantage-card:hover {
  border-color: rgba(255, 215, 0, 0.4);
}

.advantage-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.advantage-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #000;
}

.advantage-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.advantage-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ===== TESTIMONIALS ===== */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 1.5rem;
}

.testimonial-card__stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.testimonial-card__stars svg {
  width: 1rem;
  height: 1rem;
  fill: var(--gold);
  color: var(--gold);
}

.testimonial-card p {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.testimonial-card__author {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.whatsapp-screenshots {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.whatsapp-placeholder {
  width: 12rem;
  aspect-ratio: 9/16;
  border-radius: 1rem;
  background: #1a1a1a;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== PRICING ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-card {
  position: relative;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border-color);
  background: rgba(15, 15, 15, 0.4);
}

.pricing-card--popular {
  border-color: var(--gold);
  background: var(--card-bg);
}

.pricing-card__badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  color: #000;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.pricing-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  margin-bottom: 1.5rem;
}

.pricing-card__price small {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-card__price span {
  font-size: 3rem;
  font-weight: 900;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.375rem 0;
}

.pricing-card__features li svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.countdown__label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.countdown__digit {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
}

/* ===== FAQ ===== */
.faq-item {
  padding: 0 1.5rem;
  border: 1px solid rgba(38, 38, 38, 0.5);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-item__question:hover {
  color: var(--gold);
}

.faq-item__question svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-item__question svg {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.faq-item.active .faq-item__answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 1rem;
  text-align: center;
}

.site-footer h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}

.site-footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2rem;
}

/* ===== SOCIAL PROOF POPUP ===== */
.social-proof {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  max-width: 280px;
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.4s ease;
}

.social-proof.visible {
  opacity: 1;
  transform: translateX(0);
}

.social-proof__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-proof__text strong {
  display: block;
  font-size: 0.875rem;
}

.social-proof__text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.2); }
  50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.4); }
}

.animate-pulse-gold {
  animation: pulse-gold 2s ease-in-out infinite;
}
