/* ==========================================================================
   MINHIT.COM - DEDICATED BLOG & ARTICLE READER STYLES
   ========================================================================== */

.blog-header {
  padding: 8rem 0 3rem;
  text-align: center;
  position: relative;
}

.blog-search-container {
  max-width: 680px;
  margin: 2rem auto 1.5rem;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.blog-search-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-fast);
}

.blog-search-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
  background: var(--bg-card-hover);
}

.search-clear-btn {
  position: absolute;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  font-size: 1.1rem;
}

.search-clear-btn:hover {
  color: var(--text-primary);
}

/* Category & Tag Filters */
.blog-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-pill {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

/* Results Info Bar */
.results-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 4rem 0;
}

.page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.page-btn:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
}

.page-btn.active {
  background: var(--accent-blue);
  color: #fff;
  border-color: var(--accent-blue);
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ==========================================================================
   FULL ARTICLE READER MODAL
   ========================================================================== */
.article-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1100;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.article-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.article-modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-hover);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  margin: auto;
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-glow);
  position: relative;
}

.article-close-btn {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-md);
  z-index: 1200;
  transition: transform var(--transition-fast);
}

.article-close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  border-color: var(--accent-blue);
}

.article-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.article-full-title {
  font-size: 2.25rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.article-featured-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  border: 1px solid var(--border-glass);
}

/* Article Body Typography */
.article-body-rendered {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body-rendered h1, 
.article-body-rendered h2, 
.article-body-rendered h3, 
.article-body-rendered h4 {
  margin: 2rem 0 1rem;
  color: var(--text-primary);
}

.article-body-rendered p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.article-body-rendered ul, 
.article-body-rendered ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

.article-body-rendered li {
  margin-bottom: 0.5rem;
}

.article-body-rendered img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  border: 1px solid var(--border-glass);
}

.article-body-rendered blockquote {
  border-left: 4px solid var(--accent-blue);
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-primary);
}

.article-footer-bar {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  .article-modal-content {
    padding: 2rem 1.25rem;
  }
  .article-full-title {
    font-size: 1.65rem;
  }
  .article-close-btn {
    top: 1rem;
    right: 1rem;
  }
}
