/**
 * Blog/News Manager Styling
 * Ferienscheune am Lilienstein - Blog posts with visual separation
 */

/* ===== Post Card Layout ===== */
.nm_post {
  background-color: #f7f7f0;
  border-radius: 15px;
  margin-bottom: 40px;
  padding: 18px 30px 25px 30px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid #c5c5a0;
  position: relative;
  overflow: hidden;
}

/* Decorative left accent bar */
.nm_post::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(to bottom, #abae7d, #c7d09d);
}

/* Last post has slightly different styling */
.nm_post:last-child {
  margin-bottom: 0;
}

/* ===== Post Title ===== */
.nm_post_title {
  font-family: 'Ubuntu', sans-serif;
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.4;
}

.nm_post_title a {
  color: #666600;
  text-decoration: none;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nm_post_title a:hover {
  color: #94942C;
  border-bottom-color: #94942C;
}

/* Post background subtle pattern to match theme */
.nm_post::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(169, 174, 125, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== Post Date ===== */
.nm_post_date {
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.9em;
  color: #666600;
  margin-top: 0;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #c5c5a0;
  font-style: italic;
  opacity: 0.85;
}

/* ===== Post Content ===== */
.nm_post_content {
  color: #666600;
  font-size: 1.05em;
  line-height: 1.8;
  text-align: justify;
}

.nm_post_content p {
  margin-bottom: 15px;
}

.nm_post_content p:last-child {
  margin-bottom: 0;
}

.nm_post_content a {
  color: #94942C;
  text-decoration: underline;
}

.nm_post_content a:hover {
  color: #ACAC3F;
  text-decoration: none;
}

/* ===== Post Tags ===== */
.nm_post_meta {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #c5c5a0;
  font-size: 0.85em;
  font-family: 'Ubuntu', sans-serif;
}

.nm_post_meta b {
  color: #666600;
  font-weight: bold;
}

.nm_post_meta a {
  color: #94942C;
  text-decoration: none;
  transition: color 0.2s;
}

.nm_post_meta a:hover {
  color: #ACAC3F;
  text-decoration: underline;
}

/* ===== Single Post Page ===== */
.nm_post_single {
  background-color: #f7f7f0;
  border-radius: 15px;
  padding: 18px 35px 30px 35px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid #c5c5a0;
  margin-bottom: 30px;
}

.nm_post_single .nm_post_title {
  font-size: 2em;
  margin-bottom: 15px;
}

.nm_post_single .nm_post_date {
  border-bottom: 2px solid #c7d09d;
}

.nm_post_single .nm_post_content {
  font-size: 1.1em;
  line-height: 1.9;
}

/* ===== Go Back Link ===== */
.nm_post_back {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #c5c5a0;
}

.nm_post_back a {
  color: #666600;
  text-decoration: none;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.95em;
  display: inline-block;
  transition: color 0.3s, transform 0.3s;
}

.nm_post_back a:hover {
  color: #94942C;
  transform: translateX(-5px);
}

/* ===== Pagination Navigation ===== */
.nm_page_nav {
  margin-top: 40px;
  text-align: center;
  padding: 20px 0;
  border-top: 2px solid #c5c5a0;
}

.nm_page_nav span,
.nm_page_nav a {
  display: inline-block;
  margin: 0 5px;
  padding: 10px 15px;
  border-radius: 8px;
  font-family: 'Ubuntu', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nm_page_nav a {
  background-color: #f4f5f6;
  color: #666600;
  border: 1px solid #ddd;
}

.nm_page_nav a:hover {
  background-color: #c7d09d;
  color: #fff;
  border-color: #c7d09d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nm_page_nav .current,
.nm_page_nav .nm_page_nav_item_current {
  background-color: #abae7d;
  color: #fff;
  font-weight: bold;
  border: 1px solid #abae7d;
}

/* ===== Post Images ===== */
.nm_post_image {
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nm_post_image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.nm_post_image:hover img {
  transform: scale(1.02);
}

/* ===== Read More Link ===== */
.nm_readmore a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 25px;
  background-color: #abae7d;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Ubuntu', sans-serif;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nm_readmore a:hover {
  background-color: #94942C;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== No Posts Message ===== */
p:contains('Keine Beiträge') {
  text-align: center;
  padding: 40px;
  font-size: 1.2em;
  color: #666600;
  font-style: italic;
}

/* ===== Responsive Design ===== */
@media (max-width: 1280px) {
  .nm_post {
    padding: 25px;
  }
  
  .nm_post_title {
    font-size: 1.4em;
  }
}

@media (max-width: 980px) {
  .nm_post {
    padding: 20px;
    margin-bottom: 30px;
  }
  
  .nm_post_title {
    font-size: 1.3em;
  }
  
  .nm_post_single .nm_post_title {
    font-size: 1.6em;
  }
}

@media (max-width: 750px) {
  .nm_post {
    padding: 15px;
  }
  
  .nm_post_title {
    font-size: 1.2em;
  }
  
  .nm_post_content {
    font-size: 1em;
    text-align: left;
  }
  
  .nm_page_nav a,
  .nm_page_nav span {
    padding: 8px 12px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .nm_post {
    padding: 12px;
    border-radius: 10px;
  }
  
  .nm_post::before {
    width: 4px;
  }
  
  .nm_post_title {
    font-size: 1.1em;
  }
  
  .nm_post_date {
    font-size: 0.85em;
  }
}
