/* Complete CSS rewrite - simple Minecraft-style book with two visible pages */

.book-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background: var(--bg);
  min-height: 100vh;
}

.book-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

/* Navigation buttons */
.nav-buttons {
  display: none;
}

.arrow-btn {
  width: 50px;
  height: 50px;
  background: var(--primary-active);
  color: var(--bg);
  border: 2px solid var(--primary-active);
  border-radius: 4px;
  font-size: 24px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn:hover:not(:disabled) {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(8, 242, 251, 0.5);
}

.arrow-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Main book display */
.open-book {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: 1000px;
  background: linear-gradient(135deg, #8b6f47 0%, #6b4423 100%);
  padding: 30px 20px;
  border: 2px solid #5a3a1f; /* border reduced from 4px to 2px */
  border-radius: 20px;
  /* reduced shadow sizes for less bulky sides */
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), inset -8px 0 15px rgba(0, 0, 0, 0.4), inset 8px 0 15px rgba(0, 0, 0, 0.2),
    inset 0 -5px 10px rgba(0, 0, 0, 0.3);
}

.page-container {
  display: flex;
  gap: 0;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}

/* New arrow design - small rounded black buttons on each page */
.page-arrow {
  width: 28px;
  height: 28px;
  background: #1a1a1a;
  color: #ffffff;
  border: 2px solid #333333;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.page-arrow:hover:not(:disabled) {
  background: #2a2a2a;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.page-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.left-arrow {
  margin-right: 15px;
}

.right-arrow {
  margin-left: 15px;
}

/* Left and right pages with rounded corners */
.book-left,
.book-right {
  flex: 1;
  background: #f5deb3;
  padding: 40px 35px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  border: 2px dashed #8b6f47;
  border-radius: 12px;
  position: relative;
  /* reduced layered shadow effect for cleaner look */
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.1),
    2px 6px 0px -2px rgba(0, 0, 0, 0.15),
    4px 12px 0px -4px rgba(0, 0, 0, 0.1),
    6px 18px 0px -6px rgba(0, 0, 0, 0.05),
    inset -2px 0 5px rgba(0, 0, 0, 0.05);
}

.book-left {
  border-right: none;
}

.book-left h2,
.book-right h2 {
  font-family: "Courier New", monospace;
  font-size: 18px;
  font-weight: bold;
  color: #1d1d1f;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #8b6f47;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-text {
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #2a2a2a;
  overflow-y: auto;
  flex: 1;
  padding-right: 8px;
}

.page-text p {
  margin-bottom: 12px;
  text-align: justify;
}

.page-text strong {
  color: #1d1d1f;
  font-weight: bold;
}

.page-text ul {
  margin-left: 20px;
  margin-bottom: 12px;
}

.page-text li {
  margin-bottom: 6px;
  color: #2a2a2a;
}

/* Page indicator */
.page-indicator {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  margin-top: 20px;
}

/* Scrollbar styling for content */
.page-text::-webkit-scrollbar {
  width: 6px;
}

.page-text::-webkit-scrollbar-track {
  background: transparent;
}

.page-text::-webkit-scrollbar-thumb {
  background: #8b6f47;
  border-radius: 3px;
}

/* FAQ and Support sections styling */
.faq-section {
  padding: 80px 20px;
  text-align: center;
}

.faq-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 50px;
  color: var(--text);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  padding: 30px;
  border-radius: 4px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--primary-active);
  box-shadow: 0 10px 30px rgba(8, 242, 251, 0.1);
}

.faq-item h4 {
  color: var(--primary-active);
  margin-bottom: 12px;
  font-size: 16px;
}

.faq-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.support-section {
  padding: 80px 20px;
  text-align: center;
}

.support-section h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.support-section p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 16px;
}

.support-button {
  background: var(--primary-active);
  color: var(--bg);
  border: none;
  padding: 12px 40px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.support-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(8, 242, 251, 0.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .book-container {
    padding: 40px 15px;
  }

  .open-book {
    flex-direction: column;
    gap: 0;
    padding: 15px 10px;
    border-radius: 15px;
  }

  .page-arrow {
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .left-arrow {
    margin-right: 10px;
  }

  .right-arrow {
    margin-left: 10px;
  }

  .book-left,
  .book-right {
    min-height: 400px;
    padding: 25px 20px;
    border: 2px dashed #8b6f47;
  }

  .book-left {
    border-right: 2px dashed #8b6f47;
    border-bottom: none;
  }

  .nav-buttons {
    gap: 30px;
  }

  .arrow-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .page-text {
    font-size: 11px;
  }

  .book-left h2,
  .book-right h2 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .book-container {
    padding: 30px 10px;
  }

  .open-book {
    padding: 10px 5px;
    border-radius: 12px;
  }

  .page-arrow {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .book-left,
  .book-right {
    min-height: 350px;
    padding: 20px 15px;
  }

  .nav-buttons {
    gap: 20px;
  }

  .arrow-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .page-text {
    font-size: 10px;
  }

  .book-left h2,
  .book-right h2 {
    font-size: 14px;
    margin-bottom: 15px;
  }
}
