/* ═══════════════════════════════════════════════════════════
   POSTS.CSS — Opstarks Green Spa Theme
   Clean, light, easy on the eyes with a natural green touch
═══════════════════════════════════════════════════════════ */

/* ── Local variables ── */
:root {
  --p-green:        #3d6b4f;
  --p-green-mid:    #5a8c6a;
  --p-green-pale:   #f0f7f2;
  --p-green-border: #cce3d4;
  --p-accent:       #b5e153;
  --p-dark:         #1a2e1f;
  --p-text:         #4a5a4e;
  --p-muted:        #7a9080;
  --p-white:        #ffffff;
  --p-radius:       18px;
  --p-radius-sm:    10px;
  --p-shadow:       0 2px 18px rgba(27, 67, 50, 0.07);
  --p-shadow-hover: 0 10px 44px rgba(27, 67, 50, 0.15);
  --p-transition:   all 0.3s ease;
}

/* ══════════════════════════════════════════════════════════
   PAGE WRAPPER & CONTAINER
══════════════════════════════════════════════════════════ */
.posts-page-bg {
  background: linear-gradient(160deg, #eef7f1 0%, #f8fdf9 55%, #ffffff 100%);
  padding: 64px 0 96px;
}

.posts-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ══════════════════════════════════════════════════════════
   POST CARD
══════════════════════════════════════════════════════════ */
.post {
  display: flex;
  border-radius: var(--p-radius);
  overflow: hidden;
  transition: var(--p-transition);
  max-width: 1200px;
  position: relative;
}

/* Left accent bar */
.post::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.post:hover {
  transform: translateY(-4px);
}

.post:hover::before {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════
   THUMBNAIL
══════════════════════════════════════════════════════════ */
.post-thumb {
  width: 300px;
  min-width: 300px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.post-thumb > img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
  box-shadow: none;
  border-radius: 0;
}

.post:hover .post-thumb > img {
  transform: scale(1.07);
}

/* soft green tint on hover */
.post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(61, 107, 79, 0.35) 0%,
    rgba(181, 225, 83, 0.12) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.post:hover .post-thumb::after {
  opacity: 1;
}

/* ── Icon thumbnail placeholder ── */
.thumb-icon {
  width: 300px;
  min-width: 300px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  transition: transform 0.45s ease;
  position: relative;
}

/* subtle leaf pattern overlay */
.thumb-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(181,225,83,0.18) 0%, transparent 60%);
}

.post:hover .thumb-icon {
  transform: scale(1.04);
}

/* ══════════════════════════════════════════════════════════
   INSIDE ARTICLE
══════════════════════════════════════════════════════════ */
.post .inside-article {
  padding: 32px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

/* ══════════════════════════════════════════════════════════
   ENTRY HEADER
══════════════════════════════════════════════════════════ */
.post .entry-header {
  text-align: start;
  margin: 0 0 18px 0;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--p-green-border);
}

/* ── Category pills ── */
.cat-links,
.tags-links,
.nav-previous,
.nav-next,
.next {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cat-links a,
.tags-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(61, 107, 79, 0.09);
  color: var(--p-green);
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid rgba(61, 107, 79, 0.2);
  transition: var(--p-transition);
}

.cat-links a:hover,
.tags-links a:hover {
  background: var(--p-green);
  color: var(--p-white);
  border-color: var(--p-green);
  transform: translateY(-1px);
}

/* ── Post title ── */
.post .entry-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--p-dark);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin: 0 0 2px 0;
}

.post .entry-title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--p-green), var(--p-green));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.35s ease, color 0.25s ease;
  padding-bottom: 3px;
}

.post .entry-title a:hover {
  background-size: 100% 2px;
  color: var(--p-green);
}

/* ── Entry meta (date + author) ── */
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--p-green-border);
  color: var(--p-muted);
  font-size: 0.8rem;
}

.entry-meta > a {
  font-weight: 600;
  text-decoration: none;
  color: var(--p-green);
  transition: color 0.2s;
}

.entry-meta > a:hover {
  color: var(--p-green-mid);
}

/* ── Date ── */
.post .entry-date.published {
  font-size: 0.76rem;
  color: var(--p-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post .entry-date.published::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--p-accent);
  display: inline-block;
  flex-shrink: 0;
}

/* ── Author separator dot ── */
.entry-meta > span {
  color: var(--p-muted);
  font-size: 0.78rem;
}

/* ══════════════════════════════════════════════════════════
   HEADINGS INSIDE POST
══════════════════════════════════════════════════════════ */
.post h1,
.post h2,
.post h3,
.post h4,
.post h5,
.post h6 {
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 0.45em;
  color: var(--p-dark);
}

/* ══════════════════════════════════════════════════════════
   ENTRY CONTENT
══════════════════════════════════════════════════════════ */
.post .entry-content p {
  color: var(--p-text);
  font-size: 0.875rem;
  line-height: 1.8;
  margin-bottom: 10px;
}

.post .entry-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
  padding: 0;
}

.post .entry-content ul li {
  font-size: 0.845rem;
  color: var(--p-text);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.55;
}

.post .entry-content ul li i {
  color: var(--p-green);
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 0.7rem;
}

/* ══════════════════════════════════════════════════════════
   TAGS
══════════════════════════════════════════════════════════ */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.post-featured-image > img{
    height: 300px;
    max-height: 300px;
    width: 500px;
    border-radius: 10px;
    margin: auto;
}
.post-tag {
  font-size: 0.68rem;
  background: var(--p-green-pale);
  color: var(--p-green);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--p-green-border);
  transition: var(--p-transition);
  cursor: pointer;
}

.post-tag:hover {
  color: var(--p-white);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   READ MORE BUTTON
══════════════════════════════════════════════════════════ */
.read-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 24px;
  background: var(--p-green);
  color: var(--p-white);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--p-green);
  transition: var(--p-transition);
  align-self: flex-start;
  letter-spacing: 0.02em;
}

.read-btn:hover {
  background: transparent;
  color: var(--p-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(61, 107, 79, 0.2);
}

.read-btn i {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.read-btn:hover i {
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════
   FEATURED BLOG IMAGE (standalone)
══════════════════════════════════════════════════════════ */
.featured-blog-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--p-radius);
  display: block;
  box-shadow: var(--p-shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-blog-image:hover {
  transform: scale(1.015);
  box-shadow: var(--p-shadow-hover);
}

/* ══════════════════════════════════════════════════════════
   FOOTER SNS ICONS
══════════════════════════════════════════════════════════ */
.footer-sns-icons {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  margin: auto;
}

.footer-sns-icons > a > img {
  width: 46px;
  height: 46px;
  filter: invert(100%) brightness(160%);
  transition: filter 0.25s ease, transform 0.2s ease;
}

.footer-sns-icons > a:hover > img {
  filter: invert(72%) sepia(60%) saturate(400%) hue-rotate(60deg) brightness(110%);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════════
   WIDGET AREA / SIDEBAR
══════════════════════════════════════════════════════════ */
.widget-area {
  width: 100%;
  max-width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget-area > * {
  background: var(--p-white);
  padding: 24px;
  border-radius: var(--p-radius);
  border: 1.5px solid var(--p-green-border);
  box-shadow: var(--p-shadow);
  transition: var(--p-transition);
}

.widget-area > *:hover {
  box-shadow: var(--p-shadow-hover);
  border-color: var(--p-green);
}

.widget-area .wp-block-heading {
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--p-green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 12px;
}

.widget-area .wp-block-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  background: linear-gradient(90deg, var(--p-green), var(--p-accent));
  border-radius: 4px;
}

.widget-area li {
  padding: 10px 0;
  font-size: 0.85rem;
  color: var(--p-text);
  border-bottom: 1px solid var(--p-green-border);
  list-style: none;
  transition: var(--p-transition);
  cursor: pointer;
}

.widget-area li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.widget-area li:hover {
  color: var(--p-green);
  padding-left: 7px;
}

/* ── Search block ── */
.widget-area .wp-block-search {
  margin: 0;
}

.widget-area .wp-block-search__label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--p-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.widget-area .wp-block-search__inside-wrapper {
  display: flex;
  gap: 8px;
}

.widget-area .wp-block-search__input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--p-green-border);
  border-radius: var(--p-radius-sm);
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--p-green-pale);
  color: var(--p-dark);
  transition: var(--p-transition);
  outline: none;
}

.widget-area .wp-block-search__input::placeholder {
  color: var(--p-muted);
}

.widget-area .wp-block-search__input:focus {
  border-color: var(--p-green);
  box-shadow: 0 0 0 3px rgba(61, 107, 79, 0.1);
  background: var(--p-white);
}

.widget-area .wp-block-search__button {
  padding: 10px 18px;
  background: var(--p-green);
  color: var(--p-white);
  border: none;
  border-radius: var(--p-radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--p-transition);
  white-space: nowrap;
}

.widget-area .wp-block-search__button:hover {
  background: var(--p-green-mid);
  transform: translateY(-1px);
}

.widget-area .wp-block-search__button:active {
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .post {
    flex-direction: column;
  }

  .post-thumb,
  .thumb-icon {
    width: 100%;
    min-width: unset;
    min-height: 220px;
    height: 220px;
  }

  .post-thumb > img {
    height: 220px;
    min-height: unset;
  }

  .post .inside-article {
    padding: 24px;
  }

  .post .entry-title {
    font-size: 1.2rem;
  }

  .widget-area {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .post .inside-article {
    padding: 18px 16px;
  }

  .post .entry-title {
    font-size: 1.05rem;
  }

  .posts-page-bg {
    padding: 40px 0 56px;
  }
}
