/* =============================================
   BLOG HERO — wider, multi-paragraph description
   ============================================= */

.blog-hero .blog-hero-desc {
  max-width: 740px;
  margin: 0 auto 0.85rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(240, 230, 255, 0.55);
}

.blog-hero .blog-hero-sign-off {
  margin-top: 1.25rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--warm-peach);
  opacity: 0.75;
}


/* =============================================
   BLOG LISTING PAGE
   ============================================= */

/* Search bar */
.blog-search-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2.5rem 2rem;
}

.blog-search-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.85rem 1.25rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.blog-search-inner:focus-within {
  border-color: rgba(255, 59, 142, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 59, 142, 0.07);
}

.search-icon {
  color: rgba(240, 230, 255, 0.35);
  flex-shrink: 0;
}

.blog-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.95rem;
  color: var(--soft-white);
  min-width: 0;
}

.blog-search-input::placeholder {
  color: rgba(240, 230, 255, 0.3);
}

.search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(240, 230, 255, 0.5);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.search-clear:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--soft-white);
}

/* Topic filter pills */
.blog-filters {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0 2.5rem 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.filter-btn {
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(240, 230, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.45rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.filter-btn:hover {
  color: rgba(240, 230, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
}

.filter-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 59, 142, 0.18), rgba(255, 159, 28, 0.12));
  border-color: rgba(255, 59, 142, 0.4);
}

/* Post list */
.blog-list-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}

/* Individual post item */
.post-item {
  display: block;
  text-decoration: none;
  position: relative;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.post-item:hover {
  transform: translateX(5px);
  border-color: rgba(255, 59, 142, 0.28);
  background: rgba(255, 59, 142, 0.04);
  box-shadow: 0 4px 32px rgba(255, 59, 142, 0.07), -5px 0 0 0 transparent;
}

/* Left accent bar — slides in on hover */
.post-item-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--vivid-pink), var(--hot-orange));
  border-radius: 3px 0 0 3px;
  opacity: 0;
  transform: scaleY(0.4);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.post-item:hover .post-item-accent {
  opacity: 1;
  transform: scaleY(1);
}

.post-item-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 1.75rem 1.4rem 2rem;
}

/* Left: category + title + tags */
.post-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.post-item-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tropical-teal);
}

.post-item-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.15rem;
  line-height: 1.35;
  color: rgba(240, 230, 255, 0.85);
  transition: color 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-item:hover .post-item-title {
  color: #fff;
}

.post-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.post-item-tag {
  font-size: 0.65rem;
  color: var(--tropical-teal);
  background: rgba(0, 245, 212, 0.07);
  border: 1px solid rgba(0, 245, 212, 0.18);
  padding: 0.1rem 0.55rem;
  border-radius: 50px;
}

/* Right: date + arrow */
.post-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.post-item-date {
  font-size: 0.78rem;
  color: rgba(240, 230, 255, 0.3);
  white-space: nowrap;
}

.post-item-arrow {
  font-size: 1.1rem;
  color: var(--vivid-pink);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.post-item:hover .post-item-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* No results state */
.blog-no-results {
  display: none;
  text-align: center;
  padding: 5rem 2rem;
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.blog-no-results p {
  color: rgba(240, 230, 255, 0.45);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.blog-no-results strong {
  color: rgba(240, 230, 255, 0.7);
}

.no-results-hint {
  font-size: 0.85rem !important;
  color: rgba(240, 230, 255, 0.25) !important;
}


/* =============================================
   SINGLE POST PAGE
   ============================================= */

.post-hero {
  text-align: center;
  padding: 9rem 2.5rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}

.post-hero-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.post-hero-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--tropical-teal);
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.2);
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
}

.post-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 200;
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.post-hero h1 .highlight {
  font-weight: 600;
  background: linear-gradient(135deg, var(--vivid-pink), var(--hot-orange), #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(240, 230, 255, 0.4);
}

.post-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(240, 230, 255, 0.2);
}

/* Post featured image */
.post-featured-image {
  max-width: 860px;
  margin: 0 auto 3rem;
  padding: 0 2.5rem;
  border-radius: 1.25rem;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  border-radius: 1.25rem;
  display: block;
}

/* Post body */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}

.post-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(240, 230, 255, 0.82);
  margin-bottom: 1.75rem;
}

.post-body h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--soft-white);
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.post-body h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--soft-white);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.post-body a {
  color: var(--tropical-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.post-body a:hover { color: #fff; }

.post-body ul,
.post-body ol {
  color: rgba(240, 230, 255, 0.82);
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
  line-height: 1.85;
}

.post-body li { margin-bottom: 0.5rem; }

.post-body blockquote {
  border-left: 3px solid var(--vivid-pink);
  margin: 2.5rem 0;
  padding: 1rem 1.5rem;
  background: rgba(255, 59, 142, 0.05);
  border-radius: 0 0.75rem 0.75rem 0;
  font-style: italic;
  color: rgba(240, 230, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1.7;
}

.post-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
  font-size: 0.88em;
  font-family: 'Courier New', monospace;
  color: var(--tropical-teal);
}

.post-body pre {
  background: rgba(15, 5, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.75rem;
  padding: 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.75rem;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 0.9rem;
}

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.post-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(240, 230, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
}

/* Back to blog link */
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(240, 230, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s ease;
  margin-bottom: 2rem;
}

.back-to-blog:hover { color: var(--soft-white); }

/* Post prev/next nav */
.post-nav {
  max-width: 720px;
  margin: 0 auto 4rem;
  padding: 0 2.5rem;
  display: flex;
  gap: 1rem;
}

.post-nav-link {
  flex: 1;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.post-nav-link:hover {
  border-color: rgba(255, 59, 142, 0.28);
  background: rgba(255, 59, 142, 0.04);
}

.post-nav-link.next { text-align: right; }

.post-nav-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(240, 230, 255, 0.3);
  margin-bottom: 0.4rem;
}

.post-nav-title {
  font-size: 0.9rem;
  color: rgba(240, 230, 255, 0.7);
  line-height: 1.4;
}


/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  .blog-search-wrap {
    padding: 0 1.5rem 1.5rem;
  }

  .blog-filters {
    padding: 0 1.5rem 2rem;
  }

  .blog-list-wrap {
    padding: 0 1.5rem 4rem;
  }

  .post-item-inner {
    padding: 1.2rem 1.25rem 1.2rem 1.5rem;
    gap: 1rem;
  }

  .post-item-title {
    font-size: 1rem;
    white-space: normal;
  }

  .post-hero {
    padding: 8rem 1.5rem 2rem;
  }

  .post-hero h1 {
    font-size: 2.2rem;
  }

  .post-meta {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .post-body {
    padding: 0 1.5rem 4rem;
  }

  .post-nav {
    flex-direction: column;
    padding: 0 1.5rem;
  }

  .post-nav-link.next { text-align: left; }
}
