/* =========================================================
   کفش ایوان | E1Shoes — استایل بلاگ و مقالات v2
   ========================================================= */

/* ============ BLOG TABS ============ */
.blog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}

.blog-tab {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 600;
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.blog-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.blog-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(255,90,31,.25);
}

/* ============ FEATURED POST ============ */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.blog-featured-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-soft);
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.blog-featured:hover .blog-featured-img img {
  transform: scale(1.04);
}

.blog-featured-body {
  padding: 26px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-featured-body h2 {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.3px;
  color: var(--text);
  transition: color var(--t-fast);
}
.blog-featured:hover .blog-featured-body h2 { color: var(--accent); }
.blog-featured-body p {
  color: var(--text-soft);
  font-size: .95rem;
  line-height: 1.85;
}

.blog-more {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 700;
  margin-top: 4px;
  display: inline-block;
  transition: transform var(--t-fast);
}
.blog-featured:hover .blog-more { transform: translateX(-4px); }

@media (min-width: 800px) {
  .blog-featured {
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
  }
  .blog-featured-img { aspect-ratio: auto; min-height: 340px; }
  .blog-featured-body { padding: 40px 36px; justify-content: center; }
}

/* ============ BLOG CATEGORY BADGE ============ */
.blog-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .74rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  letter-spacing: .3px;
}

/* ============ BLOG META ============ */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }

/* ============ BLOG GRID ============ */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 600px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (min-width: 900px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

/* ============ BLOG CARD ============ */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.blog-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-soft);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.06);
}

.blog-card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-body h3 {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--t-fast);
}
.blog-card:hover .blog-card-body h3 {
  color: var(--accent);
}
.blog-card-body p {
  color: var(--text-soft);
  font-size: .88rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ============ POPULAR LIST ============ */
.popular-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.popular-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.popular-item:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
  border-color: var(--accent);
}
.popular-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 12px;
}
.popular-body { min-width: 0; }
.popular-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.5;
  transition: color var(--t-fast);
}
.popular-item:hover .popular-body h3 { color: var(--accent); }

/* ============ ARTICLE PAGE ============ */
.article-header {
  margin-bottom: 28px;
  text-align: right;
}
.article-header h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -.5px;
  margin: 12px 0 14px;
}

.article-hero {
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-soft);
  margin-bottom: 32px;
}
.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-lead {
  padding: 20px 22px;
  background: var(--accent-soft);
  border-right: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-soft);
  font-weight: 500;
}

.article-content {
  margin-bottom: 32px;
}
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 32px 0 14px;
  padding-right: 12px;
  border-right: 3px solid var(--accent);
  line-height: 1.5;
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 24px 0 10px;
}
.article-content p {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.95;
  margin-bottom: 18px;
}
.article-content ul,
.article-content ol {
  padding-right: 24px;
  margin-bottom: 20px;
}
.article-content ul li,
.article-content ol li {
  color: var(--text-soft);
  font-size: .98rem;
  line-height: 1.9;
  margin-bottom: 8px;
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content strong { color: var(--text); font-weight: 700; }
.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============ ARTICLE TAGS ============ */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-size: .8rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  transition: all var(--t-fast);
}
.tag:hover {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ ARTICLE SHARE ============ */
.article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  font-size: .88rem;
  color: var(--text-soft);
}
.share-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast);
  text-decoration: none;
}
.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 500px) {
  .blog-featured-body { padding: 22px 18px; }
  .blog-featured-body h2 { font-size: 1.1rem; }
  .blog-card-body { padding: 16px 16px 18px; }
  .blog-card-body h3 { font-size: .95rem; }
  .popular-item { padding: 14px 16px; gap: 12px; }
  .popular-num { width: 36px; height: 36px; font-size: .95rem; }
  .article-lead { padding: 16px 18px; font-size: .92rem; }
  .article-content h2 { font-size: 1.15rem; }
  .article-content p { font-size: .94rem; }
}