﻿/* ===================================
   Reading List - Dark Mystery Theme
   Inspired by Sherlock & Harry Potter
   =================================== */

/* CSS Variables - Dark Mystery Palette */
:root {
  --primary-dark: #0d1117;
  --secondary-dark: #161b22;
  --card-dark: #1c2128;
  --accent-gold: #d4af37;
  --accent-burgundy: #8b2e3f;
  --accent-forest: #2d5a3d;
  --text-primary: #e6e1dc;
  --text-secondary: #abb7c4;
  --text-muted: #7d8590;
  --border-dark: #30363d;
  --completed-color: #3fb950;
  --reading-color: #58a6ff;
  --toread-color: #8b949e;
  --shadow-dark: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-darker: 0 8px 32px rgba(0, 0, 0, 0.6);
  --glow-gold: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--primary-dark);
  background-image:
    radial-gradient(at 40% 20%, rgba(212, 175, 55, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(139, 46, 63, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(45, 90, 61, 0.05) 0px, transparent 50%);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  background: linear-gradient(135deg, #0d1117 0%, #1c2128 50%, #0d1117 100%);
  position: relative;
  color: var(--text-primary);
  padding: 100px 20px 70px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(212, 175, 55, 0.03) 39px, rgba(212, 175, 55, 0.03) 41px),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(212, 175, 55, 0.03) 39px, rgba(212, 175, 55, 0.03) 41px);
  opacity: 0.3;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #f4e4c1 50%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out, shimmer 3s ease-in-out infinite;
  text-shadow: 0 0 40px rgba(212, 175, 55, 0.5);
}

@keyframes shimmer {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.2);
  }
}

.hero-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 2rem;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.social-links a {
  color: var(--accent-gold);
  font-size: 1.8rem;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.1);
  filter: drop-shadow(var(--glow-gold));
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
  background: var(--secondary-dark);
  padding: 40px 20px;
  border-bottom: 1px solid var(--border-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-dark);
  border-color: var(--accent-gold);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  font-family: 'Playfair Display', serif;
  text-shadow: var(--glow-gold);
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* ===================================
   Filters Section
   =================================== */
.filters-section {
  background: var(--secondary-dark);
  padding: 30px 20px;
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.filters-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.search-box {
  flex: 1 1 300px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.search-box input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background-color: var(--card-dark);
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.filter-group {
  flex: 0 1 auto;
}

.filter-select {
  padding: 12px 40px 12px 15px;
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background-color: var(--card-dark);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23abb7c4" d="M6 9L1 4h10z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.filter-select option {
  background-color: var(--card-dark);
  color: var(--text-primary);
}

.filter-select:hover {
  border-color: var(--accent-gold);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* ===================================
   Books Grid Section
   =================================== */
.books-section {
  padding: 60px 20px;
  min-height: 60vh;
}

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

.book-card {
  background: var(--card-dark);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  transition: all 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
}

.book-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent-gold), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-darker);
  border-color: transparent;
}

.book-card:hover::before {
  opacity: 1;
}

.book-cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  background: linear-gradient(135deg, var(--accent-burgundy), #1c2128);
  overflow: hidden;
}

.book-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.cover-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: var(--accent-gold);
  font-size: 4rem;
  opacity: 0.6;
}

.book-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.book-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.3;
}

.book-author {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
}

.book-genre {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.book-genre i {
  color: var(--accent-gold);
}

/* ===================================
   Modal
   =================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  margin: 5% auto;
  padding: 0;
  border-radius: 16px;
  max-width: 700px;
  width: 90%;
  box-shadow: var(--shadow-darker);
  animation: slideUp 0.4s ease;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--accent-gold);
  background-color: var(--secondary-dark);
  transform: rotate(90deg);
}

.modal-body {
  padding: 2.5rem;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-book-detail {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.modal-book-detail-no-cover {
  display: block;
  width: 100%;
}

.blog-link-container {
  margin-top: 2rem;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
}

.blog-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: linear-gradient(135deg, var(--accent-gold) 0%, #c9941d 100%);
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  letter-spacing: 0.02em;
}

.blog-link-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  filter: brightness(1.1);
}

.blog-link-btn i {
  font-size: 1.2rem;
}

.modal-book-cover {
  position: relative;
  width: 100%;
  padding-top: 140%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  border: 1px solid var(--border-dark);
}

.modal-book-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder-large {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  color: var(--accent-gold);
  font-size: 3rem;
}

.modal-book-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent-gold);
  text-shadow: var(--glow-gold);
}

.modal-author {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.modal-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.modal-genre {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: var(--secondary-dark);
  border: 1px solid var(--border-dark);
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.modal-genre i {
  color: var(--accent-gold);
}

.modal-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
}

.modal-notes {
  padding: 1.5rem;
  background: var(--secondary-dark);
  border-radius: 8px;
  border-left: 3px solid var(--accent-gold);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.modal-notes strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent-gold);
  font-size: 1rem;
}

.modal-notes p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--secondary-dark);
  border-top: 1px solid var(--border-dark);
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 20px;
  margin-top: 4rem;
}

.footer p {
  margin: 0;
}

.footer i {
  color: var(--accent-burgundy);
}

/* ===================================
   No Results State
   =================================== */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  color: var(--accent-gold);
}

.no-results p {
  font-size: 1.1rem;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .filters-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box,
  .filter-group {
    flex: 1 1 100%;
  }

  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
  }

  .modal-book-detail {
    grid-template-columns: 1fr;
  }

  .modal-book-cover {
    max-width: 250px;
    margin: 0 auto;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
  }

  .modal-body {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   Scrollbar Styling
   =================================== */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--primary-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}


/* ===================================
   Featured Quote Section
   =================================== */
.featured-quote-section {
  background: var(--secondary-dark);
  padding: 50px 20px;
  border-bottom: 1px solid var(--border-dark);
  position: relative;
  overflow: hidden;
}

.featured-quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.featured-quote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 2rem;
  background: var(--card-dark);
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-dark);
}

.quote-icon {
  font-size: 5rem;
  color: var(--accent-gold);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 0.8;
  margin-bottom: 1rem;
}

.quote-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===================================
   Current Reading Section
   =================================== */
.current-reading-section {
  padding: 40px 20px;
  background: var(--background-dark);
  border-bottom: 1px solid var(--border-dark);
}

.current-reading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}



.current-read-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-dark);
  line-height: 1.6;
}

.quote-attribution {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.quote-book {
  font-weight: 600;
  color: var(--accent-gold);
}

.quote-divider {
  color: var(--text-muted);
}

.quote-author {
  font-style: italic;
  color: var(--text-secondary);
}

.quote-thoughts {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  padding: 1.5rem;
  background: var(--secondary-dark);
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.view-quotes-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, var(--accent-gold), #c9941d);
  color: var(--primary-dark);
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.view-quotes-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  filter: brightness(1.1);
}

.view-quotes-btn i {
  font-size: 1.1rem;
}

/* ===================================
   Quotes Modal Styling
   =================================== */
.quotes-modal-content {
  max-width: 900px;
}

.quotes-modal-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-dark);
}

.quotes-modal-title i {
  font-size: 1.8rem;
  opacity: 0.8;
}

.quotes-grid {
  display: grid;
  gap: 2rem;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.quote-card {
  background: var(--secondary-dark);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border-dark);
  position: relative;
  transition: all 0.3s ease;
}

.quote-card:hover {
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-dark);
}

.quote-card-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.quote-card-attribution {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-dark);
}

.quote-card-attribution strong {
  color: var(--accent-gold);
}

.quote-card-thoughts {
  background: var(--card-dark);
  padding: 1rem;
  border-left: 3px solid var(--accent-gold);
  border-radius: 4px;
  margin-top: 1rem;
}

.quote-card-thoughts i {
  color: var(--accent-gold);
  margin-right: 0.5rem;
}

.quote-card-thoughts p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0.5rem 0 0 0;
}

.quotes-grid::-webkit-scrollbar {
  width: 8px;
}

.quotes-grid::-webkit-scrollbar-track {
  background: var(--secondary-dark);
  border-radius: 4px;
}

.quotes-grid::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 4px;
}

.quotes-grid::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Fix modal scroll issue */
.modal-body {
  max-height: 70vh !important;
  overflow-y: auto !important;
}

/* ===================================
   Memoir Modal Styles
   =================================== */
.memoir-modal .modal-book-cover {
  padding-top: 140% !important;
}

.memoir-cover {
  position: relative;
  overflow: hidden;
}

.memoir-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(13, 17, 23, 0.3) 0%,
      rgba(13, 17, 23, 0.7) 50%,
      rgba(13, 17, 23, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.memoir-cover:hover .memoir-overlay {
  opacity: 1;
}

.memoir-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), var(--glow-gold);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.memoir-author {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--text-primary);
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Always show overlay on mobile */
@media (max-width: 768px) {
  .memoir-overlay {
    opacity: 1;
  }
}