/**
 * Blog Node Display Styling
 * Matches legacy Drupal 7 blog post layout
 * Note: Drupal 11 uses node--type-blog class
 */

/* Blog article container */
article.node--type-blog {
  background: #fff;
}

article.node--type-blog.node-full {
  padding: 0;
}

/* Featured image */
article.node--type-blog .field-name-field-featured-image {
  margin-bottom: 15px;
}

article.node--type-blog .field-name-field-featured-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Submitted date - styled like legacy */
article.node--type-blog .submitted-by {
  display: block;
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Body content */
article.node--type-blog .field-name-body {
  margin-bottom: 30px;
}

article.node--type-blog .field-name-body p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 1em;
}

/* Author field */
article.node--type-blog .field-name-field-author {
  margin: 20px 0;
  padding: 15px;
  background: #f8f8f8;
  border-left: 3px solid #0066cc;
}

article.node--type-blog .field-name-field-author .field-label {
  font-weight: bold;
  margin-right: 5px;
}

/* HIDE UNWANTED ELEMENTS - CiviCRM profile, chapter info, submitted info */
article.node--type-blog footer.node__meta {
  display: none !important;
}

article.node--type-blog .node__submitted {
  display: none !important;
}

/* Hide chapter/group info */
article.node--type-blog .field-name-og-user-node {
  display: none !important;
}

/* Hide CiviCRM profile data (Member Information section) */
article.node--type-blog .crm-container,
article.node--type-blog .crm-profile-name-name_and_address {
  display: none !important;
}

/* Hide any profile ID and UF Group sections */
article.node--type-blog .profile-id-section,
article.node--type-blog .uf-group-created-date-section {
  display: none !important;
}

/* Hide masquerade links */
article.node--type-blog a[href*="masquerade"] {
  display: none !important;
}

/* Comments section styling */
article.node--type-blog #comments {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e0e0e0;
}

article.node--type-blog #comments h2.title {
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

/* Individual comment styling */
article.node--type-blog .comment {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

article.node--type-blog .comment .comment-arrow {
  display: none;
}

article.node--type-blog .comment .submitted-by {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
}

article.node--type-blog .comment .comment-permalink {
  margin-top: 10px;
}

article.node--type-blog .comment .comment-permalink a {
  font-size: 12px;
  color: #0066cc;
}

/* Comment form */
article.node--type-blog .comment-form {
  margin-top: 30px;
}

article.node--type-blog .comment-form h2.title {
  font-size: 18px;
  margin-bottom: 15px;
}

article.node--type-blog .comment-form .form-item {
  margin-bottom: 15px;
}

article.node--type-blog .comment-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

article.node--type-blog .comment-form input[type="text"],
article.node--type-blog .comment-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

article.node--type-blog .comment-form textarea {
  min-height: 150px;
}

article.node--type-blog .comment-form .form-submit {
  background: #0066cc;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 3px;
}

article.node--type-blog .comment-form .form-submit:hover {
  background: #004499;
}

/* Comment links */
article.node--type-blog .comment .links {
  margin-top: 10px;
}

article.node--type-blog .comment .links li {
  display: inline-block;
  margin-right: 10px;
}

article.node--type-blog .comment .links a {
  font-size: 12px;
  color: #0066cc;
}

/* Pager for comments */
article.node--type-blog .pager {
  margin: 20px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

article.node--type-blog .pager li {
  display: inline-block;
}

article.node--type-blog .pager a,
article.node--type-blog .pager .pager-current {
  display: inline-block;
  padding: 5px 10px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 3px;
}

article.node--type-blog .pager a:hover {
  background: #f0f0f0;
}

article.node--type-blog .pager .pager-current {
  background: #0066cc;
  color: #fff;
  border-color: #0066cc;
}
