/* Blog List Page Styles
   Styles specific to the blog listing page (blog.html)
*/

main {
  padding: 40px 0;
}

/* ===== BACK LINK ===== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.3s ease;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.2s forwards;
}

.back-link:hover {
  color: var(--accent);
}

.back-link .arrow {
  transition: transform 0.3s ease;
}

.back-link:hover .arrow {
  transform: translateX(-4px);
}

/* ===== THEME CARDS (Blog Categories) ===== */

.theme-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  width: 100%;
  max-width: 800px;
  opacity: 0;
  animation: fadeUp 1s ease-out 0.4s forwards;
}

.theme-card {
  display: block;
  padding: 32px;
  background: rgba(235, 231, 221, 0.02);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.theme-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}

.theme-card:hover {
  background: rgba(235, 231, 221, 0.04);
  border-color: var(--accent);
  transform: translateY(-4px);
}

.theme-card:hover::before {
  transform: scaleX(1);
}

.theme-icon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.theme-name {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.theme-card:hover .theme-name {
  color: var(--accent);
}

.theme-description {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 20px;
}

.theme-count {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.theme-arrow {
  display: inline-block;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.theme-card:hover .theme-arrow {
  transform: translateX(4px);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 720px) {
  .theme-cards {
    gap: 16px;
  }

  .theme-card {
    padding: 24px 20px;
  }

  .theme-name {
    font-size: 24px;
  }

  .theme-description {
    font-size: 12px;
  }

  .back-link {
    font-size: 10px;
  }
}
