/* ============================================
   Omegafit.ee Blog Archive Styles
   Clean Card Layout
   ============================================ */

/* --- Variables --- */
.blog, .archive.category {
  --omg-accent: #ff0055;
  --omg-accent-glow: rgba(255, 0, 85, 0.10);
  --omg-dark: #111111;
  --omg-text: #333333;
  --omg-muted: #6b7280;
  --omg-light: #f7f7f8;
  --omg-border: #e5e7eb;
  --omg-white: #ffffff;
  --omg-radius: 12px;
  --omg-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.04);
  --omg-shadow-hover: 0 4px 12px rgba(0,0,0,0.08), 0 12px 32px rgba(0,0,0,0.06);
}

/* --- Page Title --- */
.blog .page-header .page-title,
.archive.category .page-header .page-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--omg-dark);
  text-align: center;
  margin-bottom: 0.25em;
}

.blog .page-header,
.archive.category .page-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--omg-accent);
}

/* --- Posts Container --- */
.blog #primary .ast-row,
.archive.category #primary .ast-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 820px;
  margin: 0 auto;
}

/* --- Individual Post Card --- */
.blog article.post,
.archive.category article.post {
  background: var(--omg-white);
  border-radius: var(--omg-radius);
  box-shadow: var(--omg-shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog article.post:hover,
.archive.category article.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--omg-shadow-hover);
}

/* --- Featured Image --- */
.blog .post-thumb-img-content,
.archive.category .post-thumb-img-content {
  overflow: hidden;
  max-height: 380px;
}

.blog .post-thumb-img-content img,
.archive.category .post-thumb-img-content img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog article.post:hover .post-thumb-img-content img,
.archive.category article.post:hover .post-thumb-img-content img {
  transform: scale(1.03);
}

/* --- Post Content Area --- */
.blog .entry-content,
.blog .entry-summary,
.archive.category .entry-content,
.archive.category .entry-summary {
  padding: 0 2rem 0.5rem;
}

/* --- Post Header --- */
.blog .entry-header,
.archive.category .entry-header {
  padding: 1.5rem 2rem 0;
}

/* --- Post Title --- */
.blog .entry-title,
.archive.category .entry-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.blog .entry-title a,
.archive.category .entry-title a {
  color: var(--omg-dark);
  text-decoration: none;
  transition: color 0.2s;
}

.blog .entry-title a:hover,
.archive.category .entry-title a:hover {
  color: var(--omg-accent);
}

/* --- Post Meta (date, category, reading time) --- */
.blog .entry-meta,
.archive.category .entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--omg-muted);
  margin-bottom: 0.75rem;
}

.blog .entry-meta .posted-on,
.archive.category .entry-meta .posted-on {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.blog .entry-meta a,
.archive.category .entry-meta a {
  color: var(--omg-muted);
  text-decoration: none;
}

.blog .entry-meta .cat-links a,
.archive.category .entry-meta .cat-links a {
  background: var(--omg-accent-glow);
  color: var(--omg-accent);
  padding: 2px 10px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

/* --- Excerpt --- */
.blog .entry-content p,
.blog .entry-summary p,
.archive.category .entry-content p,
.archive.category .entry-summary p {
  color: var(--omg-text);
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* --- Read More Link --- */
.blog .read-more,
.blog .ast-read-more-container,
.archive.category .read-more,
.archive.category .ast-read-more-container {
  padding: 0 2rem 1.75rem;
}

.blog .read-more a,
.blog a.ast-button,
.archive.category .read-more a,
.archive.category a.ast-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--omg-dark);
  color: var(--omg-white) !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65em 1.5em;
  border-radius: 8px;
  text-decoration: none !important;
  border: none;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}

.blog .read-more a:hover,
.blog a.ast-button:hover,
.archive.category .read-more a:hover,
.archive.category a.ast-button:hover {
  background: var(--omg-accent);
  transform: translateY(-1px);
}

.blog .read-more a::after,
.blog a.ast-button::after,
.archive.category .read-more a::after,
.archive.category a.ast-button::after {
  content: '\2192';
  font-size: 1.1em;
  transition: transform 0.2s;
}

.blog .read-more a:hover::after,
.blog a.ast-button:hover::after,
.archive.category .read-more a:hover::after,
.archive.category a.ast-button:hover::after {
  transform: translateX(3px);
}

/* --- Date Badge (Astra default) --- */
.blog .ast-date-meta,
.archive.category .ast-date-meta {
  background: var(--omg-accent) !important;
  border-radius: 8px !important;
}

/* --- Post Without Featured Image --- */
.blog article.post:not(:has(.post-thumb-img-content)),
.archive.category article.post:not(:has(.post-thumb-img-content)) {
  border-left: 4px solid var(--omg-accent);
}

/* --- Footer area --- */
.blog .entry-footer,
.archive.category .entry-footer {
  padding: 0 2rem 1rem;
}

/* --- Pagination --- */
.blog .ast-pagination,
.archive.category .ast-pagination {
  margin-top: 3rem;
  text-align: center;
}

.blog .ast-pagination .page-numbers,
.archive.category .ast-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--omg-dark);
  text-decoration: none;
  transition: all 0.2s;
}

.blog .ast-pagination .page-numbers.current,
.archive.category .ast-pagination .page-numbers.current {
  background: var(--omg-accent);
  color: var(--omg-white);
}

.blog .ast-pagination .page-numbers:hover:not(.current),
.archive.category .ast-pagination .page-numbers:hover:not(.current) {
  background: var(--omg-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .blog .post-thumb-img-content img,
  .archive.category .post-thumb-img-content img {
    height: 220px;
  }

  .blog .entry-header,
  .archive.category .entry-header {
    padding: 1.25rem 1.25rem 0;
  }

  .blog .entry-content,
  .blog .entry-summary,
  .archive.category .entry-content,
  .archive.category .entry-summary {
    padding: 0 1.25rem 0.5rem;
  }

  .blog .read-more,
  .blog .ast-read-more-container,
  .archive.category .read-more,
  .archive.category .ast-read-more-container {
    padding: 0 1.25rem 1.5rem;
  }

  .blog .entry-title,
  .archive.category .entry-title {
    font-size: 1.25rem;
  }

  .blog .page-header .page-title,
  .archive.category .page-header .page-title {
    font-size: 1.6rem;
  }
}
