
/* Universal Latest Posts – Post Blocks with Thumbnails, Titles, Date + Author + Dark Mode */

.ulp-wrapper {
  padding: 20px;
  border-radius: 10px;
  margin: 30px auto;
  max-width: 720px;
  font-family: system-ui, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  background-color: #fefefe;
  color: #222;
}

.ulp-heading {
  font-size: 1.75rem;
  margin-bottom: 16px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
  color: #111;
}

.ulp-post {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  transition: background 0.2s ease;
}

.ulp-post img {
  width: 100%;
  height: auto;
  display: block;
}

.ulp-post-content {
  padding: 15px;
}

.ulp-post-title {
  font-size: 1.1rem;
  margin-bottom: 6px;
  color: #0056b3;
  text-decoration: none;
  display: block;
}

.ulp-post-title:hover {
  text-decoration: underline;
}

.ulp-meta {
  font-size: 0.9rem;
  color: #666;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .ulp-wrapper {
    background-color: #1c1c1e;
    color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
  }

  .ulp-heading {
    color: #ffffff;
    border-color: #444;
  }

  .ulp-post {
    background-color: #2a2a2e;
  }

  .ulp-post-title {
    color: #4ea3ff;
  }

  .ulp-meta {
    color: #bbb;
  }
}

@media (max-width: 600px) {
  .ulp-heading {
    font-size: 1.4rem;
  }

  .ulp-post-title {
    font-size: 1rem;
  }

  .ulp-meta {
    font-size: 0.85rem;
  }
}
