/* =============================================
   THE DIGI LAB — Blog
   Listing page card grid
============================================= */

.blog-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
  border-color: rgba(250,164,26,0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.blog-card-img {
  position: relative;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(250,164,26,0.1) 0%, rgba(250,164,26,0.03) 100%);
  border-bottom: 1px solid var(--black-border);
  font-size: 2.5rem;
  color: var(--accent);
}
.blog-card-category {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: var(--font-head);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(250,164,26,0.3);
  background: rgba(10,10,10,0.7);
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.blog-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.blog-card-meta {
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.blog-card-body h3 {
  font-size: 1.1rem;
  color: var(--white);
  line-height: 1.3;
}
.blog-card-body p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  flex: 1;
}
.blog-card-link {
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--black-border);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ---- Coming Soon placeholder ---- */
.blog-coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-card);
}
.blog-coming-soon i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}
.blog-coming-soon h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.blog-coming-soon p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.5);
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Tags Block (full-width, above grid) ---- */
.blog-tags-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--black-border);
  margin-bottom: 2rem;
}
.blog-tags-label {
  font-family: var(--font-head);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-right: 0.25rem;
}

/* ---- Blog Layout: two-column with sidebar ---- */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* ---- Sidebar ---- */
.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sidebar-widget {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}
.sidebar-widget-title {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-widget-title i {
  color: var(--accent);
  font-size: 0.9rem;
}
.sidebar-cta {
  background: var(--accent-glow);
  border: 1px solid rgba(250,164,26,0.3);
  border-radius: var(--radius-card);
  padding: 1.25rem;
}
.sidebar-cta h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}
.sidebar-cta p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sidebar-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.sidebar-subscribe-input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--black-border);
  border-radius: var(--radius-btn);
  background: var(--black);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s;
}
.sidebar-subscribe-input:focus {
  border-color: rgba(250,164,26,0.5);
}
.sidebar-subscribe-btn {
  width: 100%;
  padding: 0.6rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(250,164,26,0.4);
  background: transparent;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.sidebar-subscribe-btn:hover {
  background: var(--accent-glow);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag-cloud-pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  border: 1px solid var(--black-border);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.tag-cloud-pill:hover {
  border-color: rgba(250,164,26,0.4);
  color: var(--accent);
}
.recent-post-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--black-border);
}
.recent-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.recent-post-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--black-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}
.recent-post-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  line-height: 1.35;
  margin-bottom: 0.2rem;
}
.recent-post-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* =============================================
   LIGHT THEME — Blog
============================================= */
[data-theme="light"] .blog-card { background: #fff; border-color: #dcdcda; }
[data-theme="light"] .blog-card-img { background: linear-gradient(135deg, rgba(250,164,26,0.12) 0%, rgba(250,164,26,0.04) 100%); border-bottom-color: #dcdcda; }
[data-theme="light"] .blog-card-category { background: rgba(255,255,255,0.85); }
[data-theme="light"] .blog-card-meta { color: #555; }
[data-theme="light"] .blog-card-body p { color: #333; }
[data-theme="light"] .blog-card-link { border-top-color: #dcdcda; color: #666; }
[data-theme="light"] .sidebar-widget { background: #fff; border-color: #dcdcda; }
[data-theme="light"] .sidebar-widget-title { color: #444; }
[data-theme="light"] .sidebar-cta { background: rgba(250,164,26,0.08); border-color: rgba(250,164,26,0.35); }
[data-theme="light"] .sidebar-cta h4 { color: #111; }
[data-theme="light"] .sidebar-cta p { color: #333; }
[data-theme="light"] .sidebar-subscribe-input { background: #fff; border-color: #dcdcda; color: #111; }
[data-theme="light"] .blog-coming-soon { background: #fff; border-color: #dcdcda; }
[data-theme="light"] .blog-coming-soon h3 { color: #111; }
[data-theme="light"] .blog-coming-soon p { color: #333; }
[data-theme="light"] .blog-tags-block { border-bottom-color: #dcdcda; }
[data-theme="light"] .blog-tags-label { color: #555; }
[data-theme="light"] .tag-cloud-pill { border-color: #dcdcda; color: #555; }
[data-theme="light"] .tag-cloud-pill:hover { border-color: rgba(250,164,26,0.5); color: var(--accent); }
[data-theme="light"] .recent-post-item { border-bottom-color: #dcdcda; }
[data-theme="light"] .recent-post-thumb { background: #efefed; }
[data-theme="light"] .recent-post-title { color: #222; }
[data-theme="light"] .recent-post-date { color: #777; }
