/**
 * blog.css — Blog page specific styles
 * Don'tForgetDad Website
 */

/* Main content */
main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.page-title {
  text-align: center;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #1d1d1f 0%, #434345 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-subtitle {
  text-align: center;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 550px;
  margin: 0 auto 3rem;
}

/* Blog cards */
.blog-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: 800px;
  margin: 2.5rem auto 0;
}

.blog-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 3rem 2.5rem;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06), inset 0 2px 4px rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.09), inset 0 2px 4px rgba(255, 255, 255, 1);
}

.blog-title {
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.meta {
  color: #999;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.excerpt {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.read-more {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}

.read-more:hover {
  color: #e6a200;
}

.loading-text {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  padding: 3rem 0;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-btn:hover:not(.disabled) {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: default;
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-dots {
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0 0.5rem;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  main {
    padding: 6rem 1rem 3rem;
  }

  .blog-card {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .blog-title {
    font-size: 1.2rem;
  }

  .meta {
    font-size: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
  }

  .excerpt {
    font-size: 0.95rem;
  }

  .pagination {
    gap: 0.3rem;
  }

  .page-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }
}
