/* Modern Blog - Frontend Styles */
:root {
  --reading-bar: #0d6efd;
}

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--reading-bar);
  width: 0;
  z-index: 9999;
  transition: width 0.1s linear;
}

.site-header { backdrop-filter: blur(8px); }

.post-card { transition: transform 0.2s, box-shadow 0.2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1) !important; }

.post-content { line-height: 1.8; font-size: 1.05rem; }
.post-content h2, .post-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.post-content img { max-width: 100%; height: auto; border-radius: 0.375rem; }

.lazyload { opacity: 1; transition: opacity 0.3s; }
.lazyload.loaded, img.lazyloaded { opacity: 1; }

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
  z-index: 1050;
  max-height: 320px;
  overflow-y: auto;
}
.search-dropdown a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--bs-border-color);
}
.search-dropdown a:hover { background: var(--bs-tertiary-bg); }

.ad-slot { text-align: center; min-height: 50px; }
.hero-section { background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important; }

[data-bs-theme="dark"] .post-card { background: var(--bs-dark); }
[data-bs-theme="dark"] .site-header { background: var(--bs-dark) !important; }

@media (max-width: 991.98px) {
  .blog-sidebar { margin-top: 2rem; }
}
