/* Custom styles that extend Tailwind */

/* Sidebar scrollbar */
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-track { background: transparent; }
#sidebar::-webkit-scrollbar-thumb { background: #475569; border-radius: 2px; }

/* Article prose customization */
.article-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid #f59e0b;
  display: inline-block;
}
.article-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #334155;
}
.article-content p { margin-bottom: 1rem; line-height: 1.75; color: #475569; }
.article-content ul { margin: 1rem 0 1rem 0; padding: 0; list-style: none; color: #475569; }
.article-content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
}
.article-content ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 0;
  color: #f59e0b;
  font-size: 1.1em;
  line-height: 1.7;
  font-weight: 700;
}
.article-content ol { margin: 1rem 0 1rem 1.5rem; padding: 0; color: #475569; list-style: decimal; }
.article-content ol li { margin-bottom: 0.5rem; line-height: 1.7; padding-left: 0.25rem; }
.article-content strong { color: #1e293b; }
.article-content a { color: #d97706; text-decoration: underline; }
.article-content a:hover { color: #92400e; }
.article-content blockquote {
  border-left: 4px solid #f59e0b;
  padding-left: 1rem;
  margin: 1.25rem 0;
  color: #64748b;
  font-style: italic;
}

/* Gallery grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.5rem; }
.gallery-item img { width: 100%; height: 140px; object-fit: cover; border-radius: 0.5rem; cursor: pointer; transition: opacity 0.2s; }
.gallery-item img:hover { opacity: 0.85; }

/* Rating stars */
.star-full  { color: #f59e0b; }
.star-empty { color: #d1d5db; }

/* Map container */
#article-map { height: 300px; border-radius: 0.75rem; z-index: 0; }

/* Section card hover */
.section-card { transition: transform 0.15s, box-shadow 0.15s; }
.section-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -4px rgba(0,0,0,.12); }

/* Sidebar mobile slide */
#sidebar { transition: transform 0.25s cubic-bezier(0.4,0,0.2,1); }

/* Fade-in animation */
@keyframes fadeInUp { from { opacity:0; transform:translateY(16px) } to { opacity:1; transform:none } }
.fade-in { animation: fadeInUp 0.4s ease both; }

/* Pagination */
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; padding: 0 0.5rem;
  border-radius: 0.375rem; font-size: 0.875rem; font-weight: 500;
  border: 1px solid #e2e8f0; color: #475569; background: #fff;
  transition: all 0.15s;
}
.page-btn:hover:not(.active) { background: #f8fafc; border-color: #cbd5e1; }
.page-btn.active { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.page-btn:disabled { opacity: 0.4; pointer-events: none; }
.page-btn.disabled { opacity: 0.35; pointer-events: none; cursor: default; }
.page-btn-gap { display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.25rem; height: 2.25rem; font-size: 0.875rem; color: #94a3b8; }

/* Cover image aspect ratio */
.cover-img { width: 100%; height: 320px; object-fit: cover; }
@media (min-width: 768px) { .cover-img { height: 420px; } }

/* Infobox */
.infobox-row { display: flex; gap: 0.75rem; padding: 0.625rem 0; border-bottom: 1px solid #f1f5f9; align-items: flex-start; }
.infobox-row:last-child { border-bottom: none; }
.infobox-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }
.infobox-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #94a3b8; }
.infobox-value { font-size: 0.875rem; color: #334155; font-weight: 500; }
