/* Enhanced Book Page Styles - book.css */

/* Import Google Fonts if not already included */
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Playfair+Display:wght@400;600;700&display=swap');

/* Enhanced Breadcrumb Navigation */
.breadcrumb {
  margin: 1rem 0 2rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
  justify-content: center;
  align-items: center;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "→";
  margin: 0 0.75rem;
  color: #6a4387;
  font-weight: bold;
}

.breadcrumb-item a {
  color: #6a4387;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  background: #6a4387;
  color: white;
  transform: translateY(-2px);
}

.breadcrumb-item.active {
  color: #48c3be;
  font-weight: 600;
  padding: 0.5rem 1rem;
}

/* Enhanced Book Header */
.book-header {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 30px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  overflow: hidden;
}

.book-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #6a4387 0%, #48c3be 50%, #96ebf0 100%);
}

.book-header-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

/* Enhanced Book Cover Section */
.book-cover-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.book-cover-container {
  position: relative;
  margin-bottom: 2rem;
}

.cover-link {
  display: block;
  position: relative;
  transition: transform 0.4s ease;
}

.cover-link::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(45deg, #6a4387, #48c3be, #96ebf0, #6a4387);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cover-link:hover {
  transform: translateY(-10px);
}

.cover-link:hover::before {
  opacity: 0.7;
}

.book-cover-image {
  width: 300px;
  height: auto;
  border-radius: 20px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 10px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  border: 3px solid white;
  position: relative;
  z-index: 1;
}

.purchase-section {
  text-align: center;
  margin-top: 1.5rem;
}

.amazon-purchase-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(135deg, #ff9900 0%, #ffad33 100%);
  color: white;
  padding: 1.25rem 2.5rem;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.4s ease;
  box-shadow: 
    0 8px 25px rgba(255, 153, 0, 0.4),
    0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.amazon-purchase-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.amazon-purchase-btn:hover::before {
  left: 100%;
}

.amazon-purchase-btn:hover {
  background: linear-gradient(135deg, #e68a00 0%, #ff9900 100%);
  transform: translateY(-5px);
  box-shadow: 
    0 12px 30px rgba(255, 153, 0, 0.5),
    0 6px 15px rgba(0, 0, 0, 0.2);
  color: white;
  text-decoration: none;
}

.btn-icon {
  font-size: 1.3rem;
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.amazon-purchase-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.affiliate-notice {
  margin-top: 1rem;
  color: #666;
  font-style: italic;
  font-size: 0.9rem;
}

/* Enhanced Book Information Section */
.book-info-section {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.book-meta {
  border-bottom: 3px solid #e9ecef;
  padding-bottom: 2rem;
  position: relative;
}

.book-meta::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #6a4387 0%, #48c3be 100%);
}

.book-title {
  font-size: 3rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0 0 1.5rem 0;
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.author-info {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.by-text {
  color: #666;
  font-style: italic;
}

.author-link {
  color: #6a4387;
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.author-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6a4387 0%, #48c3be 100%);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.author-link:hover::before {
  opacity: 0.1;
}

.author-link:hover {
  color: #6a4387;
  text-decoration: none;
  transform: translateY(-2px);
}

.series-info {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.series-label, .book-number {
  background: linear-gradient(135deg, #6a4387 0%, #48c3be 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(106, 67, 135, 0.3);
  transition: all 0.3s ease;
}

.book-number {
  background: linear-gradient(135deg, #48c3be 0%, #96ebf0 100%);
  box-shadow: 0 4px 15px rgba(72, 195, 190, 0.3);
}

.series-label:hover, .book-number:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(106, 67, 135, 0.4);
}

.publication-info, .isbn-info {
  margin-bottom: 0.75rem;
  color: #666;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pub-label, .isbn-label {
  font-weight: 600;
  color: #6a4387;
  min-width: 80px;
}

/* Enhanced Book Description */
.book-description {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(106, 67, 135, 0.1);
  border: 2px solid transparent;
  position: relative;
}

.book-description::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6a4387 0%, #48c3be 100%);
  border-radius: 20px 20px 0 0;
}

.book-description h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.book-description h2::before {
  content: '📖';
  font-size: 1.5rem;
}

.description-content {
  color: #444;
  line-height: 1.8;
  font-size: 1.1rem;
}

.description-content p {
  margin-bottom: 1.2rem;
}

.description-content p:last-child {
  margin-bottom: 0;
}

/* Enhanced Author Connections */
.author-connections {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  position: relative;
}

.author-connections::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #48c3be 0%, #96ebf0 100%);
  border-radius: 20px 20px 0 0;
}

.author-connections h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-connections h3::before {
  content: '🔗';
  font-size: 1.3rem;
}

.author-links-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.author-website-btn, .social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #6a4387 0%, #48c3be 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.4s ease;
  width: fit-content;
  box-shadow: 0 6px 20px rgba(106, 67, 135, 0.3);
  position: relative;
  overflow: hidden;
}

.author-website-btn::before, .social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.author-website-btn:hover::before, .social-link:hover::before {
  left: 100%;
}

.author-website-btn:hover, .social-link:hover {
  background: linear-gradient(135deg, #48c3be 0%, #96ebf0 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(72, 195, 190, 0.4);
  color: white;
  text-decoration: none;
}

.social-link.facebook {
  background: linear-gradient(135deg, #1877f2 0%, #42a5f5 100%);
}

.social-link.instagram {
  background: linear-gradient(135deg, #e4405f 0%, #f77737 100%);
}

.link-icon {
  font-size: 1.2rem;
}

/* Enhanced Series Navigation */
.series-books {
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.series-books h2 {
  color: #2c3e50;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.series-books h2::before {
  content: '📚';
  font-size: 1.8rem;
}

.series-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.series-book-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.series-book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6a4387 0%, #48c3be 100%);
}

.series-book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  border-color: #6a4387;
}

.series-book-cover {
  width: 160px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  margin: 0 auto 1.5rem auto;
  display: block;
}

.series-book-cover:hover {
  transform: scale(1.05);
}

.series-book-info {
  text-align: center;
}

.series-book-title {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.series-book-title a {
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s ease;
}

.series-book-title a:hover {
  color: #6a4387;
}

.series-book-number {
  color: #666;
  font-style: italic;
  margin-bottom: 1rem;
}

.series-amazon-btn {
  background: linear-gradient(135deg, #ff9900 0%, #ffad33 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.series-amazon-btn:hover {
  background: linear-gradient(135deg, #e68a00 0%, #ff9900 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
  color: white;
  text-decoration: none;
}

/* Enhanced Other Series */
.other-series {
  margin-bottom: 3rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.other-series h2 {
  color: #2c3e50;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.other-series h2::before {
  content: '🔄';
  font-size: 1.8rem;
}

.other-series-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.other-series-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
}

.other-series-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #48c3be 0%, #96ebf0 100%);
  border-radius: 20px 20px 0 0;
}

.other-series-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
  border-color: #48c3be;
}

.other-series-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.other-series-header h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.series-book-count {
  background: linear-gradient(135deg, #6a4387 0%, #48c3be 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(106, 67, 135, 0.3);
}

.other-series-preview {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
  justify-content: center;
}

.preview-book {
  flex-shrink: 0;
}

.preview-cover {
  width: 70px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.preview-cover:hover {
  transform: scale(1.1);
}

.more-books-indicator {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #6a4387;
  border-radius: 6px;
  width: 70px;
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #6a4387;
  text-align: center;
  font-weight: 600;
}

.other-series-footer {
  text-align: center;
}

.view-series-btn {
  background: linear-gradient(135deg, #48c3be 0%, #96ebf0 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(72, 195, 190, 0.3);
}

.view-series-btn:hover {
  background: linear-gradient(135deg, #6a4387 0%, #48c3be 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(106, 67, 135, 0.4);
  color: white;
  text-decoration: none;
}

/* Enhanced Navigation Footer */
.book-navigation {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 3rem 0 2rem 0;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
}

.nav-btn {
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.nav-btn:hover::before {
  left: 100%;
}

.nav-btn.primary {
  background: linear-gradient(135deg, #6a4387 0%, #48c3be 100%);
  color: white;
  box-shadow: 0 6px 20px rgba(106, 67, 135, 0.3);
}

.nav-btn.primary:hover {
  background: linear-gradient(135deg, #48c3be 0%, #96ebf0 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(72, 195, 190, 0.4);
  color: white;
  text-decoration: none;
}

.nav-btn.secondary {
  background: white;
  color: #6a4387;
  border: 2px solid #6a4387;
  box-shadow: 0 4px 15px rgba(106, 67, 135, 0.2);
}

.nav-btn.secondary:hover {
  background: #6a4387;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(106, 67, 135, 0.4);
  text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .book-header-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .book-cover-section {
    order: -1;
  }
  
  .book-cover-image {
    width: 250px;
  }
  
  .book-info-section {
    text-align: left;
  }

  .series-books-grid, .other-series-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .book-header {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  
  .book-title {
    font-size: 2.5rem;
  }
  
  .book-cover-image {
    width: 220px;
  }
  
  .series-books-grid, .other-series-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .amazon-purchase-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .book-navigation {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .nav-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container2 {
    padding: 0.5rem;
  }

  .breadcrumb {
    margin: 0.5rem 0 1rem 0;
    padding: 0.75rem;
  }
  
  .breadcrumb-list {
    font-size: 0.85rem;
  }
  
  .book-header {
    padding: 1.5rem;
  }
  
  .book-title {
    font-size: 2rem;
  }
  
  .book-cover-image {
    width: 200px;
  }
  
  .series-info {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .amazon-purchase-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .other-series-preview {
    justify-content: center;
  }
}

/* Accessibility and Focus States */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.amazon-purchase-btn:focus,
.author-link:focus,
.nav-btn:focus,
.series-amazon-btn:focus,
.view-series-btn:focus,
.author-website-btn:focus,
.social-link:focus {
  outline: 3px solid #6a4387;
  outline-offset: 3px;
}

/* Print Styles */
@media print {
  .book-navigation,
  .amazon-purchase-btn,
  .series-amazon-btn,
  .author-website-btn,
  .social-link {
    display: none;
  }
  
  .book-header {
    box-shadow: none;
    border: 2px solid #ccc;
  }
  
  .book-cover-image {
    max-width: 200px;
  }

  body {
    background: white;
  }
}