/* ============================================
   BOOKS PAGE STYLES
   ============================================ */

/* ========== PAGE LAYOUT ========== */
.books-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #ffffff;
  overflow-x: hidden;
}

.books-page-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2734px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}

.books-bg-texture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Books Header - Custom background color from Figma (#f5e6cd) */
.books-header {
  position: relative;
  z-index: 10;
  background-color: #f5e6cd;
  border-bottom: none;
}

.books-header .nav-link {
  color: #040404;
}

.books-header .nav-link:hover {
  color: var(--color-primary);
}

.books-header .nav-link.active {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: var(--spacing-xs);
}

.books-header .mobile-menu-toggle span {
  background-color: #040404;
}

/* Override navigation background for mobile menu on books page */
@media (max-width: 968px) {
  .books-header .navigation {
    background-color: #f5e6cd;
    border-bottom: none;
  }
  
  .books-header .nav-link {
    color: #040404;
    border-bottom: var(--border-width-base) solid rgba(0, 0, 0, 0.1);
  }
  
  .books-header .nav-link:hover {
    color: var(--color-primary);
  }
}

/* Ensure footer is isolated from background */
.footer {
  position: relative;
  z-index: 10;
  background-color: #0d121f;
}

/* ========== BOOKS HERO SECTION ========== */
.books-hero-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 47px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.books-hero-container {
  max-width: 1285px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  background-color: #352810;
  border: 1px solid #8d7001;
  border-radius: 20px;
  box-shadow: 0px 11px 12px 0px rgba(78, 66, 30, 0.48);
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.books-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.books-hero-label {
  font-family: var(--font-primary);
  font-size: 22.035px;
  font-weight: 600;
  letter-spacing: 2.2035px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.71;
}

.books-hero-title {
  font-family: var(--font-primary);
  font-size: 28.828px;
  font-weight: 800;
  letter-spacing: 2.8828px;
  text-transform: uppercase;
  color: #f5e6cd;
  margin: 0;
  line-height: 1.71;
}

.books-hero-description {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  margin: 8px 0 0 0;
  line-height: 1.3;
}

.books-hero-features {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.books-hero-features li {
  font-family: var(--font-primary);
  font-size: 14.414px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.71;
}

/* Books Progress Card */
.books-progress-card {
  flex: 0 0 509px;
  padding: 26px;
  background-color: #201709;
  border: 1px solid #8d7001;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.books-progress-title {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
  line-height: 1.71;
}

.books-progress-count {
  font-family: var(--font-primary);
  font-size: 22.035px;
  font-weight: 600;
  color: #f5e6cd;
  margin: 0;
  line-height: 1.71;
}

.books-progress-description {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 600;
  color: #f5e6cd;
  margin: 0;
  line-height: 1.3;
}

.books-progress-bar-wrapper {
  margin-top: 12px;
}

.books-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.books-progress-labels .progress-label-left,
.books-progress-labels .progress-label-right {
  font-family: var(--font-primary);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f5e6cd;
  line-height: 1.71;
}

.books-progress-labels .progress-label-right {
  text-align: right;
  max-width: 250px;
}

.books-xp-progress-bar {
  position: relative;
  width: 100%;
  height: 11.353px;
  border-radius: 20px;
}

.books-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
}

.books-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #E14B3D 0%, #F3B445 17.79%, #DED588 35.89%, #93D2FC 64.91%);
  border-radius: 20px;
  transition: width 2s ease-out;
}

/* ========== FEATURED BOOK SECTION ========== */
.featured-book-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.featured-book-container {
  max-width: 1288px;
  width: 100%;
  margin: 0 auto;
  padding: 40px;
  background-color: #0f1115;
  border: 2.041px solid #49886d;
  border-radius: 40.824px;
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
}

.featured-book-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.featured-book-label {
  font-family: var(--font-primary);
  font-size: 17.398px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f7931a;
  margin: 0;
  line-height: 1.71;
}

.featured-book-title {
  font-family: var(--font-primary);
  font-size: 26.097px;
  font-weight: 600;
  letter-spacing: 2.6097px;
  color: #ffffff;
  margin: 0;
  line-height: 1.71;
}

.featured-book-description {
  font-family: var(--font-primary);
  font-size: 15.223px;
  font-weight: 500;
  color: #f5e6cd;
  margin: 8px 0 0 0;
  line-height: 1.71;
}

.featured-book-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.featured-book-features li {
  font-family: var(--font-primary);
  font-size: 15.223px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.71;
}

.featured-book-image {
  flex: 0 0 585px;
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-book-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 43px;
}

/* Book Action Buttons */
.book-action-buttons {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.book-btn {
  padding: 9px 24px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.book-btn-outline {
  background-color: transparent;
  border: 0.5px solid #ffffff;
  color: #ffffff;
}

.book-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.book-btn-primary {
  background-color: #f7931a;
  border: 0.367px solid #ffd7a6;
  color: #ffffff;
}

.book-btn-primary:hover {
  background-color: #e68217;
}

.book-btn-vault {
  background-color: #214737;
  border: 1px solid #19734d;
  color: #0cea8d;
  position: relative;
  overflow: hidden;
}

.book-btn-vault:hover {
  background-color: #2a5a44;
}

/* Tick icon styles for vault button */
.book-btn-vault .tick-icon {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.book-btn-vault.book-btn-vault--added .tick-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.book-btn-vault.book-btn-vault--added .button-text {
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.book-btn-vault .button-text {
  display: inline-block;
  transition: all 0.3s ease;
}

.book-btn-vault.book-btn-vault--added {
  background-color: #19734d;
  border-color: #0cea8d;
  pointer-events: none;
}

/* Small button tick icon adjustment */
.book-btn-small .tick-icon {
  font-size: 14px;
}

.book-btn-waitlist {
  background-color: #563a17;
  border: 0.459px solid #f7931a;
  color: #f7931a;
}

.book-btn-waitlist:hover {
  background-color: #6b4820;
}

.book-btn-small {
  padding: 7px 18px;
  font-size: 11.007px;
  border-radius: 13.759px;
}

.book-action-buttons-small {
  gap: 10px;
  margin-top: 12px;
}

/* ========== BOOKS CONTENT WRAPPER ========== */
.books-content-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0;
}

.books-content-container {
  max-width: 1285px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
}

/* ========== OTHER BOOKS SECTION ========== */
.other-books-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.other-books-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.other-books-label {
  font-family: var(--font-primary);
  font-size: 17.398px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #201709;
  margin: 0;
  line-height: 1.71;
}

.other-books-title {
  font-family: var(--font-primary);
  font-size: 26.097px;
  font-weight: 600;
  letter-spacing: 2.6097px;
  color: #0f1115;
  margin: 0;
  line-height: 1.71;
}

.other-books-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Book Card */
.book-card {
  padding: 21.096px 22.931px;
  background-color: #352810;
  border: 0.917px solid #8d7001;
  border-radius: 11.007px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}

.book-card-future {
  background-color: #191919;
  border: 0.786px solid #4a4b53;
  border-radius: 15.712px;
}

.book-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.book-card-title {
  font-family: var(--font-primary);
  font-size: 18.345px;
  font-weight: 700;
  color: #f5e6cd;
  margin: 0;
  line-height: 1.71;
}

.book-card-description {
  font-family: var(--font-primary);
  font-size: 10.843px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.71;
}

.book-card-image {
  flex: 0 0 93.653px;
  height: 134.699px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ========== BOOKS SIDEBAR ========== */
.books-sidebar {
  flex: 0 0 470px;
  display: flex;
  flex-direction: column;
  gap: 21px;
}

.sidebar-card {
  padding: 26px 19.76px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-rewards {
  background-color: #201709;
  border: 1px solid #8d7001;
  box-shadow: 0px 4px 36.9px 0px rgba(247, 147, 26, 0.25);
}

.sidebar-referral {
  background-color: #191919;
  border: 1.026px solid #4a4b53;
  border-radius: 20.524px;
}

.sidebar-card-title {
  font-family: var(--font-primary);
  font-size: 15.456px;
  font-weight: 600;
  letter-spacing: 1.5456px;
  text-transform: uppercase;
  color: #f5e6cd;
  margin: 0;
  line-height: 1.3;
}

.sidebar-referral .sidebar-card-title {
  color: #8b8b8b;
}

.sidebar-card-description {
  font-family: var(--font-primary);
  font-size: 12.88px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

.sidebar-card-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-card-features li {
  font-family: var(--font-primary);
  font-size: 12.88px;
  font-weight: 500;
  color: #f5e6cd;
  line-height: 1.3;
}

/* Sidebar Progress Bar */
.sidebar-progress-bar-wrapper {
  margin-top: 12px;
}

.sidebar-progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sidebar-progress-labels .progress-label-left,
.sidebar-progress-labels .progress-label-right {
  font-family: var(--font-primary);
  font-size: 7.336px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f5e6cd;
  line-height: 1.71;
}

.sidebar-xp-progress-bar {
  position: relative;
  width: 100%;
  height: 10.411px;
  border-radius: 20px;
}

.sidebar-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 20px;
}

.sidebar-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, #E14B3D 0%, #F3B445 17.79%, #DED588 35.89%, #93D2FC 64.91%);
  border-radius: 20px;
  transition: width 2s ease-out;
}

/* Social Share Buttons */
.social-share-buttons {
  display: flex;
  align-items: center;
  gap: 11.381px;
  margin-top: 12px;
}

.share-label {
  font-family: var(--font-primary);
  font-size: 15.649px;
  font-weight: 500;
  color: #8b8b8b;
  line-height: 1.3;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 41.258px;
  height: 34.856px;
  background-color: #191919;
  border: 0.711px solid #4a4b53;
  border-radius: 35.567px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #8b8b8b;
}

.social-btn:hover {
  background-color: #252525;
  border-color: #5a5b63;
}

.social-btn-copy {
  width: 105.278px;
  font-family: var(--font-primary);
  font-size: 15.649px;
  font-weight: 500;
  color: #8b8b8b;
}

/* ========== BONUS DOWNLOADS SECTION ========== */
.bonus-downloads-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 28px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bonus-downloads-container {
  max-width: 1285px;
  width: 100%;
  margin: 0 auto;
  padding: 38px;
  background-color: #050507;
  border: 1px solid #4a4b53;
  border-radius: 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.bonus-downloads-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bonus-downloads-title {
  font-family: var(--font-primary);
  font-size: 17.398px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f7931a;
  margin: 0;
  line-height: 1.71;
}

.bonus-downloads-description {
  font-family: var(--font-primary);
  font-size: 15.223px;
  font-weight: 500;
  color: #f5e6cd;
  margin: 0;
  line-height: 1.71;
}

.bonus-downloads-features {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bonus-downloads-features li {
  font-family: var(--font-primary);
  font-size: 15.223px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.71;
}

/* Form Card */
.bonus-downloads-form-card {
  flex: 0 0 470px;
  padding: 26px;
  background-color: #201709;
  border: 1px solid #8d7001;
  border-radius: 20px;
  box-shadow: 0px 4px 36.9px 0px rgba(247, 147, 26, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card-title {
  font-family: var(--font-primary);
  font-size: 15.456px;
  font-weight: 600;
  letter-spacing: 1.5456px;
  text-transform: uppercase;
  color: #f7931a;
  margin: 0;
  line-height: 1.3;
}

.form-card-description {
  font-family: var(--font-primary);
  font-size: 12.88px;
  font-weight: 400;
  color: #f5e6cd;
  margin: 0;
  line-height: 1.3;
}

.email-signup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.email-input {
  padding: 10px 15px;
  background-color: #050507;
  border: 0.5px solid #4a4b53;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 11.007px;
  font-weight: 400;
  color: #4a4b53;
  outline: none;
  transition: all 0.3s ease;
}

.email-input:focus {
  border-color: #8d7001;
  color: #ffffff;
}

.email-submit-btn {
  padding: 10px 24px;
  background-color: #563a17;
  border: 0.459px solid #f7931a;
  border-radius: 39.28px;
  font-family: var(--font-primary);
  font-size: 11.007px;
  font-weight: 600;
  text-transform: capitalize;
  color: #f7931a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.email-submit-btn:hover {
  background-color: #6b4820;
}

/* ========== BOOKS DISCLAIMER SECTION ========== */
.books-disclaimer-section {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0 28px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.books-disclaimer-container {
  max-width: 1285px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 38px;
  background-color: #050507;
  border: 1px solid #4a4b53;
  border-radius: 20px;
}

.books-disclaimer-text {
  font-family: var(--font-primary);
  font-size: 9px;
  font-weight: 500;
  color: #8b8b8b;
  margin: 0;
  line-height: 1.71;
  text-align: left;
}

/* ========== RESPONSIVE STYLES ========== */
@media (max-width: 1400px) {
  .books-hero-container,
  .featured-book-container,
  .books-content-container,
  .bonus-downloads-container,
  .books-disclaimer-container {
    max-width: 1200px;
    padding-left: var(--spacing-3xl);
    padding-right: var(--spacing-3xl);
  }
}

@media (max-width: 1200px) {
  .books-hero-container {
    flex-direction: column;
  }
  
  .books-progress-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .books-content-container {
    flex-direction: column;
  }
  
  .books-sidebar {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .featured-book-container {
    flex-direction: column;
  }
  
  .featured-book-image {
    flex: 1 1 100%;
    max-width: 500px;
    height: auto;
  }
}

@media (max-width: 968px) {
  .books-hero-container,
  .featured-book-container,
  .books-content-container,
  .bonus-downloads-container,
  .books-disclaimer-container {
    padding: var(--spacing-xl);
  }
  
  .bonus-downloads-container {
    flex-direction: column;
  }
  
  .bonus-downloads-form-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .books-hero-section,
  .featured-book-section,
  .bonus-downloads-section,
  .books-disclaimer-section {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
  }
  
  .books-hero-label {
    font-size: 18px;
  }
  
  .books-hero-title {
    font-size: 24px;
  }
  
  .featured-book-title {
    font-size: 22px;
  }
  
  .other-books-title {
    font-size: 22px;
  }
  
  .book-card {
    flex-direction: column;
  }
  
  .book-card-image {
    align-self: center;
  }
}

@media (max-width: 480px) {
  .books-hero-container,
  .featured-book-container,
  .books-content-container,
  .bonus-downloads-container,
  .books-disclaimer-container {
    padding: var(--spacing-lg);
  }
  
  .books-hero-label {
    font-size: 16px;
  }
  
  .books-hero-title {
    font-size: 20px;
  }
  
  .book-action-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .book-btn {
    width: 100%;
  }
  
  .social-share-buttons {
    flex-wrap: wrap;
  }
}
