/* ===========================================================
   CONSOLIDATED BLOG STYLES
   This file replaces: sidebar-styles.css, elegant-blog-styles.css,
   elegant-comments-styles.css, professional-sizing.css, 
   quick-fixes.css, and comment-sizing.css
   
   Single clean file with no redundancy or conflicts!
   =========================================================== */

/* ========================================
   BLOG LAYOUT & STRUCTURE
   ======================================== */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-main {
  min-width: 0;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ========================================
   BLOG POST CARDS
   ======================================== */

.blog-post {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-post:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Entry Header */
.entry-header {
  padding: 1.5rem 1.5rem 0;
  margin-bottom: 0;
}

.entry-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.entry-title a {
  color: var(--brand-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.entry-title a:hover {
  color: var(--brand-mid);
}

/* Entry Meta */
.entry-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #888;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.entry-date {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
}

.entry-date::before {
  content: "📅";
  font-size: 0.9em;
}

.entry-meta .categories {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-meta .categories::before {
  content: "🏷️";
  font-size: 0.9em;
}

.entry-meta .categories a {
  color: var(--brand-mid);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.entry-meta .categories a:hover {
  color: var(--brand-dark);
}

/* Entry Thumbnail */
.entry-thumbnail {
  margin: 1rem 1.5rem;
  border-radius: 10px;
  overflow: hidden;
}

.entry-thumbnail a {
  display: block;
  overflow: hidden;
}

.entry-thumbnail img {
  border-radius: 0;
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.entry-thumbnail:hover img {
  transform: scale(1.05);
}

/* Entry Content */
.entry-content {
  padding: 0 1.5rem;
  line-height: 1.6;
  color: #444;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.entry-content p {
  margin: 0 0 0.75rem;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

/* Entry Footer */
.entry-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: none;
}

.entry-footer .btn.subtle {
  background: transparent;
  color: var(--brand-mid);
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--brand-mid);
  border-radius: 8px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.entry-footer .btn.subtle::after {
  content: "→";
  transition: transform 0.3s ease;
}

.entry-footer .btn.subtle:hover {
  background: var(--brand-mid);
  color: #fff;
  transform: translateX(4px);
}

.entry-footer .btn.subtle:hover::after {
  transform: translateX(4px);
}

/* ========================================
   SINGLE POST PAGE
   ======================================== */

.single-post {
  background: #fff;
  border: none;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.single-post .entry-header {
  padding: 0;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 1.25rem;
}

.single-post .entry-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.single-post .entry-meta {
  border-bottom: none;
  padding-bottom: 0;
}

.single-post .entry-thumbnail {
  margin: 1.5rem 0;
  border-radius: 12px;
}

.single-post .entry-content {
  padding: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
}

.single-post .entry-content p {
  margin-bottom: 0.85rem;
}

.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--brand-dark);
}

.single-post .entry-footer {
  padding: 1.5rem 0 0;
  margin-top: 1.5rem;
  border-top: 2px solid #f0f0f0;
}

/* Tags */
.single-post .tags {
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.single-post .tags a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  color: #666;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.4rem;
  margin-bottom: 0.4rem;
  transition: all 0.2s ease;
}

.single-post .tags a:hover {
  background: var(--brand-mid);
  color: #fff;
  border-color: var(--brand-mid);
  transform: translateY(-2px);
}

/* ========================================
   POST NAVIGATION (Hide category boxes)
   ======================================== */

.post-navigation {
  display: none !important;
}

/* ========================================
   PAGINATION
   ======================================== */

.pagination {
  margin-top: 2rem;
  text-align: center;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination .current,
.pagination .dots {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.85rem;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--brand-mid);
  color: #fff;
  border-color: var(--brand-mid);
  transform: translateY(-2px);
}

.pagination .current {
  background: var(--brand-mid);
  color: #fff;
  border-color: var(--brand-mid);
}

.pagination .dots {
  border: none;
  background: transparent;
}

/* ========================================
   SIDEBAR
   ======================================== */

.blog-sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-widget {
  background: linear-gradient(135deg, #fff 0%, #fefaf5 100%);
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.sidebar-widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--brand-dark);
  border-bottom: 2px solid var(--brand-accent);
  padding-bottom: 0.4rem;
  font-weight: 700;
}

/* Search Widget */
.widget-search .search-form {
  display: flex;
  gap: 0.5rem;
}

.widget-search .search-field {
  flex: 1;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
}

.widget-search .search-field:focus {
  outline: none;
  border-color: var(--brand-mid);
  box-shadow: 0 0 0 3px rgba(154, 111, 58, 0.1);
}

.widget-search .search-submit {
  padding: 0.45rem 0.85rem;
  background: var(--brand-mid);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.widget-search .search-submit:hover {
  background: var(--brand-dark);
}

/* Sidebar Lists */
.sidebar-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-widget ul li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
  line-height: 1.4;
}

.sidebar-widget ul li:last-child {
  border-bottom: none;
}

.sidebar-widget ul li a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.sidebar-widget ul li a:hover {
  color: var(--brand-mid);
}

/* Post counts */
.sidebar-widget ul li a .count,
.sidebar-widget ul li .count,
.sidebar-widget .cat-item a {
  font-size: 0.75rem;
  color: var(--muted);
  background: #f5f5f5;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  margin-left: auto;
}

/* Recent Posts - dates */
.widget-recent .post-date {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Tags Cloud */
.widget-tags .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.widget-tags .tag-cloud a {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem !important;
  transition: all 0.2s;
}

.widget-tags .tag-cloud a:hover {
  background: var(--brand-mid);
  color: #fff;
  border-color: var(--brand-mid);
}

/* ========================================
   COMMENTS SECTION
   ======================================== */

.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}

.comments-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.comments-title::before {
  content: "💬";
  font-size: 1.3rem;
}

/* Comment List */
.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.comment-list .comment {
  margin-bottom: 1.5rem;
  padding: 0;
  background: linear-gradient(135deg, #fff 0%, #fefaf5 100%);
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.comment-list .comment:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-accent);
}

/* Nested Comments */
.comment-list .children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1rem;
  position: relative;
}

.comment-list .children::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 2rem;
  width: 2px;
  background: linear-gradient(to bottom, var(--brand-accent), transparent);
}

/* Comment Body */
.comment-body {
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  align-items: start;
}

.comment-author .avatar {
  grid-column: 1;
  grid-row: 1 / span 4;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  border: 2px solid var(--brand-accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-author {
  grid-column: 2;
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
}

.comment-author .fn {
  color: var(--brand-dark);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.comment-author .says {
  display: none;
}

.comment-author .bypostauthor .fn::after {
  content: "✓ Author";
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: var(--brand-mid);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  vertical-align: middle;
}

.comment-metadata {
  grid-column: 2;
  font-size: 0.8rem;
  color: #999;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-metadata::before {
  content: "🕐";
  font-size: 0.9em;
}

.comment-metadata a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s;
}

.comment-metadata a:hover {
  color: var(--brand-mid);
}

.comment-content {
  grid-column: 2;
  line-height: 1.6;
  color: #444;
  font-size: 0.925rem;
}

.comment-content p {
  margin: 0 0 0.75rem;
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-awaiting-moderation {
  grid-column: 2;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
  border: 1px solid #ffc107;
  border-radius: 8px;
  color: #856404;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comment-awaiting-moderation::before {
  content: "⏳";
}

/* Reply Button */
.reply {
  grid-column: 2;
  margin-top: 0.75rem;
}

.reply a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: transparent;
  border: 2px solid var(--brand-accent);
  border-radius: 8px;
  color: var(--brand-mid);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.reply a::before {
  content: "↩️";
  font-size: 0.85em;
}

.reply a:hover {
  background: var(--brand-mid);
  color: #fff;
  border-color: var(--brand-mid);
  transform: translateX(4px);
}

/* Comment Navigation */
.comment-navigation {
  display: flex;
  justify-content: space-between;
  margin: 2.5rem 0;
  padding: 1.25rem 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

.comment-navigation a {
  color: var(--brand-mid);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.comment-navigation a:hover {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

/* No Comments */
.no-comments {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  border-radius: 16px;
  text-align: center;
  color: #888;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ========================================
   COMMENT FORM
   ======================================== */

.comment-respond {
  margin-top: 2rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, #fff 0%, #fefaf5 100%);
  border: 2px solid var(--brand-accent);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.comment-reply-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  color: var(--brand-mid);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.comment-reply-title::before {
  content: "✍️";
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.comment-reply-title small {
  font-size: 0.85rem;
  font-weight: 600;
}

.comment-reply-title small a {
  color: var(--brand-mid);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.comment-reply-title small a:hover {
  background: var(--brand-accent);
  color: var(--brand-dark);
}

/* Form Fields */
.comment-form p {
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--brand-dark);
  font-size: 0.85rem;
  letter-spacing: -0.01em;
}

.comment-form .required {
  color: #e74c3c;
  margin-left: 0.15rem;
}

/* Input Fields */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  max-width: 320px;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--brand-accent);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #fffbf7;
  transition: all 0.3s ease;
}

.comment-form textarea {
  max-width: 550px;
  width: 100%;
  min-height: 100px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--brand-accent);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fffbf7;
  transition: all 0.3s ease;
  resize: vertical;
  line-height: 1.6;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--brand-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(154, 111, 58, 0.08);
}

/* Submit Button */
.form-submit {
  margin-top: 1.25rem;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-mid) 0%, #b8874a 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(154, 111, 58, 0.2);
}

.comment-form .submit::after {
  content: "→";
  transition: transform 0.3s ease;
}

.comment-form .submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(154, 111, 58, 0.3);
}

.comment-form .submit:hover::after {
  transform: translateX(4px);
}

.comment-form .submit:active {
  transform: translateY(0);
}

/* Form Notes */
.comment-notes,
.form-allowed-tags {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
  padding: 0.85rem;
  background: var(--brand-accent);
  border-left: 3px solid var(--brand-mid);
  border-radius: 6px;
  line-height: 1.6;
}

.logged-in-as {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--brand-accent);
  border-radius: 10px;
  color: var(--brand-dark);
}

.logged-in-as a {
  color: var(--brand-mid);
  text-decoration: none;
  font-weight: 600;
}

.logged-in-as a:hover {
  text-decoration: underline;
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 10px;
}

.comment-form-cookies-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  cursor: pointer;
  accent-color: var(--brand-mid);
}

.comment-form-cookies-consent label {
  font-weight: 400;
  margin-bottom: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

/* ========================================
   CREAMY YELLOW NOTICE BARS
   ======================================== */

/* Change all notice bars to creamy yellow */
.logged-in-as, 
.comment-notes, 
.form-allowed-tags, 
.comment-form-cookies-consent, 
.notice, 
.notice-warning, 
.notice-info, 
.comment-awaiting-moderation {
  background: var(--surface-alt) !important;
}

/* ========================================
   COMPACT FORM LAYOUT - Tighter Spacing
   ======================================== */

/* Reduce spacing between form fields */
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  margin-bottom: 0.75rem !important;
}

/* Make input boxes slightly smaller */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
  max-width: 280px !important;
  padding: 0.5rem 0.65rem !important;
  font-size: 0.875rem !important;
}

/* Make textarea smaller too */
.comment-form textarea {
  max-width: 500px !important;
  min-height: 90px !important;
  padding: 0.6rem 0.75rem !important;
  font-size: 0.9rem !important;
}
/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .blog-sidebar {
    position: static;
  }
  
  .entry-title {
    font-size: 1.4rem;
  }
  
  .single-post .entry-title {
    font-size: 1.75rem;
  }
  
  .single-post {
    padding: 1.5rem;
  }
}

@media (max-width: 700px) {
  .comment-list .children {
    padding-left: 1.5rem;
  }
  
  .comment-list .children::before {
    left: 0.75rem;
  }
  
  .comment-body {
    grid-template-columns: 45px 1fr;
    gap: 1rem;
  }
  
  .comment-author .avatar {
    width: 45px;
    height: 45px;
  }
  
  .comment-navigation {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  .blog-post {
    border-radius: 10px;
  }
  
  .entry-header {
    padding: 1.25rem 1.25rem 0;
  }
  
  .entry-thumbnail {
    margin: 0.75rem 1.25rem;
  }
  
  .entry-content {
    padding: 0 1.25rem;
  }
  
  .entry-footer {
    padding: 1rem 1.25rem 1.25rem;
  }
  
  .entry-title {
    font-size: 1.3rem;
  }
  
  .single-post {
    padding: 1.25rem;
  }
  
  .single-post .entry-title {
    font-size: 1.5rem;
  }
  
  .entry-footer .btn.subtle {
    width: 100%;
    justify-content: center;
  }
  
  .comment-form input[type="text"],
  .comment-form input[type="email"],
  .comment-form input[type="url"],
  .comment-form textarea {
    max-width: 100%;
  }
  
  /* Stack Name and Email vertically on mobile */
  .comment-form-author,
  .comment-form-email {
    display: block;
    width: 100%;
    margin-right: 0;
  }
  
  .comment-respond {
    padding: 1.25rem;
  }
  
  .comment-form .submit {
    width: 100%;
    justify-content: center;
  }
  
  .pagination a,
  .pagination .current {
    min-width: 38px;
    height: 38px;
    padding: 0 0.75rem;
  }
}

@media (max-width: 500px) {
  .comments-area {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
  }
  
  .comment-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .comment-author .avatar {
    grid-column: 1;
    grid-row: 1;
    margin: 0 auto 1rem;
  }
  
  .comment-author,
  .comment-metadata,
  .comment-content,
  .reply {
    grid-column: 1;
  }
  
  .comment-reply-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}