
/* ===========================================
   Blocksy-style Blog OVERRIDES for bl-project
   Override CSS variables to transform dark->light
   =========================================== */

body.blog,
body.single-post,
body.search,
body.archive.category,
body.archive.tag,
body.archive.author,
body.archive.date,
body.home.blog {
  /* Color Variables - Light Theme */
  --color-bg: #f8f9fb !important;
  --color-bg-elevated: #ffffff !important;  
  --color-bg-card: #ffffff !important;
  --color-bg-hover: #f1f5f9 !important;
  --color-text: #1e293b !important;
  --color-text-muted: #64748b !important;
  --color-text-subtle: #94a3b8 !important;
  --color-border: #e2e8f0 !important;
  --color-border-hover: #cbd5e1 !important;
  --color-primary: #f59e0b !important;
  --color-primary-hover: #fbbf24 !important;
  --color-primary-muted: rgba(245, 158, 11, 0.1) !important;
  --color-accent: #f59e0b !important;
  --color-success: #22c55e !important;
  --color-error: #ef4444 !important;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1) !important;
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.1) !important;
  
  background-color: #f8f9fb !important;
  color: #1e293b !important;
}

/* Keep header dark on blog pages to match homepage black-gold theme */
body.blog .site-header,
body.single-post .site-header,
body.search .site-header,
body.archive .site-header {
  background: rgba(10, 10, 11, 0.9) !important;
  border-bottom: 1px solid #27272a !important;
  backdrop-filter: blur(20px);
}

body.blog .site-header .nav-menu a,
body.single-post .site-header .nav-menu a,
body.search .site-header .nav-menu a,
body.archive .site-header .nav-menu a {
  color: #a1a1aa !important;
}

body.blog .site-header .nav-menu a:hover,
body.single-post .site-header .nav-menu a:hover,
body.search .site-header .nav-menu a:hover,
body.archive .site-header .nav-menu a:hover,
body.blog .site-header .nav-menu .current-menu-item a,
body.single-post .site-header .nav-menu .current-menu-item a,
body.search .site-header .nav-menu .current-menu-item a,
body.archive .site-header .nav-menu .current-menu-item a {
  color: #fafafa !important;
}

.site-footer,
body.blog .site-footer,
body.single-post .site-footer,
body.search .site-footer,
body.archive .site-footer {
  /* Footer dark styling is now handled globally in main.css */
}

/* ===========================================
   Blocksy-style Blog CSS for bl-project
   Overrides bl-project dark blog styles with
   Blocksy-like light/clean card layout
   =========================================== */

.archive-page,
.blog .site-main,
.home.blog .site-main {
  background: #f8f9fb;
  padding: 60px 0 80px;
}

.archive-page {
  padding-top: 112px; /* top notice 30px + 72px header + 10px spacing */
}

body.top-notice-hidden .archive-page {
  padding-top: 82px; /* 72px header + 10px spacing */
}

.page-header {
  text-align: center;
  margin-bottom: 48px;
}

.page-header .page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.post-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.post-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 6px 10px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.post-card .post-thumbnail {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f1f5f9;
}

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

.post-card:hover .post-thumbnail img {
  transform: scale(1.03);
}

.post-card .post-content {
  padding: 24px;
}

.post-card .entry-header {
  margin-bottom: 12px;
}

.post-card .entry-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

.post-card .entry-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
}

.post-card .entry-title a:hover {
  color: #f59e0b;
}

.post-card .entry-meta {
  font-size: 0.8125rem;
  color: #64748b;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.post-card .entry-meta .sep {
  color: #94a3b8;
}

.post-card .entry-meta .entry-author {
  color: #475569;
  font-weight: 500;
}

.post-card .entry-excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #475569;
  margin: 12px 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f59e0b;
  text-decoration: none;
  padding: 6px 0;
  transition: gap 0.2s, color 0.2s;
}

.post-card .read-more:hover {
  gap: 10px;
  color: #fbbf24;
}

.post-card .read-more svg {
  transition: transform 0.2s;
}

.post-card .read-more:hover svg {
  transform: translateX(3px);
}

.posts-pagination,
.navigation.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
}

.posts-pagination .nav-links,
.navigation.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.posts-pagination .page-numbers,
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.posts-pagination .page-numbers.prev,
.posts-pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
  width: auto;
  padding: 0 16px;
  gap: 6px;
  white-space: nowrap;
}

.posts-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}

.posts-pagination .page-numbers:hover:not(.current),
.navigation.pagination .page-numbers:hover:not(.current) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.no-posts {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 1.125rem;
}

/* Single Post Page */
.single-post-wrapper {
  background: #f8f9fb;
  min-height: 60vh;
}

.single-post-wrapper .container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 112px 24px 80px; /* top: 30px notice + 72px header + 10px spacing */
}

body.top-notice-hidden .single-post-wrapper .container-narrow {
  padding-top: 82px; /* 72px header + 10px spacing */
}

.single-post-wrapper article {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 32px;
}

.single-post-wrapper .entry-header {
  padding: 48px 48px 0;
}

.single-post-wrapper .entry-meta {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.single-post-wrapper .entry-meta .sep {
  color: #94a3b8;
}

.single-post-wrapper .entry-meta .entry-author {
  color: #475569;
  font-weight: 500;
}

.single-post-wrapper .entry-meta a {
  color: #f59e0b;
  text-decoration: none;
}

.single-post-wrapper .entry-meta a:hover {
  text-decoration: underline;
}

.single-post-wrapper .entry-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.single-post-wrapper .entry-excerpt {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.single-post-wrapper .entry-thumbnail {
  margin: 32px 48px 0;
  border-radius: 10px;
  overflow: hidden;
}

.single-post-wrapper .entry-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.single-post-wrapper .entry-content {
  padding: 40px 48px 48px;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #334155;
}

.single-post-wrapper .entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2em 0 0.75em;
}

.single-post-wrapper .entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 1.75em 0 0.5em;
}

.single-post-wrapper .entry-content p {
  margin: 0 0 1.25em;
}

.single-post-wrapper .entry-content a {
  color: #f59e0b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-post-wrapper .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.single-post-wrapper .entry-content ul,
.single-post-wrapper .entry-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.single-post-wrapper .entry-content li {
  margin-bottom: 0.5em;
}

.single-post-wrapper .entry-content blockquote {
  border-left: 3px solid #f59e0b;
  margin: 24px 0;
  padding: 16px 24px;
  background: #f8fafc;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
}

.single-post-wrapper .entry-content pre,
.single-post-wrapper .entry-content code {
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.875rem;
  padding: 2px 6px;
  color: #334155;
}

.single-post-wrapper .entry-content pre {
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.6;
}

.single-post-wrapper .entry-content pre code {
  padding: 0;
  background: none;
}

.single-post-wrapper .entry-footer {
  padding: 0 48px 32px;
}

.single-post-wrapper .entry-tags {
  margin-bottom: 24px;
  font-size: 0.875rem;
}

.single-post-wrapper .entry-tags .tag-label {
  color: #64748b;
  font-weight: 500;
  margin-right: 8px;
}

.single-post-wrapper .entry-tags a {
  display: inline-block;
  padding: 4px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  color: #475569;
  font-size: 0.8125rem;
  text-decoration: none;
  margin: 0 4px 6px 0;
  transition: all 0.2s;
}

.single-post-wrapper .entry-tags a:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.post-navigation a {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
  max-width: 48%;
}

.post-navigation a:hover {
  background: #f1f5f9;
}

.post-navigation .nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.post-navigation .nav-title {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1e293b;
  line-height: 1.4;
}

.post-navigation .nav-next {
  text-align: right;
}

.comments-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

/* =========================================================
   Modern Comment Form (Leave a Reply)
   ========================================================= */
.comments-area {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  border: 1px solid #f0f0f0;
}

.comments-area .comments-title,
.comments-area .comment-reply-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.comments-area .comment-reply-title small {
  display: block;
  margin-top: 8px;
  font-size: 0.875rem;
  font-weight: 400;
}

.comments-area .comment-reply-title small a {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
}

.comments-area .comment-reply-title small a:hover {
  color: #1e293b;
}

.comments-area .comment-notes,
.comments-area .logged-in-as {
  font-size: 0.9375rem;
  color: #6b7280;
  margin-bottom: 28px;
}

.comments-area .logged-in-as a {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 500;
}

.comments-area .logged-in-as a:hover {
  color: #1e293b;
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.comment-form p {
  margin: 0;
}

.comment-form .comment-form-comment,
.comment-form .comment-form-cookies-consent,
.comment-form .form-submit {
  grid-column: 1 / -1;
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.comment-form label .required {
  color: #dc2626;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: #1e293b;
  background: #fafafa;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s ease;
  outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  background: #ffffff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.08);
}

.comment-form textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.6;
}

.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-top: 8px;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: #f59e0b;
  cursor: pointer;
}

.comment-form .comment-form-cookies-consent label {
  font-weight: 400;
  color: #6b7280;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}

.comment-form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 40px;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: #111111;
  border: 2px solid #111111;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
  background: transparent;
  color: #111111;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .comments-area {
    padding: 24px 16px;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .comment-form .comment-form-author,
  .comment-form .comment-form-email,
  .comment-form .comment-form-url {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .comments-wrapper {
    padding: 0 16px 40px;
  }

  .single-post-wrapper .container-narrow {
    padding: 40px 16px 60px;
  }

  .single-post-wrapper .entry-header,
  .single-post-wrapper .entry-content,
  .single-post-wrapper .entry-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .single-post-wrapper .entry-thumbnail {
    margin-left: 16px;
    margin-right: 16px;
  }

  .single-post-wrapper .entry-title {
    font-size: 1.75rem;
  }

  .post-navigation {
    flex-direction: column;
  }

  .post-navigation a {
    max-width: 100%;
  }
}
