/* Claimloom — blog.css
   Blog list + article page styles
*/

/* ─── Blog Index ─── */
.cll-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.cll-blog-card {
  border: 1px solid var(--cll-border-light);
  border-radius: var(--cll-radius-md);
  background: var(--cll-bg-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.cll-blog-card:hover {
  box-shadow: 0 6px 28px rgba(26,43,74,0.1);
  transform: translateY(-2px);
}

.cll-blog-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--cll-bg-light);
}
.cll-blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.cll-blog-card:hover .cll-blog-card__img {
  transform: scale(1.03);
}

.cll-blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.cll-blog-card__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cll-accent-aa-light);
  margin-bottom: 10px;
}
.cll-blog-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--cll-fg-light-1);
  line-height: 1.35;
  margin-bottom: 10px;
}
.cll-blog-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.cll-blog-card__title a:hover { color: var(--cll-accent-aa-light); }
.cll-blog-card__summary {
  font-size: 14px;
  color: var(--cll-fg-light-2);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}
.cll-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cll-blog-card__author {
  font-size: 13px;
  font-weight: 600;
  color: var(--cll-fg-light-1);
}
.cll-blog-card__date {
  font-size: 12px;
  color: var(--cll-fg-light-3);
}

/* ─── Blog Article ─── */
.cll-article-page {
  background: var(--cll-bg-white);
}

.cll-article-header {
  padding: 64px 0 40px;
  background: var(--cll-bg-white);
  border-bottom: 1px solid var(--cll-border-light);
}
.cll-article-header__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .cll-article-header__inner { padding: 0 40px; }
}

.cll-article-header__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cll-accent-aa-light);
  margin-bottom: 14px;
}
.cll-article-header__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cll-fg-light-1);
  margin-bottom: 20px;
}
.cll-article-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cll-article-header__author {
  font-size: 14px;
  font-weight: 600;
  color: var(--cll-fg-light-1);
}
.cll-article-header__date {
  font-size: 13px;
  color: var(--cll-fg-light-3);
}

.cll-article-cover-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
@media (min-width: 768px) {
  .cll-article-cover-wrap { padding: 48px 40px 0; }
}
.cll-blog-article__cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--cll-radius-md);
  margin: 0 auto;
}

.cll-article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}
@media (min-width: 768px) {
  .cll-article-body { padding: 56px 40px 96px; }
}

body.cll-page--light-top .cll-article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--cll-fg-light-1);
  margin-bottom: 12px;
  margin-top: 36px;
}
body.cll-page--light-top .cll-article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--cll-fg-light-1);
  margin-bottom: 10px;
  margin-top: 28px;
}
body.cll-page--light-top .cll-article-body p {
  font-size: 16px;
  color: var(--cll-fg-light-2);
  line-height: 1.75;
  margin-bottom: 18px;
}
body.cll-page--light-top .cll-article-body ul,
body.cll-page--light-top .cll-article-body ol {
  margin: 14px 0 18px 22px;
}
body.cll-page--light-top .cll-article-body li {
  font-size: 16px;
  color: var(--cll-fg-light-2);
  line-height: 1.7;
  list-style: disc;
  margin-bottom: 8px;
}
body.cll-page--light-top .cll-article-body a {
  color: var(--cll-accent-aa-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.cll-page--light-top .cll-article-body blockquote {
  border-left: 3px solid var(--cll-accent-decorative);
  margin: 24px 0;
  padding: 12px 20px;
  background: var(--cll-bg-light);
  border-radius: 0 var(--cll-radius-sm) var(--cll-radius-sm) 0;
  font-size: 16px;
  color: var(--cll-fg-light-1);
  font-style: italic;
}

.cll-article-placeholder {
  padding: 48px;
  background: var(--cll-bg-light);
  border-radius: var(--cll-radius-md);
  border: 2px dashed var(--cll-border-light);
  text-align: center;
  color: var(--cll-fg-light-3);
  font-size: 14px;
}

/* ─── Blog back link ─── */
.cll-article-back {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
@media (min-width: 768px) {
  .cll-article-back { padding: 32px 40px 0; }
}
.cll-article-back a {
  font-size: 13px;
  color: var(--cll-accent-aa-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cll-article-back a:hover { text-decoration: underline; text-underline-offset: 2px; }
