/* Project CSS - Lauri Matthew Fiction Platform - Noir Theme */

/* Velvetpur Noir Color Scheme */
:root {
  --noir-black: #1a1a1a;
  --noir-gold: #d4af37;
  --noir-amber: #ff8c00;
  --noir-teal: #008b8b;
  --noir-cream: #f5f5dc;
  --noir-shadow: #2f2f2f;
  --noir-danger: #8b0000;
  --noir-highlight: #ffd700;
  --noir-gray: #6b7280;
}

/* Text Contrast Fixes */
.text-gray-600 {
  color: #4b5563 !important;
}
.text-gray-700 {
  color: #374151 !important;
}
.text-gray-800 {
  color: #1f2937 !important;
}

/* Book Categories - By Type */
.category-collection {
  border-left: 4px solid var(--noir-gold);
}

.category-standalone {
  border-left: 4px solid var(--noir-teal);
}

.category-series {
  border-left: 4px solid var(--noir-amber);
}

/* Book Status Badges */
.book-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  background: rgba(212, 175, 55, 0.1);
  color: var(--noir-gold);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.book-badge.available {
  background: rgba(139, 139, 0, 0.1);
  color: #8b8b00;
  border: 1px solid rgba(139, 139, 0, 0.2);
}

.book-badge.coming-soon {
  background: rgba(255, 140, 0, 0.1);
  color: var(--noir-amber);
  border: 1px solid rgba(255, 140, 0, 0.2);
}

.book-badge.preorder {
  background: rgba(0, 139, 139, 0.1);
  color: var(--noir-teal);
  border: 1px solid rgba(0, 139, 139, 0.2);
}

/* Book Cards */
.book-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  border-top: 3px solid var(--noir-gold);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
}

.book-card.featured {
  border-top-color: var(--noir-amber);
  box-shadow: 0 8px 10px -5px rgba(0, 0, 0, 0.3);
}

.book-card.featured:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Book Preview */
.book-preview {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  overflow: hidden;
}

.book-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Review Stars */
.review-stars {
  color: var(--noir-gold);
  font-size: 1.25rem;
}

/* Atmospheric Quote Boxes */
.noir-quote-box {
  background: linear-gradient(135deg, #1a1a1a 0%, #2f2f2f 100%);
  border-left: 4px solid var(--noir-gold);
  padding: 1.5rem;
  border-radius: 0.5rem;
  position: relative;
  margin: 1.5rem 0;
  color: var(--noir-cream);
}

.noir-quote-box::before {
  content: '🌆';
  font-size: 2rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
  line-height: 1;
}

.noir-quote-box .content {
  margin-left: 3rem;
}

/* Navigation - Noir Theme */
.nav-link {
  color: #374151;
  transition: color 0.25s ease-in-out;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--noir-gold);
  background: rgba(212, 175, 55, 0.05);
}

.dark .nav-link {
  color: #cbd5e1;
}

.dark .nav-link:hover {
  color: var(--noir-gold);
  background: rgba(212, 175, 55, 0.1);
}

/* Responsive navigation adjustments */
@media (max-width: 1280px) and (min-width: 769px) {
  .nav-link {
    padding: 0.375rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* Genre Icons - Colored */
.genre-icon {
  font-size: 2rem;
  display: inline-block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  margin-bottom: 1rem;
}

.genre-icon.noir { background: rgba(26, 26, 26, 0.1); }
.genre-icon.thriller { background: rgba(139, 0, 0, 0.1); }
.genre-icon.mystery { background: rgba(0, 139, 139, 0.1); }
.genre-icon.crime { background: rgba(47, 47, 47, 0.1); }

/* Volume Badges */
.volume-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--noir-gold);
  color: var(--noir-black);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.volume-badge.series {
  background: var(--noir-teal);
  color: white;
}

.volume-badge.standalone {
  background: var(--noir-amber);
  color: white;
}

/* Flash Messages */
.flash-message {
  background: white;
  border-left: 4px solid #ccc;
}

.flash-success {
  border-left-color: #8b8b00;
  background: #fffef0;
  color: #6b6b00;
}

.flash-error {
  border-left-color: var(--noir-danger);
  background: #fff5f5;
  color: var(--noir-danger);
}

.flash-warning {
  border-left-color: var(--noir-amber);
  background: #fff7ed;
  color: #c2410c;
}

.flash-info {
  border-left-color: var(--noir-teal);
  background: #f0fdfa;
  color: #0f766e;
}

/* Search Bar */
.search-input {
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s;
  color: #1f2937 !important;
}

.search-input::placeholder {
  color: #9ca3af !important;
}

.search-input:focus {
  border-color: var(--noir-gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Filter Buttons */
.filter-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  color: #6b7280;
  transition: all 0.2s;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--noir-gold);
  color: var(--noir-gold);
}

.filter-btn.active {
  background: var(--noir-gold);
  border-color: var(--noir-gold);
  color: var(--noir-black);
}

/* Amazon Buy Button */
.amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--noir-gold);
  color: var(--noir-black);
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.amazon-btn:hover {
  background: var(--noir-highlight);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.5);
}

.amazon-btn:active {
  transform: translateY(0);
}

/* Newsletter Signup Button */
.newsletter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--noir-teal);
  color: white;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.newsletter-btn:hover {
  background: #0f766e;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.breadcrumb a {
  color: var(--noir-gold);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--noir-amber);
  text-decoration: underline;
}

/* Stats/Numbers Display */
.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--noir-gold);
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Footer Grid Layout */
footer .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  footer .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  footer .grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .book-card.featured {
    transform: none;
  }
  
  .noir-quote-box {
    padding: 1rem;
  }
  
  .noir-quote-box .content {
    margin-left: 2.5rem;
  }
  
  .genre-icon {
    font-size: 1.5rem;
    padding: 0.5rem;
  }
}

/* Dark Mode Overrides */
.dark .book-card {
  background: #1e293b;
  color: #f8fafc;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
}

.dark .book-card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.8);
}

.dark .book-preview {
  background: #1e293b;
  color: #f8fafc;
}

.dark .noir-quote-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-left-color: var(--noir-gold);
  color: var(--noir-cream);
}

.dark .search-input {
  background: #1e293b;
  border-color: #334155;
  color: #f3f4f6 !important;
}

.dark .search-input::placeholder {
  color: #6b7280 !important;
}

.dark .search-input:focus {
  border-color: var(--noir-gold);
  background: #0f172a;
}

.dark .filter-btn {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.dark .filter-btn:hover {
  border-color: var(--noir-gold);
  color: var(--noir-gold);
}

.dark .filter-btn.active {
  background: var(--noir-gold);
  border-color: var(--noir-gold);
  color: var(--noir-black);
}

.dark .stat-card {
  background: #1e293b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
}

/* Prose/Article Content Styling */
.prose {
  color: #374151;
  max-width: 65ch;
  font-size: 18px;
  line-height: 1.7;
}

.prose h1 {
  font-size: 2.25em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.8em;
  line-height: 1.2;
  color: var(--noir-gold);
}

.prose h2 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.75em;
  margin-bottom: 0.75em;
  line-height: 1.3;
  color: var(--noir-black);
}

.prose h3 {
  font-size: 1.25em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  line-height: 1.5;
}

.prose p {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  font-size: 18px;
  line-height: 1.7;
  color: #1f2937 !important;
}

.prose strong {
  font-weight: 600;
  color: #111827;
}

.prose em {
  font-style: italic;
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.625em;
}

.prose ul {
  list-style-type: disc;
  list-style-position: outside;
}

.prose ol {
  list-style-type: decimal;
  list-style-position: outside;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  display: list-item;
}

.prose li::marker {
  color: var(--noir-gold);
}

.dark .prose li::marker {
  color: var(--noir-gold);
}

.prose blockquote {
  font-weight: 500;
  font-style: italic;
  font-size: 1.15em;
  color: #111827;
  border-left-width: 0.25rem;
  border-left-color: var(--noir-gold);
  quotes: "\201C""\201D""\2018""\2019";
  margin-top: 1.6em;
  margin-bottom: 1.6em;
  padding-left: 1em;
  line-height: 1.6;
  background: rgba(212, 175, 55, 0.05);
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: 0.25rem;
}

.prose a {
  color: var(--noir-gold);
  text-decoration: underline;
  transition: all 0.2s ease-in-out;
}

.prose a:hover {
  color: var(--noir-amber);
  text-decoration-thickness: 2px;
}

.prose code {
  background: #f3f4f6;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose pre {
  background: #1e293b;
  color: #f8fafc;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
}

/* Dark mode prose */
.dark .prose {
  color: #d1d5db;
}

.dark .prose h1,
.dark .prose h2,
.dark .prose h3,
.dark .prose strong {
  color: #f9fafb;
}

.dark .prose h1 {
  color: var(--noir-gold);
}

.dark .prose blockquote {
  color: #f9fafb;
  border-left-color: var(--noir-gold);
  background: rgba(212, 175, 55, 0.1);
}

.dark .prose code {
  background: #334155;
  color: #f8fafc;
}

.dark .prose p {
  color: #d1d5db !important;
}

/* Hero Section Styling */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2f2f2f 50%, #3d3d3d 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(212,175,55,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

/* Book Cover 3D Effect */
.book-cover-3d {
  perspective: 1000px;
  transition: transform 0.3s ease;
}

.book-cover-3d:hover {
  transform: rotateY(-5deg) rotateX(2deg);
}

/* Email Newsletter Box */
.newsletter-box {
  background: linear-gradient(135deg, var(--noir-cream) 0%, #fff7ed 100%);
  border: 2px solid var(--noir-gold);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  text-align: center;
}

/* Content Warning Badge */
.content-warning {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(139, 0, 0, 0.1);
  border-left: 4px solid var(--noir-danger);
  border-radius: 0.25rem;
  font-size: 0.875rem;
  margin: 1rem 0;
}

/* Download Modal - Input Text Visibility Fix */
#download-modal input[type="text"],
#download-modal input[type="email"] {
  color: #1f2937 !important;
}

.dark #download-modal input[type="text"],
.dark #download-modal input[type="email"] {
  color: #e5e7eb !important;
}
