/* ============================================================
   Muhammad Yusuf Corpus — Custom Styles
   ============================================================ */

/* Typography */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  color: #2d2d2d;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  min-height: 380px;
}

.author-photo {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.3);
}

.author-photo-placeholder {
  width: 110px;
  height: 110px;
  background: rgba(255,255,255,0.1);
  border: 4px solid rgba(255,255,255,0.2);
}

/* Stat cards */
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-radius: 12px !important;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  font-family: 'Inter', sans-serif;
}

.stat-label {
  font-size: 0.8rem;
  color: #6c757d;
  font-weight: 500;
  margin-top: 4px;
}

/* Hover lift for cards */
.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

/* Poem text */
.poem-text {
  font-family: 'Merriweather', serif;
  font-size: 1.05rem;
  line-height: 2;
  white-space: pre-wrap;
  color: #1a1a1a;
  letter-spacing: 0.01em;
}

/* Search result line */
.poem-line-result {
  font-family: 'Merriweather', serif;
  font-size: 0.95rem;
  color: #333;
}

/* Result title link */
.result-title {
  color: #0d6efd;
}

.result-title:hover {
  color: #0a58ca;
  text-decoration: underline !important;
}

/* Navbar tweaks */
.navbar .nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.8rem;
  transition: color 0.15s;
}

.navbar .nav-link.active {
  color: #fff !important;
  border-bottom: 2px solid rgba(255,255,255,0.5);
}

/* Biography text */
.biography-text p {
  margin-bottom: 1.2rem;
  line-height: 1.9;
}

/* Breadcrumb */
.breadcrumb-item a {
  text-decoration: none;
  color: #0d6efd;
}

/* Audio player in detail sidebar */
audio {
  border-radius: 6px;
}

/* Table striping for search results */
.table > tbody > tr:hover > td {
  background-color: #f0f4ff;
}

/* Badge tweaks */
.badge {
  font-weight: 500;
}

/* Responsive poem text scaling */
@media (max-width: 576px) {
  .poem-text {
    font-size: 0.95rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .hero-section {
    min-height: auto;
  }
  .author-photo,
  .author-photo-placeholder {
    width: 75px;
    height: 75px;
  }
}

/* Footer link */
footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

/* Scrollbar (webkit) */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #999;
}
