/* ==========================================================================
   COMPONENTS - OS SEGREDOS DA MENTE MILIONÁRIA
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 170px;
  padding-bottom: 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
  font-size: 1.8rem;
  color: var(--gold-primary);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Glass Mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-card-mockup {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(145deg, rgba(25, 34, 54, 0.9) 0%, rgba(12, 17, 28, 0.95) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.book-card-mockup::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.book-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: var(--gold-gradient);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.book-card-mockup blockquote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-gold);
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #000;
  font-size: 1.1rem;
}

.author-name {
  font-weight: 700;
  color: #FFF;
}
.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Money Blueprint Section (Infográfico P -> S -> A = R)
   -------------------------------------------------------------------------- */
.blueprint-container {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 48px 36px;
  backdrop-filter: blur(12px);
  box-shadow: var(--glass-shadow);
}

.formula-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .formula-flow {
    grid-template-columns: 1fr;
  }
}

.formula-step {
  background: rgba(10, 15, 26, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.formula-step:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px var(--gold-glow);
}

.step-letter {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.formula-step.result .step-letter {
  background: var(--gold-gradient);
  color: #000;
  border: none;
}

.formula-step h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.formula-step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Triad Tabs */
.triad-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.triad-tab-btn {
  padding: 12px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.triad-tab-btn.active, .triad-tab-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.triad-content-box {
  background: rgba(10, 14, 24, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
}

.phrases-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.phrases-list li {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--gold-primary);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-main);
}

.reprogram-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.reprogram-card i {
  color: var(--emerald);
  font-size: 1.5rem;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   17 Wealth Files Explorer
   -------------------------------------------------------------------------- */
.explorer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.search-box input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: #FFF;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.search-box i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.category-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 10px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-chip.active, .filter-chip:hover {
  background: var(--gold-primary);
  color: #0A0F1D;
  border-color: var(--gold-primary);
}

/* Cards Grid */
.wealth-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 28px;
}

.wealth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition-smooth);
}

.wealth-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow), 0 0 25px rgba(212, 175, 55, 0.1);
  background: var(--bg-card-hover);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--gold-primary);
  padding: 4px 12px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  border: 1px solid var(--border-gold);
}

.card-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wealth-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.mindset-comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.mindset-item {
  padding: 12px;
  border-radius: 10px;
  font-size: 0.875rem;
}

.mindset-item.rich {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid var(--emerald);
  color: #E5E7EB;
}

.mindset-item.poor {
  background: rgba(239, 68, 68, 0.08);
  border-left: 3px solid var(--crimson);
  color: var(--text-muted);
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 6px;
}

.btn-icon:hover, .btn-icon.active {
  color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   Calculadora dos 6 Potes (Money Management Jars)
   -------------------------------------------------------------------------- */
.calculator-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(16px);
}

.income-input-group {
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: center;
}

.income-input-group label {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: var(--text-gold);
}

.currency-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-symbol {
  position: absolute;
  left: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-primary);
}

.currency-input-wrapper input {
  width: 100%;
  padding: 16px 20px 16px 60px;
  border-radius: 16px;
  background: rgba(10, 15, 26, 0.9);
  border: 2px solid var(--border-gold);
  color: #FFF;
  font-size: 1.5rem;
  font-weight: 700;
  outline: none;
}

.jars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.jar-card {
  background: rgba(10, 14, 24, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.jar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--jar-color, var(--gold-primary));
}

.jar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.jar-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
}

.jar-title i {
  color: var(--jar-color, var(--gold-primary));
  font-size: 1.25rem;
}

.jar-percent {
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--jar-color, var(--gold-primary));
  font-size: 0.85rem;
}

.jar-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 12px;
}

.jar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Quiz Interativo
   -------------------------------------------------------------------------- */
.quiz-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  position: relative;
}

.quiz-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-bottom: 30px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  width: 0%;
  transition: width 0.4s ease;
}

.quiz-question-title {
  font-size: 1.4rem;
  margin-bottom: 24px;
  line-height: 1.4;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}

.quiz-option-btn {
  padding: 18px 24px;
  border-radius: 12px;
  background: rgba(10, 15, 26, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz-option-btn:hover {
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.1);
  transform: translateX(4px);
}

.quiz-result-card {
  text-align: center;
  padding: 20px;
}

.result-badge {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 3rem;
  color: #000;
  box-shadow: 0 0 30px var(--gold-glow);
}

/* Modal Global */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  max-width: 680px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
