/* RESET & VARIÁVEIS */
:root {
  --bg-color: #0b0b0d;
  --bg-card: #141418;
  --text-main: #e6e6e8;
  --text-muted: #9e9ea7;
  --accent-gold: #c5a059;
  --accent-gold-hover: #d8b26a;
  --border-color: #23232a;
  --font-main: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* CABEÇALHO */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(11, 11, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-img {
  max-height: 40px;
  width: auto;
  display: block;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-list a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-list a:hover {
  color: var(--accent-gold);
}

/* BOTÕES & TAGS */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-gold);
  color: #000;
  border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.tag-gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* CARROSSEL HERO */
.hero-carousel {
  position: relative;
  height: 85vh;
  min-height: 600px;
  margin-top: 80px;
  overflow: hidden;
}

.carousel-slides {
  position: relative;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11,11,13,0.95) 0%, rgba(11,11,13,0.6) 50%, rgba(11,11,13,0.2) 100%);
  z-index: 2;
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 650px;
}

.slide-content h2 {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 700;
}

.slide-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 24, 0.6);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--accent-gold);
  color: #000;
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: var(--accent-gold);
}

/* SEÇÕES GERAIS */
.section {
  padding: 6rem 0;
}

.section-subtitle {
  color: var(--accent-gold);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  max-width: 1200px;
  margin: 0 auto;
}

/* SEÇÃO LIVROS */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.book-grid.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.book-cover-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-cover {
  width: 100%;
  max-width: 360px;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
}

.badge-status {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-gold);
  color: #000;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.book-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.book-features {
  list-style: none;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.book-features li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.book-features strong {
  color: var(--text-main);
}

.status-box {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent-gold);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* SEÇÃO AUTOR */
.author-section {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.author-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.author-img {
  width: 100%;
  max-width: 400px;
  border-radius: 4px;
  filter: grayscale(20%);
  border: 1px solid var(--border-color);
}

.bio-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.bio-quote {
  font-style: italic;
  border-left: 2px solid var(--accent-gold);
  padding-left: 1rem;
  color: var(--text-main);
  font-size: 1rem;
}

/* RODAPÉ */
.footer {
  padding: 2.5rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-color);
}

/* RESPONSIVIDADE */
@media (max-width: 900px) {
  .book-grid, .book-grid.reverse, .author-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .book-grid.reverse .book-cover-wrapper {
    order: -1;
  }

  .slide-content h2 {
    font-size: 2.2rem;
  }

  .nav-list {
    display: none;
  }

  .carousel-btn {
    display: none;
  }
}