/* ================================================
   BLOG — Estilos para hub e artigos
   Estilo Eat Off Limits
   ================================================ */

/* ------------------------------------------------
   BLOG HUB — Grade de artigos
   ------------------------------------------------ */
.blog-section {
  padding: 72px 0;
  background: var(--ol-cream, #fffcf8);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.blog-card {
  border: 2px solid #000;
  box-shadow: 6px 6px 0 #000;
  background: var(--ol-cream, #fffcf8);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #000;
}

.blog-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
  border-bottom: 2px solid #000;
  background: #e8e8e0;
}

.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__img img { transform: scale(1.05); }

.blog-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-card__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ol-yellow, #ffdc15);
  color: #000;
  border: 1.5px solid #000;
  padding: 3px 10px;
}

.blog-card__title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  color: #000;
}

.blog-card__title a {
  color: #000;
  text-decoration: none;
}

.blog-card__title a:hover { text-decoration: underline; }

.blog-card__excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(0,0,0,0.65);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.45);
  margin-top: 4px;
}

.blog-card__footer {
  padding: 0 20px 20px;
}

.blog-card__footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  text-decoration: underline;
}

/* Blog featured (artigo destaque, ocupa 2 colunas) */
.blog-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.blog-card--featured .blog-card__img {
  width: 50%;
  flex-shrink: 0;
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 2px solid #000;
}

.blog-card--featured .blog-card__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.blog-card--featured .blog-card__excerpt {
  -webkit-line-clamp: 4;
}

/* ------------------------------------------------
   ARTICLE PAGE
   ------------------------------------------------ */
.article-hero {
  background: #000;
  color: #fff;
  padding: 64px 0 48px;
  border-bottom: 2px solid #000;
}

.article-hero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.article-hero__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ol-yellow, #ffdc15);
  color: #000;
  padding: 4px 12px;
  border: 1.5px solid var(--ol-yellow, #ffdc15);
}

.article-hero__date {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.article-hero__read-time {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.article-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.92;
  color: #fff;
  max-width: 900px;
  margin-bottom: 20px;
}

.article-hero__intro {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  max-width: 600px;
}

.article-hero__img {
  margin-top: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  aspect-ratio: 16/6;
  overflow: hidden;
}

.article-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Article content layout */
.article-layout {
  padding: 64px 0;
  background: var(--ol-cream, #fffcf8);
}

.article-container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* Article body text */
.article-body {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(0,0,0,0.8);
}

.article-body h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  color: #000;
  margin: 48px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #000;
}

.article-body h2:first-child { margin-top: 0; }

.article-body h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #000;
  margin: 32px 0 12px;
}

.article-body p { margin-bottom: 20px; }

.article-body strong { font-weight: 700; color: #000; }

.article-body ul, .article-body ol {
  margin: 20px 0 24px 0;
  padding: 0;
  list-style: none;
}

.article-body ul li, .article-body ol li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
  position: relative;
  font-size: 14px;
  line-height: 1.6;
}

.article-body ul li::before {
  content: '✦';
  position: absolute;
  left: 0;
  font-size: 10px;
  color: #000;
  top: 13px;
}

.article-body ol { counter-reset: ol-counter; }

.article-body ol li {
  counter-increment: ol-counter;
}

.article-body ol li::before {
  content: counter(ol-counter) '.';
  position: absolute;
  left: 0;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  top: 12px;
}

.article-body blockquote {
  border-left: 4px solid var(--ol-yellow, #ffdc15);
  background: rgba(255,220,21,0.08);
  margin: 32px 0;
  padding: 20px 24px;
  font-size: 16px;
  font-style: italic;
  font-weight: 500;
  color: #000;
  border: 2px solid #000;
  border-left: 6px solid var(--ol-yellow, #ffdc15);
}

.article-body blockquote cite {
  display: block;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.5);
  margin-top: 10px;
}

.article-body .highlight-box {
  background: var(--ol-yellow, #ffdc15);
  border: 2px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 24px;
  margin: 32px 0;
}

.article-body .highlight-box p { color: #000; margin-bottom: 0; }

/* Article sidebar */
.article-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  border: 2px solid #000;
  box-shadow: 5px 5px 0 #000;
  background: var(--ol-cream, #fffcf8);
  margin-bottom: 24px;
}

.sidebar-widget__title {
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
}

.sidebar-widget__body { padding: 16px; }

.toc-list {
  list-style: none;
}

.toc-list li {
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
}

.toc-list li:last-child { border-bottom: none; }

.toc-list a {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.toc-list a::before {
  content: '→';
  font-size: 11px;
  color: rgba(0,0,0,0.4);
}

.toc-list a:hover { text-decoration: underline; }

/* Related products in sidebar */
.sidebar-product {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
  text-decoration: none;
  color: #000;
}

.sidebar-product:last-child { border-bottom: none; }

.sidebar-product img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1.5px solid #000;
  flex-shrink: 0;
}

.sidebar-product__info { flex: 1; }

.sidebar-product__name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
}

.sidebar-product__price {
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  margin-top: 4px;
}

/* Article tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0;
  padding-top: 32px;
  border-top: 2px dashed #000;
}

.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 2px solid #000;
  color: #000;
  text-decoration: none;
  transition: background 0.18s ease;
}

.article-tag:hover {
  background: var(--ol-yellow, #ffdc15);
}

/* Author box */
.author-box {
  border: 2px solid #000;
  box-shadow: 5px 5px 0 #000;
  padding: 24px;
  background: var(--ol-yellow, #ffdc15);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 40px 0;
}

.author-box__avatar {
  width: 64px;
  height: 64px;
  border: 2px solid #000;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.author-box__name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #000;
}

.author-box__bio {
  font-size: 13px;
  color: rgba(0,0,0,0.7);
  line-height: 1.6;
  margin-top: 4px;
}

/* ------------------------------------------------
   BLOG HUB HERO
   ------------------------------------------------ */
.blog-hero {
  background: #000;
  border-bottom: 2px solid #000;
  padding: 64px 0 48px;
  text-align: center;
}

.blog-hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 8vw, 8rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 0.92;
  color: #fff;
}

.blog-hero p {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  margin-top: 16px;
  max-width: 480px;
  margin-inline: auto;
  line-height: 1.7;
}

/* Blog category pills */
.blog-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 28px;
}

.blog-cat-btn {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 2px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.blog-cat-btn:hover,
.blog-cat-btn.active {
  background: var(--ol-yellow, #ffdc15);
  color: #000;
  border-color: var(--ol-yellow, #ffdc15);
}

/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-card--featured { grid-column: span 2; flex-direction: column; }
  .blog-card--featured .blog-card__img { width: 100%; aspect-ratio: 16/9; border-right: none; border-bottom: 2px solid #000; }
  .article-container { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card--featured { grid-column: span 1; }
  .article-hero h1 { font-size: clamp(2.4rem, 8vw, 4rem); }
}
