@import "./json-preview.css";
@import "./tool-tip.css";

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px; /* Improved readability */
  margin: 0;
  line-height: 1.6; /* Better line height ratio */
  background: linear-gradient(180deg, #ffffff 0%, #fefefe 50%, #f9fafb 100%);
  min-height: 100vh;
  color: #1a202c; /* Better contrast */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4 {
  font-weight: bold;
  letter-spacing: 0.2px;
}

body h1 {
  font-size: 44px;
  line-height: 56px;
}

body h2 {
  font-size: 28px;
  line-height: 34px;
}

body h3,
h4 {
  font-size: 18px;
  line-height: 24px;
}

body a {
  text-decoration: none;
  color: #222222;
}

body p {
  color: #4a5568; /* Better contrast and readability */
}

/* Modern Button Styles - UX Best Practices */
.btn, button {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px; /* Touch-friendly minimum size */
  position: relative;
  overflow: hidden;
}

.btn:hover, button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active, button:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.btn-secondary {
  background: #f7fafc;
  color: #2d3748;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
}

/* Focus states for accessibility */
.btn:focus, button:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Loading state */
.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.max-width {
  width: 90%;
  margin: 0 auto;
  max-width: 1280px;
  padding: 0 20px; /* Better mobile spacing */
}

/* Modern Card Styles */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.card-header {
  padding: 20px 24px 0;
}

.card-body {
  padding: 20px 24px;
}

.card-footer {
  padding: 0 24px 20px;
  border-top: 1px solid #f1f5f9;
  margin-top: 16px;
  padding-top: 16px;
}

/* Improved Typography Scale */
.text-xs { font-size: 12px; line-height: 1.4; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-base { font-size: 16px; line-height: 1.6; }
.text-lg { font-size: 18px; line-height: 1.6; }
.text-xl { font-size: 20px; line-height: 1.6; }
.text-2xl { font-size: 24px; line-height: 1.5; }
.text-3xl { font-size: 30px; line-height: 1.4; }
.text-4xl { font-size: 36px; line-height: 1.3; }

/* Color Utilities */
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }

/* Spacing Utilities */
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* Grid System */
.grid {
  display: grid;
  gap: 24px;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Responsive Grid */
@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-cols-3, .grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Modern Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  transition: all 0.2s ease;
  min-height: 44px; /* Touch-friendly */
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input.error, .form-textarea.error, .form-select.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
}

.form-help {
  color: #6b7280;
  font-size: 14px;
  margin-top: 4px;
}

/* Modern Alert Styles */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 24px;
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-success {
  background: #f0fdf4;
  border-left-color: #22c55e;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

.alert-warning {
  background: #fffbeb;
  border-left-color: #f59e0b;
  color: #92400e;
}

.alert-info {
  background: #eff6ff;
  border-left-color: #3b82f6;
  color: #1e40af;
}

/* Modern Badge Styles */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: #ddd6fe;
  color: #5b21b6;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.badge-error {
  background: #fecaca;
  color: #991b1b;
}

/* Loading States */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn, button {
    border: 2px solid currentColor;
  }
  
  .card {
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background: #1a202c;
    color: #f7fafc;
  }
  
  .card {
    background: #2d3748;
    border-color: #4a5568;
  }
  
  .form-input, .form-textarea, .form-select {
    background: #2d3748;
    border-color: #4a5568;
    color: #f7fafc;
  }
}

.note-div {
  background: #f2efff;
}

.note-div p {
  margin: 0 auto;
  text-align: center;
  padding: 5px 0;
  color: #222222;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: auto;
}

nav ul li {
  display: inline-block;
  padding: 23px 30px;
  letter-spacing: 0.2px;
  text-transform: capitalize;
}

nav ul li a {
  font-weight: 600;
}

.top-section h2,
.top-section p {
  margin: 6px 0;
  padding: 0;
}

header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 9;
  overflow: visible;
}

header .max-width {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
}

header .wrapper-logo {
  flex: 0 0 170px;
  margin: 20px 0;
}

header .wrapper-logo .site-name {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
}

header nav {
  flex: 1 1 100%;
  text-align: center;
}

/* Header Actions - Sign In and Cart */
.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Authentication Styles */
.user-menu-container {
  position: relative;
  z-index: 1000;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.user-profile-btn:hover {
  background: #f3f4f6;
}

.user-name {
  font-weight: 600;
  color: #1f2937;
}

.dropdown-arrow {
  font-size: 10px;
  color: #9ca3af;
  transition: transform 0.2s ease;
}

.user-profile-btn:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 250px;
  z-index: 9999;
  overflow: visible;
  margin-top: 8px;
  animation: dropdownFadeIn 0.2s ease-out;
}

.user-info {
  padding: 20px 16px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
}

.user-name-full {
  font-weight: 600;
  color: #1f2937;
  font-size: 16px;
  margin-bottom: 6px;
}

.user-email {
  color: #6b7280;
  font-size: 14px;
  word-break: break-all;
}

.dropdown-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #f3f4f6;
  color: #1f2937;
}

.logout-btn {
  color: #dc2626;
}

.logout-btn:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.sign-in-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid #715cdd;
  color: #715cdd;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sign-in-btn:hover {
  background: #715cdd;
  color: white;
}

.user-icon {
  font-size: 16px;
}

.cart-btn {
  position: relative;
  background: none;
  border: 1px solid #715cdd;
  color: #715cdd;
  padding: 10px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn:hover {
  background: #715cdd;
  color: white;
}

.cart-icon {
  font-size: 16px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

.header-div {
  height: auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 15px;
  padding: 10px 0;
  min-width: 100%;
  overflow-x: auto;
}

.devtools {
  float: right;
  position: relative;
  bottom: 30px;
  right: 1%;
  cursor: pointer;
}

.devtools img {
  width: 28px;
}

.header-ul {
  overflow: hidden;
}

header nav li a:hover,
header nav li a.active {
  color: #715cdd;
}

.header-ul .hamburger-icon {
  display: none;
}

footer {
  margin-top: 75px;
  background: #fff;
}

footer a {
  color: #222222;
  padding: 12px;
}

.footer-div {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
}

.footer-nav-li {
  padding: 0;
}

.col-half {
  margin: auto;
}

.col-quarter {
  display: inline-block;
  margin: auto 0;
}

.copyright {
  padding: 5px;
  text-align: center;
}

.contact-form {
  width: 100%;
  background: #f7f7f7;
  height: 400px;
}

.blog-roll,
.blog-entry {
  font-size: 0.9em;
}

.blog-post h2 {
  margin: 0 0 12px;
}

.blog-post .blog-meta {
  margin-top: 0;
  font-weight: 300;
  font-size: 24px;
}

.blog-post .blog-meta .author {
  padding-left: 1em;
}

/* button area in contact form */

.btn {
  border: none;
  font-size: 14px;
  line-height: 18px;
  border-radius: 2px;
  letter-spacing: 0.3px;
  padding: 12px 28px;
}

.primary-btn {
  background: #715cdd;
  color: #fff;
  cursor: pointer;
}

.primary-btn:hover {
  background: #715cdd;
  color: #fff;
  font-weight: 600;
}

.secondary-btn {
  border: 1px solid #715cdd;
  color: #715cdd;
}

.secondary-btn:hover {
  color: #715cdd;
  font-weight: bold;
}

.tertiary-btn {
  background: #ffffff;
  color: #715cdd;
  font-weight: bold;
}

.tertiary-btn:hover {
  color: #5c49be;
}

.btn-close {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0 0.5rem !important;
}

.modal-btn {
  font-style: normal;
  font-weight: bold;
  font-size: 13px;
  line-height: 135%;
  color: #647696;
}

.modal-btn:hover {
  color: #222222;
}

.text-field textarea {
  width: 550px;
  height: 120px;
  background-color: #f3f3f3;
  padding: 10px 15px;
  border: none;
}

/* Blog list section */

.blog-container {
  margin: 53px auto 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-list {
  display: flex;
  /* border: 2px solid #dacccc33; */
  border-radius: 3px;
  margin-bottom: 12px;
}

.blog-list > a {
  text-align: center;
  width: 40%;
  background: #efefef;
  display: inline-flex;
}

.blog-list-img {
  max-width: 100%;
}

.blog-column-left,
.blog-column-right {
  display: flex;
  flex-direction: column;
  padding: 60px;
}

.blog-column-left {
  width: 690px;
}

.blog-column-right {
  width: 360px;
}

.blog-column-right a:hover {
  color: #222222;
}

.blog-content h3 {
  color: #222222;
}

.blog-content {
  width: 60%;
  padding: 15px;
}

.blog-column-left .blog-content a {
  color: #715cdd;
}

/* blog individual page */

.blog-detail {
  width: 690px;
}

/* home page */

.hero-description {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.3px;
  margin-bottom: 40px;
  color: #ffffff;
}

.blogpost-readmore {
  color: #715cdd;
}

.card-cta {
  display: flex;
  margin-top: auto;
}

.blog-roll .blog-entry {
  font-size: 0.9em;
}

/* New Custom */

.hero-banner {
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  background: #715cdd;
  padding: 63px;
  color: #fff;
  flex-wrap: wrap;
}

.hero-content,
.home-content {
  text-align: left;
  margin-top: 65px;
  width: 475px;
}

.home-content p {
  margin-bottom: 32px;
}

.home-advisor-section {
  background: #fff;
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  margin: 63px;
  flex-wrap: wrap;
}

.member-section {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 27px;
  text-align: center;
  margin-top: 43px;
}

.member-main-section {
  background: #f7f7f7;
  margin: auto;
  padding: 34px;
}

.member-head {
  text-align: center;
}

.content-section {
  width: 350px;
}

.content-section a {
  font-weight: bold;
  color: #715cdd;
}

.home-featured-blogs {
  display: flex;
  padding: 20px;
  justify-content: center;
  text-align: left;
  flex-wrap: wrap;
}

.gallery-featured-blogs {
  display: flex;
  padding: 20px;
  justify-content: center;
  text-align: left;
  flex-wrap: wrap;
}

.community-section {
  text-align: center;
}

.community-head {
  padding: 19px;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}

.community-head a {
  display: inline-block;
  margin: auto 0 auto 0;
}

.featured-blog {
  width: 526px;
  border: #f7f5f5 solid;
  margin: 4px 33px;
}
.featured-gallery {
  border: #f7f5f5 solid;
  /* margin: 4px 33px; */
}

.featured-blog img {
  object-fit: cover;
  inline-size: max-content;
}

.featured-content > p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  /* number of lines to show */
  -webkit-box-orient: vertical;
}

.featured-content {
  padding: 16px;
}

.demo-section {
  display: flex;
  justify-content: center;
  background: #f7f7f7;
  padding: 60px 0px;
  flex-wrap: wrap;
}

.cards {
  width: 410px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 5px;
  padding: 15px;
  margin-left: 24px;
  display: flex;
  flex-direction: column;
}

/* home page ends here */

/* About us page start */

.about-content {
  color: #222222;
  text-align: left;
  margin-top: 35px;
  width: 475px;
}

.about-desc {
  color: #737b7d;
}

.mission-content-section {
  display: flex;
  width: 380px;
}

.mission-icon,
.mission-section-content {
  display: inline-block;
}

.mission-icon {
  height: 50px;
  margin-top: 12px;
  display: inline-block;
  padding-right: 32px;
}

.mission-section-content {
  display: inline-block;
}

.mission-content-top {
  display: flex;
  justify-content: space-evenly;
  text-align: left;
}

.mission-content-bottom {
  display: flex;
  justify-content: space-evenly;
  text-align: left;
}

.story-advisor-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  margin-top: 35px;
  padding: 63px;
}

.about-team-section {
  background: #f7f7f7;
  text-align: center;
}

.story-content {
  text-align: left;
  margin-top: 35px;
  width: 475px;
}

.story-content p {
  margin-bottom: 32px;
}

.team-head-section {
  padding-top: 64px;
  width: auto;
  max-width: 920px;
  margin: auto;
}

.team-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  padding-top: 35px;
  margin: 5px;
}

.team-details {
  padding: 0px 15px;
}

/* contact page */

.contact-page-content {
  width: 50%;
  padding-top: 55px;
  padding-right: 80px;
}

.contact-page-form {
  width: 50%;
}

.contact-page-content > h2 {
  font-weight: bold;
  font-size: 44px;
  line-height: 56px;
}

.contact-page-content > p {
  font-size: 16px;
  color: #737b7d;
}

.input-fields,
.text-field {
  margin-bottom: 30px;
}

.input-fields input {
  width: 100%;
  background-color: #f3f3f3;
  padding: 16px 15px;
  border: none;
}

.text-field input {
  width: 100%;
  height: 120px;
  background-color: #f3f3f3;
  padding: 25px 15px;
  border: none;
}

.contact-maps-content {
  margin-top: 70px;
  width: 50%;
}

/* blog list */

.blog-page-banner {
  background: #715cdd;
  text-align: center;
}

.blog-page-content {
  color: #fff;
  text-align: center;
  display: inline-block;
  width: 482px;
  padding: 58px 0px 58px 0px;
}

.error-page {
  text-align: center;
  min-height: 400px;
  padding-top: 80px;
}

.header .menu-btn {
  display: none;
}

.contact-page-section,
.contact-maps-section {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  padding: 45px 0;
}

.maps-details {
  width: 50%;
}

.maps-details img {
  max-width: 100%;
}

.modal {
  overflow: hidden;
  border-radius: 10px;
}

.modal-content {
  border: 0;
}

.modal-dialog {
  max-width: 680px;
}

.devtools-modal-title {
  display: block;
  font-weight: bold;
  font-size: 18px;
  line-height: 135%;
  letter-spacing: -0.00019em;
  margin-top: 2px;
}

.modal-body {
  min-height: 8.625rem;
  overflow: auto;
}

.modal-footer {
  padding: 0.61rem 0.75rem;
}

/* ========================== */

/*          Mobile            */

/* ========================== */

@media screen and (min-width: 320px) and (max-width: 767px) {
  .header {
    height: 70px;
    background-color: #fff;
  }

  .header-div {
    height: auto;
  }

  .footer-div {
    flex-direction: column;
  }

  .col-half {
    padding: 0px;
    margin: 0px;
  }

  .col-quarter {
    padding: 15px 0;
  }

  .footer-nav-li {
    padding: 7px;
  }

  .nav-ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    margin: 0px;
  }

  .header ul {
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background-color: #fff;
  }

  .header li a {
    display: block;
    padding: 0 20px;
    border-right: 1px solid #f4f4f4;
    text-decoration: none;
  }

  .header li a:hover,
  .header .menu-btn:hover {
    background-color: #f4f4f4;
  }

  /* menu */
  .header .menu {
    clear: both;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  .header .header-div {
    display: inline-block;
    width: 100%;
    background-color: #fff;
  }

  .header .wrapper-logo {
    float: left;
    margin-left: 15px;
  }

  .menu-icon {
    float: right;
    margin-top: 2px;
  }

  /* menu icon */
  .header .menu-icon {
    cursor: pointer;
    display: inline-block;
    float: right;
    padding: 28px 20px;
    position: relative;
    user-select: none;
  }

  .header .menu-icon .navicon {
    background: #333;
    display: block;
    height: 2px;
    position: relative;
    transition: background 0.2s ease-out;
    width: 18px;
  }

  .header .menu-icon .navicon:before,
  .header .menu-icon .navicon:after {
    background: #333;
    content: "";
    display: block;
    height: 100%;
    position: absolute;
    transition: all 0.2s ease-out;
    width: 100%;
  }

  .header .menu-icon .navicon:before {
    top: 5px;
  }

  .header .menu-icon .navicon:after {
    top: -5px;
  }

  .header .menu-btn:checked ~ nav {
    max-height: 240px;
    overflow: auto;
  }

  .header .menu-btn:checked ~ .menu-icon .navicon {
    background: transparent;
  }

  .header .menu-btn:checked ~ .menu-icon .navicon:before {
    transform: rotate(-45deg);
  }

  .header .menu-btn:checked ~ .menu-icon .navicon:after {
    transform: rotate(45deg);
  }

  .header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
  .header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
    top: 0;
  }

  nav ul li {
    padding: 15px 0;
  }

  h1 h2 h3 h4 {
    font-weight: bold;
    letter-spacing: 0.1px;
  }

  body h1 {
    font-size: 29px;
    line-height: 38px;
    letter-spacing: 0.2px;
  }

  body h2 {
    font-size: 20px;
    line-height: 28px;
  }

  body h3 {
    font-size: 14px;
    line-height: 24px;
  }

  .btn {
    border: none;
    display: block;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
    border-radius: 2px;
    letter-spacing: 0.3px;
    padding: 8px 21px;
  }

  .secondary-btn {
    border: 1px solid #715cdd;
    color: #715cdd;
  }

  .hero-banner {
    display: flex;
    justify-content: space-evenly;
    text-align: left;
    background: #715cdd;
    padding: 28px;
    color: #fff;
    flex-wrap: wrap;
  }

  .home-advisor-section {
    background: #fff;
    display: flex;
    justify-content: space-evenly;
    text-align: left;
    padding: 28px;
    margin: 0;
    flex-wrap: wrap-reverse;
  }

  .blog-page-content {
    color: #fff;
    text-align: left;
    width: 90%;
  }

  .blog-list > img {
    max-width: 100%;
  }

  .blog-list-img {
    margin: auto;
  }

  .blog-list > a {
    width: 100%;
  }

  .blog-column-left {
    padding: 0;
  }

  .blog-column-right {
    background: #f2f2f2;
    padding: 17px;
    height: fit-content;
  }

  .blog-content {
    width: auto;
  }

  .hero-banner > img {
    max-width: 100%;
    margin-top: 40px;
  }

  .home-content {
    text-align: left;
    margin-top: 9px;
    width: 475px;
  }

  .home-advisor-section > img {
    max-width: 100%;
    margin-top: 40px;
  }

  .featured-blog {
    width: 90%;
    margin: 5px auto;
  }

  .community-head {
    padding: 19px;
    display: block;
    justify-content: space-evenly;
    flex-wrap: wrap;
  }

  .community-head a {
    display: block;
    margin: auto 0 auto 0;
  }

  .home-featured-blogs {
    display: flex;
    padding: 0 5px 27px;
    justify-content: center;
    text-align: left;
    flex-wrap: wrap;
  }
  .gallery-featured-blogs {
    display: flex;
    padding: 0 5px 27px;
    justify-content: center;
    text-align: left;
    flex-wrap: wrap;
  }

  .content-section {
    margin: 12px;
  }

  .featured-blog > img {
    width: 100%;
  }

  .member-section {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding: 27px;
    text-align: center;
    margin-top: 14px;
  }

  .cards {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 22px;
    display: flex;
    margin: 16px 17px 15px 17px;
    max-width: 100%;
  }

  .mission-icon {
    margin-top: 12px;
    display: inline-block;
    padding: 0;
  }

  .mission-content-top {
    display: flex;
    justify-content: space-evenly;
    text-align: left;
    flex-wrap: wrap;
  }

  .mission-content-bottom {
    display: flex;
    justify-content: space-evenly;
    text-align: left;
    flex-wrap: wrap;
  }

  .mission-content-section {
    width: 313px;
    display: inline-block;
    text-align: center;
  }

  .story-advisor-section > img {
    max-width: 100%;
  }

  .team-head-section {
    padding-top: 64px;
    margin: auto;
    width: 90%;
  }

  .blog-list {
    display: block;
    border: 2px solid #dacccc33;
    border-radius: 3px;
    margin-bottom: 12px;
  }

  .contact-page-content {
    width: auto;
    padding: 55px 0;
    text-align: left;
  }

  .blog-container {
    padding: 26px;
  }

  .contact-page-form {
    width: 100%;
  }

  .contact-page-section,
  .contact-maps-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding: 45px 0;
  }

  .maps-details {
    width: auto;
    overflow: hidden;
  }

  .contact-maps-content {
    width: auto;
  }

  .json-preview {
    position: absolute;
    top: 3.3rem;
    right: 2.5rem;
  }
}

/* ========================== */

/*          Tablet            */

/* ========================== */

@media screen and (min-width: 768px) and (max-width: 1024px) {
  body p {
    color: #444444;
  }

  .btn {
    border: none;
    font-size: 14px;
    line-height: 18px;
    border-radius: 2px;
    letter-spacing: 0.3px;
    padding: 11px 17px;
  }

  .secondary-btn {
    border: 1px solid #715cdd;
    color: #715cdd;
  }

  body h1 {
    font-weight: bold;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: 0.1px;
  }

  body h2 {
    font-weight: bold;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.1px;
  }

  body h3,
  body h4 {
    font-weight: bold;
    font-size: 14px;
    line-height: 24px;
  }

  header nav {
    display: block;
  }

  .hero-banner {
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    background: #715cdd;
    padding: 63px;
    color: #fff;
    flex-wrap: nowrap;
  }

  .hero-description {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0.3px;
    margin-bottom: 40px;
  }

  .home-content {
    width: 50%;
    margin-top: 12px;
  }

  .hero-banner > img {
    width: 50%;
    margin: 27px 0px 0px 0px;
  }

  .home-advisor-section {
    background: #fff;
    display: flex;
    justify-content: space-evenly;
    text-align: center;
    margin: 80px 63px 63px 63px;
    flex-wrap: nowrap;
  }

  .home-advisor-section > img {
    width: 50%;
  }

  .member-section {
    display: flex;
    justify-content: space-evenly;
    padding: 27px;
    text-align: center;
    margin-top: 43px;
    flex-wrap: nowrap;
  }

  .home-featured-blogs {
    display: flex;
    padding: 20px;
    justify-content: center;
    text-align: left;
    flex-wrap: nowrap;
  }
  .gallery-featured-blogs {
    display: flex;
    padding: 20px;
    justify-content: center;
    text-align: left;
    flex-wrap: nowrap;
  }

  .featured-blog {
    width: 335px;
    border: #f7f5f5 solid;
    margin: 4px 14px;
  }

  .featured-blog > img {
    max-width: 100%;
    height: 260px;
    object-fit: cover;
    inline-size: max-content;
  }

  .featured-content > p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* number of lines to show */
    -webkit-box-orient: vertical;
  }

  .demo-section {
    display: flex;
    justify-content: center;
    background: #f7f7f7;
    padding: 60px 0px;
    flex-wrap: nowrap;
  }

  .cards {
    width: 334px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    padding: 15px;
    margin-left: 24px;
    display: flex;
    flex-direction: column;
  }

  .home-content p {
    font-size: 14px;
    line-height: 24px;
  }

  .mission-content-section {
    display: block;
    text-align: center;
    width: fit-content;
    padding: 20px;
  }

  .mission-icon {
    padding: 0;
  }

  .team-details > p {
    margin-top: -10px;
    margin-bottom: 50px;
  }

  .team-head-section {
    margin: auto;
    width: 79%;
  }

  .contact-maps-section {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 45px 0;
  }

  .contact-page-section {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 45px 0;
  }

  .maps-details > img {
    max-width: 100%;
  }

  .maps-details {
    width: 50%;
  }

  .contact-maps-content {
    width: 50%;
    padding: 0px 47px 1px 52px;
    margin-top: 0;
  }

  .contact-page-section p {
    font-size: 14px;
    line-height: 20px;
  }

  .blog-column-left {
    width: 65%;
    padding: 30px;
  }

  .blog-column-right {
    width: 35%;
    padding: 18px;
    margin: 33px;
    background: #f2f2f2;
    height: fit-content;
  }

  .blog-list-img {
    max-width: 100%;
  }

  .blog-list > a {
    text-align: center;
    background: #f2f2f2;
    display: block;
    width: 100%;
  }

  .blog-content {
    width: 100%;
  }

  .blog-list {
    display: block;
    border: 2px solid #dacccc33;
    border-radius: 3px;
    margin-bottom: 12px;
  }

  .blog-container {
    margin: 0 auto;
    margin-top: 53px;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .blog-detail p {
    font-size: 14px;
    line-height: 20px;
  }

  .blog-detail {
    width: 65%;
    margin-left: 23px;
  }
}

/* scroll bar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #e0e2e8;
}

::-webkit-scrollbar-thumb:hover {
  background: #eee;
}

/* scroll end */

/* json preview css*/

.object-key {
  color: #c8501e;
}

.string-value {
  color: #5d9ccb;
}

.superHero-card {
  width: 100%;
  height: 265px;
  object-fit: cover;
  object-position: top;
}

.superHero-detail-container .superHero-detail-img {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: top center;
}
.superHero-sec-wrap {
  border: 2px solid #dacccc33;
}
.superHero-logo-img {
  max-width: 150px;
  max-height: 150px;
}
.readmore-url {
  color: #715cdd;
  padding-bottom: 10px;
}
.superhero-nav {
  padding: 0;
}
.superhero-nav li {
  list-style-type: none;
}
.superhero-nav .nav-item {
  margin: 15px 0;
}
.superhero-nav li .nav-link {
  padding: 0 0 0 10px;
  font-size: 16px;
  line-height: 24px;
  color: #222222;
}

.superhero-nav .form-check .form-check-input:focus {
  box-shadow: none;
}
.superhero-nav .form-check .form-check-input {
  cursor: pointer;
}

.gallery-card-body {
  padding: 0;
  box-shadow: 0 1px 5px 1px #eaeaea;
  min-height: 300px;
}
.gallery-card-body img {
  /* height: 180px; */
  max-height: 288px;
  width: 100%;
  margin-bottom: 15px;
  object-fit: cover;
  object-position: top center;
}
.gallery-card-body p {
  margin-bottom: 0;
  padding-bottom: 20px;
}

.gallery-card-body .large-img {
  height: 280px;
  margin-bottom: 30px;
}
/* Home Page - Goodreads Inspired Styles */

/* Compact Hero Section */
.book-discovery-hero-compact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5b21b6 100%);
  color: white;
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.book-discovery-hero-compact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.hero-text-compact {
  flex: 1;
  max-width: 600px;
}

.hero-title-compact {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
  color: white;
}

.hero-subtitle-compact {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions-compact {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats-compact {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}

.stat-compact {
  text-align: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 70px;
}

.stat-number-compact {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.stat-label-compact {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Compact Hero */
@media screen and (max-width: 768px) {
  .book-discovery-hero-compact {
    padding: 30px 0;
  }
  
  .hero-content-compact {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .hero-title-compact {
    font-size: 28px;
  }
  
  .hero-subtitle-compact {
    font-size: 14px;
  }
  
  .hero-actions-compact {
    justify-content: center;
  }
  
  .hero-stats-compact {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .stat-compact {
    min-width: 60px;
  }
  
  .stat-number-compact {
    font-size: 16px;
  }
  
  .stat-label-compact {
    font-size: 10px;
  }
}

.book-discovery-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

/* Featured Books Section */
.featured-books-section {
  padding: 80px 0;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  position: relative;
}

.featured-books-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1a202c;
}

.section-header p {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.featured-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.featured-book-wrapper {
  position: relative;
}

.featured-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: #fbbf24;
  color: #92400e;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
  z-index: 10;
}

.featured-book-skeleton {
  background: #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.view-all-books {
  text-align: center;
}

.no-featured-books {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.no-featured-books h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #1a202c;
}

/* Reading Quotes Section */
.reading-quotes-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #06b6d4 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reading-quotes-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.quote-container {
  max-width: 800px;
  margin: 0 auto;
}

.quote-icon {
  font-size: 48px;
  margin-bottom: 30px;
}

.featured-quote {
  margin: 0;
}

.featured-quote p {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 30px;
  font-style: italic;
  font-weight: 300;
}

.featured-quote cite {
  font-size: 18px;
  font-style: normal;
  opacity: 0.9;
  font-weight: 500;
}

/* Genre Categories Section */
.genre-categories-section {
  padding: 80px 0;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 30%, #e2e8f0 60%, #f1f5f9 100%);
  position: relative;
}

.genre-categories-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 15% 25%, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(245, 101, 101, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.genre-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #1a202c;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.genre-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--genre-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--genre-color);
}

.genre-card:hover::before {
  transform: scaleX(1);
}

.genre-icon {
  font-size: 40px;
  margin-bottom: 15px;
}

.genre-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--genre-color);
}

.genre-description {
  font-size: 14px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.view-all-genres {
  text-align: center;
}

/* Reading Stats Section */
.reading-stats-section {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 30%, #cbd5e1 70%, #f8fafc 100%);
  padding: 80px 0;
  position: relative;
}

.reading-stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 25% 35%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 75% 65%, rgba(16, 185, 129, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Personalized Recommendations Section */
.personalized-recommendations-container {
  background: linear-gradient(135deg, #fef7ff 0%, #f3e8ff 30%, #ede9fe 70%, #f9fafb 100%);
  padding: 80px 0;
  position: relative;
}

.personalized-recommendations-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced Section Spacing and Visual Flow */
.featured-books-section,
.reading-quotes-section,
.genre-categories-section,
.reading-stats-section,
.personalized-recommendations-container,
.request-new-book-section {
  position: relative;
  z-index: 1;
}

/* Enhanced Section Headers */
.section-header {
  position: relative;
  z-index: 2;
}

.section-header h2 {
  color: #1a202c;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.section-header p {
  color: #64748b;
  font-size: 16px;
  font-weight: 400;
}

/* Enhanced Card Shadows and Hover Effects */
.book-card,
.featured-book-wrapper,
.recommendation-card-compact {
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.book-card:hover,
.featured-book-wrapper:hover,
.recommendation-card-compact:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Enhanced Button Styling */
.btn.primary-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 4px 14px 0 rgba(102, 126, 234, 0.39);
  transition: all 0.3s ease;
}

.btn.primary-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  box-shadow: 0 6px 20px 0 rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.btn.secondary-btn {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  color: #475569;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.btn.secondary-btn:hover {
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

/* Request New Book Section */
.request-new-book-section {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 30%, #a7f3d0 70%, #f0fdf4 100%);
  padding: 80px 0;
  position: relative;
}

.request-new-book-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 40%, rgba(16, 185, 129, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(34, 197, 94, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* Site Footer */
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 60px 0 20px 0;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 20px;
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #007bff;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #e9ecef;
  border-radius: 50%;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-link:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

.social-link.facebook:hover {
  background: #1877f2;
}

.social-link.twitter:hover {
  background: #1da1f2;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.linkedin:hover {
  background: #0077b5;
}

/* App Downloads */
.app-section {
  align-items: flex-end;
}

.app-downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.app-store-link {
  text-decoration: none;
}

.app-store-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  min-width: 140px;
  transition: background 0.2s ease;
}

.app-store-badge:hover {
  background: #333;
}

.app-store-badge.google-play {
  background: #01875f;
}

.app-store-badge.google-play:hover {
  background: #016a4a;
}

.app-store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.download-text {
  font-size: 10px;
  opacity: 0.9;
}

.store-text {
  font-size: 14px;
  font-weight: 600;
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid #e9ecef;
  padding-top: 20px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.copyright {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.mobile-version-link {
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.mobile-version-link:hover {
  color: #007bff;
}

/* Responsive Footer */
@media screen and (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
  
  .app-section {
    align-items: flex-start;
  }
  
  .app-downloads {
    align-items: flex-start;
  }
}

@media screen and (max-width: 768px) {
  .site-footer {
    padding: 40px 0 20px 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .app-downloads {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .social-links {
    justify-content: center;
  }
}

/* Page Container Styles */
.page-container {
  min-height: 80vh;
  padding: 40px 0;
}

.page-header {
  text-align: center;
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e9ecef;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 16px;
}

.page-header p {
  font-size: 18px;
  color: #6c757d;
  margin: 0;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-section,
.mobile-section {
  margin-bottom: 40px;
}

.about-section h2,
.mobile-section h2 {
  font-size: 28px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 20px;
}

.about-section p,
.mobile-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #495057;
  margin-bottom: 20px;
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section li {
  padding: 12px 0;
  border-bottom: 1px solid #f8f9fa;
  font-size: 16px;
  color: #495057;
}

.about-section li:last-child {
  border-bottom: none;
}

.page-actions {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid #e9ecef;
}

.page-actions .btn {
  margin: 0 10px;
}

/* Mobile App Page Styles */
.app-download-section {
  background: #f8f9fa;
  padding: 40px;
  border-radius: 12px;
  margin: 30px 0;
}

.app-features {
  margin-bottom: 30px;
}

.app-features h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 16px;
}

.app-features ul {
  list-style: none;
  padding: 0;
}

.app-features li {
  padding: 8px 0;
  font-size: 16px;
  color: #495057;
}

.download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: #000;
  color: white;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
  min-width: 180px;
}

.app-download-btn:hover {
  background: #333;
  transform: translateY(-2px);
  color: white;
}

.app-download-btn.android {
  background: #01875f;
}

.app-download-btn.android:hover {
  background: #016a4a;
}

.app-icon {
  font-size: 24px;
}

.app-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.download-text {
  font-size: 12px;
  opacity: 0.9;
}

.store-name {
  font-size: 16px;
  font-weight: 600;
}

/* Responsive Page Styles */
@media screen and (max-width: 768px) {
  .page-header h1 {
    font-size: 36px;
  }
  
  .page-header p {
    font-size: 16px;
  }
  
  .app-download-section {
    padding: 20px;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .page-actions .btn {
    display: block;
    margin: 10px 0;
    width: 100%;
    max-width: 200px;
  }
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.stat-card {
  background: white;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card .stat-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.stat-card h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1a202c;
}

.stat-card p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .book-discovery-hero {
    padding: 50px 0;
  }
  
  .hero-content h1 {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    gap: 30px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .section-header p {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .featured-books-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .featured-quote p {
    font-size: 20px;
    padding: 0 20px;
  }
  
  .genres-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }
  
  .stats-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .stat-card {
    padding: 30px 20px;
  }
}

/* Books page styles */
.books-container {
  padding: 40px 0;
  min-height: 500px;
}

.books-header {
  text-align: center;
  margin-bottom: 40px;
}

.books-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #222222;
}

.books-header p {
  font-size: 16px;
  color: #666666;
  max-width: 600px;
  margin: 0 auto;
}

/* Professional Filter Bar */
.professional-filter-bar {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.filter-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Search Group */
.filter-group {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-group {
  flex: 2;
  min-width: 300px;
}

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

.filter-input {
  width: 100%;
  padding: 12px 45px 12px 45px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  color: #1e293b;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.filter-input:focus {
  outline: none;
  border-color: #8B4513;
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.filter-input::placeholder {
  color: #94a3b8;
}

.filter-icon {
  position: absolute;
  left: 15px;
  color: #64748b;
  pointer-events: none;
}

.clear-input-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.clear-input-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Genre Dropdown */
.filter-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 15px;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-dropdown-trigger:hover {
  border-color: #cbd5e1;
  background: white;
}

.filter-dropdown-trigger.has-value {
  background: white;
  border-color: #8B4513;
  color: #8B4513;
  font-weight: 600;
}

.filter-dropdown-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  color: #64748b;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.dropdown-arrow.open {
  transform: rotate(180deg);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-search-wrapper {
  position: relative;
  padding: 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.dropdown-search-icon {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.dropdown-search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.dropdown-search-input:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.1);
}

.dropdown-options {
  overflow-y: auto;
  max-height: 320px;
}

.dropdown-options::-webkit-scrollbar {
  width: 8px;
}

.dropdown-options::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.dropdown-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.dropdown-options::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.dropdown-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  background: white;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-option:hover {
  background: #f8fafc;
  color: #1e293b;
}

.dropdown-option.selected {
  background: #FFF8F0;
  color: #8B4513;
  font-weight: 600;
}

.option-text {
  flex: 1;
}

.option-count {
  font-size: 12px;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}

.dropdown-option.selected .option-count {
  background: #8B4513;
  color: white;
}

.check-icon {
  color: #8B4513;
  flex-shrink: 0;
}

.dropdown-no-results {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

/* Sort Select */
.filter-select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 15px;
  color: #475569;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  appearance: none;
}

.filter-select:hover {
  border-color: #cbd5e1;
  background: white;
}

.filter-select:focus {
  outline: none;
  border-color: #8B4513;
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}

/* Clear All Button */
.clear-all-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: white;
  border: 2px solid #ef4444;
  border-radius: 8px;
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.clear-all-btn:hover {
  background: #ef4444;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Active Filters */
.active-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
}

.active-filters-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
  color: white;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(139, 69, 19, 0.25);
}

.filter-tag-label {
  opacity: 0.9;
  font-weight: 600;
}

.filter-tag-value {
  font-weight: 700;
}

.filter-tag-remove {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 2px;
}

.filter-tag-remove:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .filter-row {
    gap: 10px;
  }
  
  .search-group {
    flex: 1;
    min-width: 100%;
    order: -1;
  }
}

@media screen and (max-width: 768px) {
  .professional-filter-bar {
    padding: 16px;
  }
  
  .filter-row {
    flex-direction: column;
    gap: 12px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .clear-all-btn {
    width: 100%;
    justify-content: center;
  }
  
  .active-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Results */
.books-results {
  margin-top: 30px;
}

.results-count {
  text-align: center;
  margin-bottom: 30px;
  font-size: 16px;
  color: #64748b;
  font-weight: 500;
  padding: 15px 25px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #715cdd;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.book-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-image-container {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.book-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.book-card:hover .book-image {
  transform: scale(1.05);
}

.book-type-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #715cdd;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.book-content {
  padding: 25px;
}

.book-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222222;
  line-height: 1.3;
}

.book-author {
  font-size: 14px;
  color: #715cdd;
  margin-bottom: 15px;
  font-style: italic;
}

.book-description {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.book-description p {
  margin: 0;
}

.book-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 15px 0;
  border-top: 1px solid #f0f0f0;
}

.book-pages,
.book-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 12px;
  color: #888888;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 16px;
  font-weight: bold;
  color: #222222;
}

.detail-value.price {
  color: #715cdd;
  font-size: 18px;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-tag {
  background: #f0f0f0;
  color: #666666;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 500;
}

.book-skeleton {
  background: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
}

.no-books {
  text-align: center;
  padding: 80px 20px;
  color: #666666;
}

.no-books-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.no-books h3 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #222222;
}

.no-books p {
  font-size: 16px;
  margin-bottom: 30px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.no-books-actions {
  margin-top: 30px;
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
  .books-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .book-card {
    margin: 0 10px;
  }
  
  .books-header h1 {
    font-size: 28px;
  }
  
  .books-header p {
    font-size: 14px;
    padding: 0 20px;
  }
  
  .filter-buttons {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }
  
  .filter-buttons::-webkit-scrollbar {
    height: 4px;
  }
  
  .filter-buttons::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
  }
  
  .filter-buttons::-webkit-scrollbar-thumb {
    background: #715cdd;
    border-radius: 10px;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .active-filter {
    flex-direction: column;
    gap: 10px;
  }
  
  .results-count {
    font-size: 14px;
    padding: 12px 20px;
  }
}

/* Contact Us Page Styles */
.contact-us-page {
  min-height: 100vh;
}

/* Contact Hero Section */
.contact-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  animation: float 20s ease-in-out infinite;
}

.contact-hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact-hero h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-hero .hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

.contact-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefit-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.benefit-content h3 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.benefit-content p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
  margin: 0;
}

/* Contact Form Section */
.contact-form-section {
  padding: 80px 0;
  background: #f8fafc;
}

.contact-form-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-form-left h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1a202c;
}

.contact-form-left p {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 40px;
  line-height: 1.6;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.info-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.info-content h4 {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #1a202c;
}

.info-content p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #f9fafb;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #715cdd;
  background: white;
  box-shadow: 0 0 0 3px rgba(113, 92, 221, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.submit-btn.loading {
  background: #9ca3af;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

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

/* Success Message */
.success-message {
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-message h3 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #10b981;
}

.success-message p {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 30px;
}

/* Contact Resources Section */
.contact-resources-section {
  padding: 80px 0;
  background: white;
}

.resources-content {
  text-align: center;
}

.resources-content h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 50px;
  color: #1a202c;
}

.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.resource-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  text-decoration: none;
  color: #1a202c;
  transition: all 0.3s ease;
  display: block;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: #715cdd;
}

.resource-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.resource-card h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #715cdd;
}

.resource-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  .contact-hero {
    padding: 50px 0;
  }
  
  .contact-hero h1 {
    font-size: 32px;
  }
  
  .contact-hero .hero-subtitle {
    font-size: 16px;
    padding: 0 20px;
  }
  
  .contact-benefits {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  
  .benefit-item {
    padding: 20px;
  }
  
  .contact-form-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-form-left h2 {
    font-size: 28px;
  }
  
  .contact-form-left p {
    font-size: 16px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .resources-content h2 {
    font-size: 28px;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .resource-card {
    padding: 30px 20px;
  }
}

/* Scrolling Books Section - Inspired by Contentstack's customer logos */
.scrolling-books-section {
  background: #f8fafc;
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.scrolling-books-section .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.scrolling-books-section .section-header h2 {
  font-size: 36px;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 16px;
}

.scrolling-books-section .section-header p {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.scrolling-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.scrolling-track {
  display: flex;
  animation: scroll-left 60s linear infinite;
  will-change: transform;
}

.scrolling-track.loading {
  animation: none;
}

.scrolling-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}

.book-scroll-item {
  flex: 0 0 280px;
  margin-right: 40px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

.book-scroll-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.book-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.book-scroll-item:hover .book-cover img {
  transform: scale(1.05);
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 60%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-scroll-item:hover .book-overlay {
  opacity: 1;
}

.book-type-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(113, 92, 221, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(10px);
}

.book-info {
  padding: 20px;
}

.book-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

/* Skeleton Loading States */
.book-scroll-item.skeleton {
  background: #f1f5f9;
  animation: pulse 1.5s ease-in-out infinite;
}

.book-cover-placeholder {
  height: 200px;
  background: #e2e8f0;
  border-radius: 8px 8px 0 0;
}

.book-info-placeholder {
  padding: 20px;
}

.title-placeholder {
  height: 20px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 12px;
  width: 80%;
}

.author-placeholder {
  height: 16px;
  background: #e2e8f0;
  border-radius: 4px;
  width: 60%;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive Design for Scrolling Books */
@media (max-width: 768px) {
  .scrolling-books-section {
    padding: 60px 0;
  }
  
  .scrolling-books-section .section-header h2 {
    font-size: 28px;
  }
  
  .scrolling-books-section .section-header p {
    font-size: 16px;
  }
  
  .book-scroll-item {
    flex: 0 0 240px;
    margin-right: 20px;
  }
  
  .book-cover {
    height: 160px;
  }
  
  .book-info {
    padding: 16px;
  }
  
  .book-title {
    font-size: 16px;
  }
  
  .book-author {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .book-scroll-item {
    flex: 0 0 200px;
    margin-right: 16px;
  }
  
  .book-cover {
    height: 140px;
  }
  
  .book-info {
    padding: 12px;
  }
  
  .book-title {
    font-size: 14px;
  }
  
  .book-author {
    font-size: 12px;
  }
}

/* New Arrivals Page Styles */
.new-arrivals-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 40px 0;
}

.new-arrivals-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  margin: -40px 0 60px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.new-arrivals-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.header-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 25px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.badge-icon {
  margin-right: 8px;
  font-size: 16px;
}

.new-arrivals-header h1 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.new-arrivals-header p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  line-height: 1.6;
}

.header-stats {
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 30px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-arrivals-results {
  margin-bottom: 80px;
}

.new-arrival-book {
  position: relative;
}

.new-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 0.5px;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 107, 107, 0.6);
  }
}

.new-arrivals-cta {
  background: linear-gradient(135deg, #715cdd 0%, #5b47d6 100%);
  color: white;
  padding: 60px 0;
  border-radius: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.new-arrivals-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.new-arrivals-cta h3 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 16px;
}

.new-arrivals-cta p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-buttons .primary-btn {
  background: white;
  color: #715cdd;
  border: 2px solid white;
}

.cta-buttons .primary-btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-buttons .secondary-btn {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-buttons .secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* Responsive Design for New Arrivals */
@media (max-width: 768px) {
  .new-arrivals-header {
    flex-direction: column;
    text-align: center;
    padding: 60px 0;
  }
  
  .new-arrivals-header h1 {
    font-size: 36px;
  }
  
  .new-arrivals-header p {
    font-size: 18px;
  }
  
  .header-stats {
    margin-top: 40px;
    gap: 20px;
  }
  
  .stat-item {
    padding: 20px 15px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .new-arrivals-cta h3 {
    font-size: 28px;
  }
  
  .new-arrivals-cta p {
    font-size: 16px;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .new-arrivals-header {
    padding: 40px 0;
    margin: -40px -20px 40px -20px;
  }
  
  .new-arrivals-header h1 {
    font-size: 28px;
  }
  
  .new-arrivals-header p {
    font-size: 16px;
  }
  
  .header-stats {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
  
  .stat-item {
    padding: 15px;
  }
  
  .new-arrivals-cta {
    margin: 0 -20px;
    border-radius: 0;
  }
}

/* Request New Book Section */
.request-book-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.request-book-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(113, 92, 221, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.request-book-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.request-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: block;
}

.request-book-header h2 {
  font-size: 36px;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 16px;
}

.request-book-header p {
  font-size: 18px;
  color: #64748b;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.request-trigger-btn {
  font-size: 18px;
  padding: 16px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(113, 92, 221, 0.3);
  transition: all 0.3s ease;
}

.request-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(113, 92, 221, 0.4);
}

.request-book-form-container {
  background: white;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h3 {
  font-size: 28px;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 12px;
}

.form-header p {
  font-size: 16px;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto;
}

.request-book-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
}

.help-icon {
  cursor: help;
  font-size: 12px;
  opacity: 0.7;
}

.help-text {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1a202c;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 10;
}

.field-help:hover .help-text {
  opacity: 1;
  visibility: visible;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #715cdd;
  background: white;
  box-shadow: 0 0 0 3px rgba(113, 92, 221, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

.form-actions .btn {
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.submit-btn {
  position: relative;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

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

.request-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 60px 40px;
  border-radius: 24px;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

.success-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.request-success h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 16px;
}

.request-success p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
}

.success-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.detail-item {
  margin-bottom: 12px;
  font-size: 14px;
}

.detail-item:last-child {
  margin-bottom: 0;
}

.detail-item strong {
  display: inline-block;
  width: 80px;
  opacity: 0.8;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-actions .btn {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.success-actions .primary-btn {
  background: white;
  color: #10b981;
  border: 2px solid white;
}

.success-actions .primary-btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.success-actions .secondary-btn {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.success-actions .secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.request-book-info {
  position: relative;
  z-index: 2;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.info-card {
  background: white;
  padding: 32px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.info-card .info-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.info-card h4 {
  font-size: 18px;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 12px;
}

.info-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design for Request Book */
@media (max-width: 768px) {
  .request-book-section {
    padding: 60px 0;
  }
  
  .request-book-header h2 {
    font-size: 28px;
  }
  
  .request-book-header p {
    font-size: 16px;
  }
  
  .request-book-form-container {
    padding: 30px 20px;
    margin: 0 -20px 40px -20px;
    border-radius: 0;
  }
  
  .form-header h3 {
    font-size: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .request-success {
    margin: 0 -20px 40px -20px;
    border-radius: 0;
    padding: 40px 20px;
  }
  
  .success-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .success-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .request-icon {
    font-size: 36px;
  }
  
  .request-book-header h2 {
    font-size: 24px;
  }
  
  .request-trigger-btn {
    font-size: 16px;
    padding: 14px 24px;
  }
  
  .form-header h3 {
    font-size: 20px;
  }
  
  .request-success h3 {
    font-size: 24px;
  }
  
  .success-details {
    padding: 20px;
    margin-bottom: 24px;
  }
}

/* Request Book Page Styles */
.request-book-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 40px 0;
}

.request-page-header {
  margin-bottom: 60px;
}

.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: #64748b;
}

.breadcrumb-link {
  color: #715cdd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: #5b47d6;
}

.breadcrumb-separator {
  margin: 0 12px;
  opacity: 0.5;
}

.breadcrumb-current {
  color: #1a202c;
  font-weight: 500;
}

.page-hero {
  text-align: center;
  background: white;
  padding: 60px 40px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(113, 92, 221, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  pointer-events: none;
}

.hero-icon {
  font-size: 64px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: 42px;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.hero-description {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.request-form-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-container {
  background: white;
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-intro {
  text-align: center;
  margin-bottom: 40px;
}

.form-intro h2 {
  font-size: 28px;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 12px;
}

.form-intro p {
  font-size: 16px;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto;
}

.request-form {
  max-width: 600px;
  margin: 0 auto;
}

.field-note {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  font-style: italic;
}

.request-info-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.request-info-sidebar .info-card {
  background: white;
  padding: 32px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.request-info-sidebar .info-card h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1a202c;
  margin-bottom: 16px;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  padding: 8px 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.info-list li::before {
  content: '•';
  color: #715cdd;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.quick-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn.small {
  padding: 8px 16px;
  font-size: 14px;
}

.success-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.success-content {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 80px 60px;
  border-radius: 24px;
  text-align: center;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.success-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.success-content .success-icon {
  font-size: 64px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.success-content h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.success-content > p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.success-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 40px;
  text-align: left;
  position: relative;
  z-index: 2;
}

.success-details h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-item strong {
  font-size: 14px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-item span {
  font-size: 16px;
  font-weight: 500;
}

.success-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.success-actions .btn {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.success-actions .primary-btn {
  background: white;
  color: #10b981;
  border: 2px solid white;
}

.success-actions .primary-btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}

.success-actions .secondary-btn {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.success-actions .secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* Responsive Design for Request Book Page */
@media (max-width: 1024px) {
  .request-form-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .request-info-sidebar {
    order: -1;
  }
  
  .request-info-sidebar .info-card {
    padding: 24px 20px;
  }
}

@media (max-width: 768px) {
  .request-book-page {
    padding: 20px 0;
  }
  
  .page-hero {
    padding: 40px 20px;
    margin: 0 -20px 40px -20px;
    border-radius: 0;
  }
  
  .page-hero h1 {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 16px;
  }
  
  .form-container {
    padding: 30px 20px;
    margin: 0 -20px;
    border-radius: 0;
  }
  
  .form-intro h2 {
    font-size: 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .success-content {
    padding: 50px 20px;
    margin: 0 -20px;
    border-radius: 0;
  }
  
  .success-content h2 {
    font-size: 28px;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  
  .success-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .success-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .quick-actions {
    flex-direction: column;
  }
  
  .quick-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-icon {
    font-size: 48px;
  }
  
  .page-hero h1 {
    font-size: 28px;
  }
  
  .form-intro h2 {
    font-size: 20px;
  }
  
  .success-content .success-icon {
    font-size: 48px;
  }
  
  .success-content h2 {
    font-size: 24px;
  }
  
  .success-details {
    padding: 24px 16px;
  }
}

.description,
.description p {
  margin-bottom: 0;
}

/* Crossword.in Inspired Styling */

/* Announcement Bar */
.announcement-bar {
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
  color: white;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  animation: slideInDown 0.8s ease;
}

.announcement-icon {
  margin-right: 8px;
  font-size: 16px;
}

.announcement-separator {
  margin: 0 15px;
  opacity: 0.8;
}

.announcement-text {
  margin: 0 5px;
}

/* Updated Hero Section */
.book-discovery-hero.crossword-inspired {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5b21b6 100%);
  background-attachment: fixed;
  color: white;
  padding: 0;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

.book-discovery-hero.crossword-inspired::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  pointer-events: none;
}

.hero-main {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 0;
  min-height: 500px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hero Title */
.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  animation: fadeInUp 1s ease 0.4s both;
}

/* Quick Categories */
.quick-categories {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.6s both;
}

.category-chip {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Actions */
.hero-actions {
  display: flex;
  gap: 20px;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-btn {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.primary-btn {
  background: #ff6b6b;
  color: white;
  border: 2px solid #ff6b6b;
}

.primary-btn:hover {
  background: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.secondary-btn {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

/* Book Showcase */
.featured-book-showcase {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 300px;
  animation: fadeInRight 1s ease 0.5s both;
}

.book-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.book-item {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  cursor: pointer;
}

.book-item:hover {
  transform: translateY(-5px) scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

.book-1 {
  top: 0;
  left: 0;
  width: 140px;
  height: 120px;
  animation: float 3s ease-in-out infinite;
}

.book-2 {
  top: 50px;
  right: 0;
  width: 140px;
  height: 120px;
  animation: float 3s ease-in-out infinite 1s;
}

.book-3 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 120px;
  animation: float 3s ease-in-out infinite 2s;
}

.book-cover {
  font-size: 40px;
  margin-bottom: 10px;
}

.book-title {
  font-size: 12px;
  font-weight: 600;
  color: white;
}

/* Stats Section */
.hero-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 40px;
  margin: 40px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: fadeInUp 1s ease 1s both;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border-radius: 12px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 1s ease 1.2s both;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.trust-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.trust-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Animations */
@keyframes slideInDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInRight {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-main {
    flex-direction: column;
    gap: 40px;
    padding: 40px 0;
  }
  
  .hero-title {
    font-size: 36px;
  }

  .brand-name {
    font-size: 28px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .trust-indicators {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .quick-categories {
    justify-content: center;
  }
  
  .announcement-bar {
    font-size: 12px;
    padding: 10px 0;
  }
  
  .announcement-text {
    display: block;
    margin: 2px 0;
  }
  
  .announcement-separator {
    display: none;
  }
}

/* Email Confirmation Notice Styling */
.email-confirmation-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
  border: 2px solid #4caf50;
  border-radius: 12px;
  padding: 20px;
  margin: 25px 0;
  animation: fadeInUp 0.8s ease;
}

.email-confirmation-notice.inactive {
  background: linear-gradient(135deg, #fff3e0 0%, #fef7ed 100%);
  border: 2px solid #ff9800;
}

.confirmation-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.confirmation-text {
  flex: 1;
}

.confirmation-text strong {
  color: #2e7d32;
  font-size: 16px;
  display: block;
  margin-bottom: 8px;
}

.email-confirmation-notice.inactive .confirmation-text strong {
  color: #e65100;
}

.confirmation-text p {
  margin: 0;
  color: #424242;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .email-confirmation-notice {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 15px;
  }
  
  .confirmation-icon {
    font-size: 24px;
  }
  
  /* Mobile Header Actions */
  .header-actions {
    position: absolute;
    top: 10px;
    right: 0;
    z-index: 10;
  }
  
  .user-actions {
    gap: 10px;
  }
  
  .sign-in-btn {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .cart-btn {
    padding: 8px 10px;
  }
  
  .cart-count {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: -6px;
    right: -6px;
  }
}
}


/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cart-modal-content {
  background: white;
  border-radius: 12px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 24px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-btn:hover {
  background: #f5f5f5;
  color: #333;
}

/* Auth Form Styling */
.auth-form {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #715cdd;
  box-shadow: 0 0 0 3px rgba(113, 92, 221, 0.1);
}

.auth-submit-btn {
  width: 100%;
  background: #715cdd;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.auth-submit-btn:hover {
  background: #5a4bc4;
}

.auth-switch {
  padding: 20px;
  text-align: center;
  border-top: 1px solid #eee;
}

.auth-switch p {
  margin: 0;
  color: #666;
}

.switch-btn {
  background: none;
  border: none;
  color: #715cdd;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.switch-btn:hover {
  color: #5a4bc4;
}

/* Cart Styling */
.cart-content {
  padding: 20px;
}

.empty-cart {
  text-align: center;
  padding: 40px 20px;
}

.empty-cart-icon {
  font-size: 64px;
  display: block;
  margin-bottom: 20px;
}

.empty-cart h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.empty-cart p {
  margin: 0;
  color: #666;
}

.cart-items {
  margin-bottom: 30px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
}

.item-image {
  flex: 0 0 80px;
}

.item-image img {
  width: 80px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}

.item-details {
  flex: 1;
}

.item-details h4 {
  margin: 0 0 5px 0;
  font-size: 16px;
  color: #333;
}

.item-details .author {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-price {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.discount {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background: #f5f5f5;
  border-color: #715cdd;
}

.quantity {
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.remove-btn:hover {
  background: #ffe0e0;
}

.cart-summary {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: #333;
}

.summary-row.savings {
  color: #2e7d32;
  font-weight: 600;
}

.summary-row.total {
  font-weight: 700;
  font-size: 18px;
  color: #333;
  border-top: 1px solid #eee;
  padding-top: 10px;
  margin-top: 10px;
}

.checkout-btn {
  width: 100%;
  background: #715cdd;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: #5a4bc4;
}


/* Sign In Page Styling */
.sign-in-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 40px 0;
}

.sign-in-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.sign-in-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h1 {
  font-size: 32px;
  color: #333;
  margin-bottom: 12px;
}

.auth-subtitle {
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.auth-tabs {
  display: flex;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 30px;
}

.tab-btn {
  flex: 1;
  padding: 16px;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #715cdd;
  border-bottom-color: #715cdd;
}

.auth-form-page {
  margin-bottom: 30px;
}

.error-message {
  background: linear-gradient(135deg, #ffe0e0 0%, #fef0f0 100%);
  border: 1px solid #ff9999;
  color: #cc0000;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-icon {
  font-size: 18px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
}

.remember-me input[type='checkbox'] {
  width: auto;
}

.forgot-password {
  color: #715cdd;
  font-size: 14px;
  text-decoration: none;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-submit-btn-page {
  width: 100%;
  background: linear-gradient(135deg, #715cdd 0%, #8b7dd8 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-submit-btn-page:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(113, 92, 221, 0.3);
}

.auth-submit-btn-page:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.auth-divider {
  text-align: center;
  margin: 30px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #ddd;
}

.auth-divider span {
  background: white;
  padding: 0 20px;
  color: #666;
  position: relative;
}

.social-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-btn:hover {
  border-color: #715cdd;
  transform: translateY(-1px);
}

.google-btn:hover {
  border-color: #db4437;
}

.facebook-btn:hover {
  border-color: #3b5998;
}

.social-icon {
  font-size: 18px;
}

.auth-footer {
  text-align: center;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.auth-footer p {
  margin: 0;
  color: #666;
}

.switch-link {
  background: none;
  border: none;
  color: #715cdd;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.switch-link:hover {
  color: #5a4bc4;
}

.auth-benefits {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.auth-benefits h3 {
  color: #333;
  margin-bottom: 25px;
  font-size: 24px;
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.benefit-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.benefit-item h4 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 16px;
}

.benefit-item p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
}

/* Cart Page Styling */
.cart-page {
  padding: 40px 0;
  min-height: 100vh;
  background: #f8f9fa;
}

.empty-cart-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.empty-cart-content {
  text-align: center;
  background: white;
  padding: 60px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-cart-icon-large {
  font-size: 80px;
  display: block;
  margin-bottom: 30px;
}

.empty-cart-content h2 {
  color: #333;
  margin-bottom: 15px;
}

.empty-cart-content p {
  color: #666;
  margin-bottom: 30px;
}

.cart-content-page {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.cart-header h1 {
  color: #333;
  margin: 0;
}

.continue-shopping {
  color: #715cdd;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.continue-shopping:hover {
  text-decoration: underline;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 40px;
}

.cart-items-section {
  display: flex;
  flex-direction: column;
}

.cart-items-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 2px solid #f0f0f0;
  font-weight: 600;
  color: #333;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item-row:last-child {
  border-bottom: none;
}

.item-product {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.item-image-large {
  flex-shrink: 0;
}

.item-image-large img {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.item-info h3 {
  margin: 0 0 8px 0;
  color: #333;
  font-size: 18px;
  line-height: 1.3;
}

.item-info .author {
  margin: 0 0 5px 0;
  color: #666;
  font-size: 14px;
}

.item-info .isbn {
  margin: 0 0 10px 0;
  color: #999;
  font-size: 12px;
}

.stock-status .in-stock {
  color: #28a745;
  font-size: 12px;
  font-weight: 600;
}

.stock-status .out-of-stock {
  color: #dc3545;
  font-size: 12px;
  font-weight: 600;
}

.item-price {
  text-align: center;
}

.price-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.current-price {
  font-weight: 700;
  color: #333;
  font-size: 18px;
}

.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.discount-badge {
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
  color: #28a745;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #28a745;
}

.item-quantity {
  display: flex;
  justify-content: center;
}

.quantity-controls-large {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 2px solid #f0f0f0;
  border-radius: 8px;
  padding: 8px 12px;
}

.qty-btn-large {
  width: 35px;
  height: 35px;
  border: none;
  background: #f8f9fa;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.3s ease;
}

.qty-btn-large:hover {
  background: #715cdd;
  color: white;
}

.qty-btn-large:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quantity-display {
  font-weight: 600;
  font-size: 16px;
  min-width: 30px;
  text-align: center;
}

.item-total {
  text-align: center;
}

.total-price {
  font-weight: 700;
  color: #333;
  font-size: 18px;
}

.item-actions {
  display: flex;
  justify-content: center;
}

.remove-btn-large {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.remove-btn-large:hover {
  background: #ffe0e0;
}

.order-summary {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  height: fit-content;
  border: 1px solid #e9ecef;
}

.order-summary h3 {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 22px;
}

.summary-details {
  margin-bottom: 25px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #333;
}

.summary-row.savings {
  color: #28a745;
  font-weight: 600;
}

.summary-row.promo {
  color: #ff6b35;
  font-weight: 600;
}

.summary-row.total {
  font-weight: 700;
  font-size: 20px;
  color: #333;
  border-top: 2px solid #ddd;
  padding-top: 12px;
  margin-top: 15px;
}

.free-shipping {
  color: #28a745;
  font-weight: 600;
}

.summary-divider {
  height: 1px;
  background: #ddd;
  margin: 15px 0;
}

.promo-section {
  margin-bottom: 25px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.promo-section h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
}

.promo-input {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.promo-input input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.apply-promo-btn {
  padding: 10px 16px;
  background: #715cdd;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.apply-promo-btn:hover {
  background: #5a4bc4;
}

.apply-promo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.promo-success {
  color: #28a745;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.promo-codes-hint {
  color: #666;
  font-size: 12px;
}

.checkout-btn-large {
  width: 100%;
  background: linear-gradient(135deg, #715cdd 0%, #8b7dd8 100%);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.checkout-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(113, 92, 221, 0.3);
}

.checkout-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
  font-size: 12px;
}

.shipping-info {
  margin-top: 40px;
  background: linear-gradient(135deg, #e8f5e8 0%, #f0fff0 100%);
  border-radius: 12px;
  padding: 25px;
  border: 1px solid #28a745;
}

.shipping-info h3 {
  margin: 0 0 20px 0;
  color: #28a745;
  font-size: 20px;
}

.shipping-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.shipping-benefit {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.shipping-benefit strong {
  color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sign-in-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .auth-benefits {
    order: -1;
  }
  
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .cart-items-header {
    display: none;
  }
  
  .cart-item-row {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 15px;
  }
  
  .item-product {
    flex-direction: column;
    text-align: center;
  }
  
  .quantity-controls-large {
    justify-content: center;
  }
  
  .order-summary {
    order: -1;
  }
  
  .shipping-benefits {
    grid-template-columns: 1fr;
  }
}


/* Add to Cart Button Styling */
.book-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.add-to-cart-btn {
  width: 100%;
  background: linear-gradient(135deg, #715cdd 0%, #8b7dd8 100%);
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(113, 92, 221, 0.3);
}

.add-to-cart-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.add-to-cart-btn.adding {
  background: #28a745;
}

.cart-icon-small {
  font-size: 14px;
}

.loading-spinner-small {
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Book Card Enhancements */
.book-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-image-container {
  position: relative;
  margin-bottom: 15px;
  text-align: center;
}

.book-image {
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.book-type-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #715cdd 0%, #8b7dd8 100%);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.book-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 18px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.book-author {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
  font-style: italic;
}

.book-description {
  color: #555;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 15px;
  flex: 1;
}

.book-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
}

.book-pages, .book-price {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.detail-value.price {
  color: #715cdd;
  font-size: 16px;
}

.book-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.book-tag {
  background: #e8f5e8;
  color: #28a745;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #28a745;
}

/* Header Link Styling */
.sign-in-btn, .cart-btn {
  text-decoration: none;
  color: #715cdd;
}

.sign-in-btn:hover, .cart-btn:hover {
  color: white;
  text-decoration: none;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .book-card {
    padding: 15px;
  }
  
  .add-to-cart-btn {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .book-details {
    flex-direction: column;
    gap: 10px;
  }
  
  .book-pages, .book-price {
    flex-direction: row;
    gap: 8px;
  }
}


/* Personalization Styling */
.personalized-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.personalized-section.not-personalized {
  text-align: center;
  padding: 80px 0;
}

.personalization-prompt {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.personalization-prompt h2 {
  color: #333;
  margin-bottom: 15px;
}

.personalization-prompt p {
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.personalization-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #715cdd 0%, #8b7dd8 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-icon {
  font-size: 16px;
}

.section-subtitle {
  color: #666;
  font-size: 16px;
  margin-top: 10px;
}

.recommendations-loading {
  margin: 40px 0;
}

.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.recommendation-skeleton {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skeleton-image {
  width: 100%;
  height: 120px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
  margin-bottom: 15px;
}

.skeleton-text {
  height: 16px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-text.short {
  width: 60%;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.recommendation-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  position: relative;
  overflow: hidden;
}

.recommendation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  margin-bottom: 15px;
}

.confidence-indicator {
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.confidence-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ffd93d, #6bcf7f);
  border-radius: 2px;
  transition: width 0.8s ease;
}

.personalization-reason {
  font-size: 12px;
  color: #715cdd;
  font-weight: 600;
  background: rgba(113, 92, 221, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  display: inline-block;
}

.book-preview {
  margin-bottom: 20px;
}

.book-image-placeholder {
  width: 60px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 15px;
  float: left;
  margin-right: 15px;
}

.book-info {
  overflow: hidden;
}

.book-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  line-height: 1.3;
}

.book-author {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
  font-style: italic;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.genre-tag {
  background: #e8f5e8;
  color: #28a745;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.price {
  color: #715cdd;
  font-weight: 700;
  font-size: 16px;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  clear: both;
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
}

.personalization-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  font-size: 12px;
}

.segment-badge {
  background: #f8f9fa;
  color: #666;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.confidence-score {
  color: #28a745;
  font-weight: 600;
}

.personalization-controls {
  text-align: center;
  margin-top: 40px;
}

.refresh-recommendations {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 15px;
  transition: all 0.3s ease;
}

.refresh-recommendations:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.refresh-recommendations:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.update-preferences {
  color: #715cdd;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border: 2px solid #715cdd;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.update-preferences:hover {
  background: #715cdd;
  color: white;
  text-decoration: none;
}

/* Preferences Page Styling */
.preferences-page {
  padding: 40px 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.preferences-container {
  max-width: 1000px;
  margin: 0 auto;
}

.preferences-header {
  text-align: center;
  margin-bottom: 50px;
}

.preferences-header h1 {
  color: #333;
  margin-bottom: 15px;
  font-size: 36px;
}

.preferences-header p {
  color: #666;
  font-size: 18px;
}

.preferences-form {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.preference-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #f0f0f0;
}

.preference-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.preference-section h3 {
  color: #333;
  margin-bottom: 10px;
  font-size: 20px;
}

.section-description {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.genre-grid, .author-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-chip, .author-chip {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  color: #666;
  padding: 10px 16px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.genre-chip:hover, .author-chip:hover {
  border-color: #715cdd;
  color: #715cdd;
}

.genre-chip.selected, .author-chip.selected {
  background: linear-gradient(135deg, #715cdd 0%, #8b7dd8 100%);
  border-color: #715cdd;
  color: white;
  transform: scale(1.05);
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover, .checkbox-option:hover {
  border-color: #715cdd;
  background: rgba(113, 92, 221, 0.05);
}

.radio-option input[type='radio']:checked + .radio-label,
.checkbox-option input[type='checkbox']:checked + .checkbox-label {
  color: #715cdd;
  font-weight: 600;
}

.radio-label, .checkbox-label {
  font-size: 16px;
  color: #333;
}

.price-range {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
}

.range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.range-input label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
}

.range-input input[type='range'] {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

.range-input input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #715cdd;
  cursor: pointer;
}

.reading-goals {
  display: flex;
  align-items: center;
  gap: 15px;
}

.goals-input {
  width: 80px;
  padding: 10px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
}

.goals-label {
  color: #666;
  font-weight: 600;
}

.format-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preferences-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.save-preferences-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.save-preferences-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.save-preferences-btn.saved {
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.preferences-preview {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.preferences-preview h3 {
  color: #333;
  margin-bottom: 20px;
}

.summary-grid {
  display: grid;
  gap: 15px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 600;
  color: #333;
}

.summary-value {
  color: #666;
  text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
  .recommendations-grid {
    grid-template-columns: 1fr;
  }
  
  .range-inputs {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .preferences-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .genre-grid, .author-grid {
    justify-content: center;
  }
  
  .personalization-controls {
    flex-direction: column;
    gap: 15px;
  }
  
  .refresh-recommendations {
    margin-right: 0;
    margin-bottom: 15px;
  }
}


/* Book Detail Page Styling */
.book-detail-page {
  padding: 40px 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
}

.book-detail-loading,
.book-detail-error {
  text-align: center;
  padding: 60px 20px;
}

.book-detail-skeleton {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.book-info-skeleton {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.book-detail-error .error-content {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.book-detail-error h1 {
  color: #333;
  margin-bottom: 15px;
}

.book-detail-error p {
  color: #666;
  margin-bottom: 30px;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.breadcrumb {
  margin-bottom: 30px;
  padding: 0 20px;
}

.breadcrumb-link {
  color: #715cdd;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 10px;
  color: #999;
}

.breadcrumb-current {
  color: #333;
  font-weight: 600;
}

.book-detail-content {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.book-detail-main {
  display: flex;
  gap: 40px;
  padding: 40px;
}

.book-image-section {
  flex: 0 0 400px;
}

.book-image-container {
  position: relative;
  text-align: center;
}

.book-detail-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-type-badge.large {
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(135deg, #715cdd 0%, #8b7dd8 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(113, 92, 221, 0.3);
}

.book-info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.book-header h1 {
  font-size: 36px;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.2;
}

.book-header .book-author {
  font-size: 18px;
  color: #666;
  margin-bottom: 20px;
}

.book-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  font-size: 20px;
  opacity: 0.3;
}

.star.filled {
  opacity: 1;
}

.rating-text {
  color: #666;
  font-size: 14px;
}

.book-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.price-large {
  color: #715cdd;
  font-size: 24px;
  font-weight: 700;
}

.book-tags-section h3,
.key-features-section h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
}

.book-tag.large {
  background: #e8f5e8;
  color: #28a745;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 8px;
  display: inline-block;
}

.key-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.key-feature {
  padding: 8px 0;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.key-feature:last-child {
  border-bottom: none;
}

.book-actions-section {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.add-to-cart-btn.large {
  flex: 1;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
}

.btn.large {
  padding: 16px 24px;
  font-size: 16px;
  min-width: 160px;
}

.book-extended-content {
  border-top: 1px solid #f0f0f0;
}

.content-section {
  padding: 40px;
  border-bottom: 1px solid #f0f0f0;
}

.content-section:last-child {
  border-bottom: none;
}

.content-section h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #715cdd;
  display: inline-block;
}

.book-description-extended,
.extended-summary,
.author-bio {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.book-description-extended p,
.extended-summary p,
.author-bio p {
  margin-bottom: 15px;
}

.author-bio h3 {
  color: #715cdd;
  margin-bottom: 15px;
  font-size: 20px;
}

/* Book Card Link Styling */
.book-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s ease;
}

.book-card-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-2px);
}

.book-card {
  position: relative;
  cursor: pointer;
}

.book-card:hover .book-card-link {
  transform: translateY(-2px);
}

.book-actions {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  z-index: 10;
}

/* Responsive Design */
@media (max-width: 768px) {
  .book-detail-main {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }
  
  .book-image-section {
    flex: none;
    max-width: 300px;
    margin: 0 auto;
  }
  
  .book-header h1 {
    font-size: 28px;
  }
  
  .book-details-grid {
    grid-template-columns: 1fr;
  }
  
  .book-actions-section {
    flex-direction: column;
  }
  
  .content-section {
    padding: 20px;
  }
  
  .breadcrumb {
    padding: 0 10px;
    font-size: 14px;
  }
}


/* Book Image Placeholder for Detail Page */
.book-image-placeholder.large {
  width: 400px;
  height: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: white;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.book-summary-extended,
.book-description-extended {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.book-summary-extended p,
.book-description-extended p {
  margin-bottom: 15px;
}

.book-summary-extended h3,
.book-description-extended h3 {
  color: #715cdd;
  margin-bottom: 15px;
  font-size: 20px;
}

/* Responsive adjustments for placeholder */
@media (max-width: 768px) {
  .book-image-placeholder.large {
    width: 300px;
    height: 450px;
    font-size: 60px;
  }
}


/* Book Info Grid Styling */
.book-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  margin-top: 20px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
  font-size: 16px;
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  color: #333;
  font-weight: 600;
  min-width: 100px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .book-info-grid {
    padding: 20px;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .info-item strong {
    min-width: auto;
  }
}

/* Personalized Recommendations Section */
.personalized-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin: 40px 0;
}

.personalized-section.not-personalized {
  text-align: center;
  padding: 80px 0;
}

.personalization-prompt {
  max-width: 600px;
  margin: 0 auto;
}

.personalization-prompt h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 2.2rem;
}

.personalization-prompt p {
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.personalization-badge {
  display: inline-flex;
  align-items: center;
  background: #007bff;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: 20px;
}

.badge-icon {
  margin-right: 8px;
}

.section-subtitle {
  color: #6c757d;
  font-size: 1.1rem;
  margin-top: 10px;
}

.war-subtitle {
  color: #dc3545;
  font-weight: 600;
}

.recommendations-loading {
  text-align: center;
  padding: 40px 0;
}

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

.recommendation-skeleton {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  height: 200px;
}

.skeleton-image {
  width: 100%;
  height: 120px;
  background: #e9ecef;
  border-radius: 8px;
  margin-bottom: 15px;
}

.skeleton-text {
  height: 20px;
  background: #e9ecef;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-text.short {
  width: 60%;
}

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

.recommendation-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.recommendation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-header {
  padding: 15px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.confidence-indicator {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 10px;
}

.confidence-bar {
  height: 100%;
  background: #28a745;
  border-radius: 2px;
  transition: width 0.8s ease;
}

.personalization-reason {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
}

.book-preview {
  display: flex;
  padding: 20px;
  gap: 15px;
}

.book-image-small {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.book-image-placeholder {
  width: 60px;
  height: 90px;
  background: #f8f9fa;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #6c757d;
}

.book-info {
  flex: 1;
}

.book-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 5px;
  line-height: 1.3;
}

.book-author {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 10px;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.genre-tag {
  background: #e9ecef;
  color: #495057;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.price {
  font-weight: 600;
  color: #28a745;
  font-size: 16px;
}

.card-actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
}

.btn.small {
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
}

.personalization-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.segment-badge {
  font-size: 12px;
  color: #6c757d;
}

.confidence-score {
  font-size: 12px;
  font-weight: 600;
  color: #28a745;
}

.personalization-controls {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.refresh-recommendations {
  background: #007bff;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.refresh-recommendations:hover:not(:disabled) {
  background: #0056b3;
  transform: translateY(-2px);
}

.refresh-recommendations:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.update-preferences {
  color: #6c757d;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.update-preferences:hover {
  color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .personalized-section {
    padding: 40px 20px;
  }
  
  .recommendations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .book-preview {
    flex-direction: column;
    text-align: center;
  }
  
  .book-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .personalization-controls {
    flex-direction: column;
    gap: 15px;
  }
}

/* Compact Personalized Recommendations */
.personalized-section {
  padding: 30px 0; /* Reduced from 60px */
  margin: 20px 0; /* Reduced from 40px */
}

.loading-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 800px;
  margin: 0 auto;
}

.recommendation-skeleton-compact {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  height: 120px;
}

.recommendations-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.recommendation-card-compact {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideInUp 0.6s ease-out;
}

.recommendation-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.book-preview-compact {
  display: flex;
  padding: 15px;
  gap: 12px;
}

.book-image-compact {
  width: 50px;
  height: 75px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.book-image-placeholder-compact {
  width: 50px;
  height: 75px;
  background: #f8f9fa;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #6c757d;
}

.book-info-compact {
  flex: 1;
  min-width: 0;
}

.book-title-compact {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.book-author-compact {
  font-size: 12px;
  color: #6c757d;
  margin-bottom: 8px;
}

.book-meta-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.genre-tag-compact {
  background: #e9ecef;
  color: #495057;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
}

.price-compact {
  font-weight: 600;
  color: #28a745;
  font-size: 14px;
}

.personalization-reason-compact {
  font-size: 11px;
  color: #007bff;
  font-style: italic;
  line-height: 1.3;
}

.card-actions-compact {
  padding: 0 15px 15px;
}

.btn.compact {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  width: 100%;
}

.no-recommendations {
  text-align: center;
  padding: 20px;
  color: #6c757d;
  font-style: italic;
}

/* Reduce personalization controls size */
.personalization-controls {
  margin-top: 20px; /* Reduced from 40px */
}

.refresh-recommendations {
  padding: 8px 16px; /* Reduced from 12px 24px */
  font-size: 12px; /* Reduced from 14px */
}

.update-preferences {
  font-size: 12px; /* Reduced from 14px */
}

/* Mobile responsive for compact version */
@media (max-width: 768px) {
  .recommendations-grid-compact {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .book-preview-compact {
    padding: 12px;
  }
  
  .personalized-section {
    padding: 20px 15px;
  }
}

/* Hide mobile menu elements for new layout */
.menu-btn,
.menu-icon {
  display: none;
}

/* Search Bar Styles - Crossword Website Inspired */
/* ====================================
   SEARCH BAR - MODERN DESIGN
   ==================================== */

.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  z-index: 1000;
}

.search-form {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 64px;
  padding: 4px;
}

.search-input-wrapper:hover {
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

.search-input-wrapper:focus-within {
  box-shadow: 0 16px 48px rgba(102, 126, 234, 0.5);
  transform: translateY(-4px);
}

.search-icon-wrapper {
  position: absolute;
  left: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 1;
}

.search-icon-wrapper svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.search-input {
  flex: 1;
  padding: 18px 60px;
  border: none;
  background: white;
  font-size: 17px;
  color: #2d3748;
  font-weight: 500;
  outline: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: #a0aec0;
  font-weight: 400;
  font-size: 16px;
}

.search-clear-button {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #718096;
  transition: all 0.2s ease;
  z-index: 2;
}

.search-clear-button:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #2d3748;
  transform: rotate(90deg);
}

.search-loading-spinner {
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.spinner-ring {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animation: spin-ring 0.8s linear infinite;
}

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

/* Search Results Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  max-height: 580px;
  animation: slideDownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-error-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  color: #e53e3e;
  background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
}

.search-error-message svg {
  flex-shrink: 0;
}

.search-error-message span {
  font-weight: 500;
  font-size: 15px;
}

.search-results-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #4a5568;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-results-header svg {
  color: #667eea;
}

.search-results-list {
  max-height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.search-results-list::-webkit-scrollbar {
  width: 8px;
}

.search-results-list::-webkit-scrollbar-track {
  background: #f7fafc;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
}

.search-results-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  animation: fadeInUp 0.3s ease-out backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-result-item:hover {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  padding-left: 24px;
}

.search-result-item:hover .result-arrow {
  opacity: 1;
  transform: translateX(0);
}

.search-result-item:last-child {
  border-bottom: none;
}

.result-image {
  width: 56px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #edf2f7 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.result-image-placeholder {
  color: #a0aec0;
}

.result-content {
  flex: 1;
  min-width: 0;
}

.result-title {
  font-size: 15px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 6px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-author {
  font-size: 13px;
  color: #718096;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.result-genre {
  display: flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #e0e7ff 0%, #ddd6fe 100%);
  color: #5a67d8;
  padding: 4px 10px;
  border-radius: 16px;
  font-weight: 600;
}

.result-genre svg {
  flex-shrink: 0;
}

.result-price {
  color: #38a169;
  font-weight: 700;
  font-size: 14px;
}

.result-arrow {
  color: #cbd5e0;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.2s ease;
}

.search-results-footer {
  padding: 16px 20px;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-top: 1px solid #e2e8f0;
}

.view-all-results {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  transition: all 0.2s ease;
  background: white;
  border: 2px solid transparent;
}

.view-all-results:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  text-decoration: none;
}

.search-no-results-dropdown {
  padding: 48px 32px;
  text-align: center;
  color: #718096;
}

.no-results-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #cbd5e0;
}

.search-no-results-dropdown h4 {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  margin: 0 0 8px 0;
}

.search-no-results-dropdown p {
  font-size: 14px;
  margin: 0;
  color: #a0aec0;
}

/* Header Navigation Styles */
.wrapper-logo {
  flex: 0 0 auto;
  margin-right: 15px;
}

.menu {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  margin-right: 5px;
}

.nav-ul {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 15px;
}

.nav-li {
  margin: 0;
}

.nav-li a {
  text-decoration: none;
  padding: 8px 10px;
  color: #333;
  font-weight: 500;
  border-radius: 4px;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-size: 14px;
}

.nav-li a:hover,
.nav-li a.active {
  color: #715cdd;
  background: rgba(113, 92, 221, 0.1);
}

/* Header Search Integration - Updated */
.header-search {
  flex: 1;
  max-width: 550px;
  margin: 0 20px;
  z-index: 100;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Search Page Styles */
.search-page-container {
  min-height: 100vh;
  padding: 80px 0 40px 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.search-page-header {
  text-align: center;
  margin-bottom: 40px;
}

.search-page-header h1 {
  font-size: 36px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.search-page-header p {
  font-size: 18px;
  color: #666;
  margin: 0;
}

.search-loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.search-book-skeleton {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-error-message {
  text-align: center;
  padding: 60px 20px;
}

.error-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  margin: 0 auto;
}

.error-content h3 {
  color: #e74c3c;
  margin-bottom: 16px;
}

.error-content p {
  color: #666;
  margin-bottom: 24px;
}

.search-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.search-stats {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

.search-actions {
  display: flex;
  gap: 12px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.search-book-wrapper {
  position: relative;
}

.search-match-info {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.match-type {
  background: #ffd700;
  color: #333;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.search-no-results {
  text-align: center;
  padding: 80px 20px;
}

.no-results-content {
  background: white;
  border-radius: 12px;
  padding: 60px 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.no-results-content .no-results-icon {
  font-size: 64px;
  margin-bottom: 24px;
}

.no-results-content h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 16px;
}

.no-results-content > p {
  font-size: 16px;
  color: #666;
  margin-bottom: 32px;
}

.search-suggestions {
  text-align: left;
  margin-bottom: 32px;
}

.search-suggestions h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 16px;
}

.search-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-suggestions li {
  padding: 8px 0;
  color: #666;
  position: relative;
  padding-left: 20px;
}

.search-suggestions li::before {
  content: "•";
  color: #ffd700;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.search-no-results .search-actions {
  justify-content: center;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .header-search {
    max-width: 400px;
    margin: 0 20px;
  }
  
  .nav-ul {
    gap: 20px;
  }
}

@media screen and (max-width: 992px) {
  .header-div {
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
  }
  
  .header-search {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    max-width: none;
  }
}

@media screen and (max-width: 768px) {
  .header-div {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }
  
  .wrapper-logo {
    order: 1;
  }
  
  .menu {
    order: 3;
    width: 100%;
  }
  
  .nav-ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  
  .header-search {
    order: 2;
    margin: 0;
    max-width: none;
    width: 100%;
  }
  
  .header-actions {
    order: 4;
    justify-content: center;
  }
  
  .search-input-wrapper {
    border-radius: 14px;
    min-height: 56px;
    padding: 3px;
  }
  
  .search-icon-wrapper {
    left: 18px;
  }
  
  .search-icon-wrapper svg {
    width: 20px;
    height: 20px;
  }
  
  .search-input {
    padding: 14px 50px;
    font-size: 16px;
  }
  
  .search-clear-button,
  .search-loading-spinner {
    right: 16px;
  }
  
  .search-results-dropdown {
    border-radius: 16px;
    margin-top: 8px;
  }
  
  .search-result-item {
    padding: 12px 16px;
    gap: 12px;
  }
  
  .search-result-item:hover {
    padding-left: 16px;
  }
  
  .result-image {
    width: 48px;
    height: 60px;
  }
  
  .search-page-header h1 {
    font-size: 28px;
  }
  
  .search-page-header p {
    font-size: 16px;
  }
  
  .search-filters {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .search-actions {
    justify-content: center;
  }
  
  .search-results-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .no-results-content {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 480px) {
  .search-page-container {
    padding: 60px 0 20px 0;
  }
  
  .search-page-header {
    margin-bottom: 30px;
  }
  
  .search-results-grid {
    grid-template-columns: 1fr;
  }
  
  .search-loading-grid {
    grid-template-columns: 1fr;
  }
}
