/**
 * Bard Boys Oxnard - Blog, Single Post, 404 & Standard Pages Styling
 */

/* ==========================================================================
   1. BLOG ARCHIVE & CATEGORIES
   ========================================================================== */
.bb-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
}

.bb-blog-card {
  background-color: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--bb-transition);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.bb-blog-card:hover {
  background-color: var(--bb-card-hover);
  border-color: var(--bb-border-red);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(200, 16, 46, 0.25);
}

.bb-blog-thumbnail {
  position: relative;
  overflow: hidden;
  height: 220px;
  background-color: #1a1a1a;
}

.bb-blog-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.bb-blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bb-blog-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bb-text-muted);
  margin-bottom: 12px;
}

.bb-blog-tag {
  color: var(--bb-red-light);
}

.bb-blog-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.bb-blog-card:hover .bb-blog-card-title {
  color: var(--bb-red-light);
}

.bb-blog-excerpt {
  font-size: 0.95rem;
  color: var(--bb-text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.bb-blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  margin-top: auto;
  transition: all 0.2s ease;
}

.bb-blog-read-more:hover {
  color: var(--bb-red);
  transform: translateX(4px);
}

/* ==========================================================================
   2. SINGLE POST
   ========================================================================== */
.bb-single-post {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.bb-post-header {
  margin-bottom: 36px;
}

.bb-post-title {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.bb-post-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--bb-border);
  border-bottom: 1px solid var(--bb-border);
  font-size: 0.9rem;
  color: var(--bb-text-muted);
}

.bb-post-featured-media {
  margin-bottom: 40px;
  border-radius: var(--bb-radius-md);
  overflow: hidden;
  border: 1px solid var(--bb-border);
}

.bb-post-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--bb-text-secondary);
}

.bb-post-content h2,
.bb-post-content h3,
.bb-post-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.bb-post-content blockquote {
  border-left: 4px solid var(--bb-red);
  background-color: var(--bb-card);
  padding: 20px 28px;
  margin: 28px 0;
  border-radius: 0 var(--bb-radius-sm) var(--bb-radius-sm) 0;
  font-style: italic;
  font-size: 1.15rem;
  color: #ffffff;
}

.bb-post-content ul,
.bb-post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.bb-post-content li {
  margin-bottom: 8px;
}

/* Author Box */
.bb-author-box {
  background-color: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md);
  padding: 28px;
  margin: 48px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.bb-author-avatar img {
  border-radius: 50%;
  border: 2px solid var(--bb-border);
}

.bb-author-info h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.bb-author-info p {
  margin: 0;
  font-size: 0.95rem;
}

/* Comments */
.comments-area {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--bb-border);
}

.comments-area ol.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 48px 0;
}

.comments-area ol.comment-list li.comment {
  background-color: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  padding: 24px;
  margin-bottom: 20px;
}

.comments-area ol.comment-list li.comment .comment-meta {
  font-size: 0.85rem;
  color: var(--bb-text-muted);
  margin-bottom: 12px;
}

.comment-respond {
  background-color: var(--bb-card);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md);
  padding: 32px;
}

/* ==========================================================================
   3. 404 PAGE & SEARCH
   ========================================================================== */
.bb-404-wrap {
  text-align: center;
  padding: 80px 20px;
  max-width: 680px;
  margin: 0 auto;
}

.bb-404-number {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #1f1f1f;
  text-shadow: 0 0 40px rgba(200, 16, 46, 0.3);
  margin-bottom: 12px;
}

.bb-404-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.bb-404-desc {
  font-size: 1.1rem;
  color: var(--bb-text-muted);
  margin-bottom: 36px;
}

.bb-404-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .bb-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bb-blog-grid {
    grid-template-columns: 1fr;
  }
  .bb-author-box {
    flex-direction: column;
    text-align: center;
  }
}
