/* =========================================================================
   Component: Blog Post (detail page)
   Covers: the article panel, the share button, and the "not found" state
   with fuzzy-matched suggestions.
   ========================================================================= */

.evox-post {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 2rem;
  border: 2px solid var(--evox-primary);
  border-radius: var(--evox-radius-lg);
  background-color: var(--evox-surface);
}
@media (min-width: 1280px) {
  .evox-post {
    padding: 4rem;
  }
}

.evox-post__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.evox-post__meta-text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  font-size: 1.1rem;
  color: var(--evox-text);
}
@media (min-width: 768px) {
  .evox-post__meta-text {
    flex-direction: row;
    gap: 0.25rem;
  }
}
.evox-post__meta-text .evox-post__author {
  font-weight: 300;
}

.evox-post__title {
  margin-top: 1.5rem;
  font-size: 1.875rem;
  color: var(--evox-primary);
}
@media (min-width: 992px) {
  .evox-post__title {
    font-size: 3rem;
  }
}

.evox-post__body {
  padding-inline: 0.5rem;
  font-size: 1.25rem;
  color: var(--evox-text);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* --- Share button --- */
.evox-share {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.evox-share__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.evox-share__btn:hover {
  transform: scale(1.2);
}
.evox-share__btn:active {
  transform: scale(0.75);
}
.evox-share__btn img {
  width: 1.75rem;
  height: 1.75rem;
}

.evox-share__toast {
  position: absolute;
  top: 0;
  right: -0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--evox-radius-pill);
  background-color: var(--evox-primary);
  color: var(--evox-text);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.evox-share__toast.is-visible {
  opacity: 1;
}

/* --- Not-found state --- */
.evox-not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  text-align: center;
}

.evox-not-found__suggestions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
}
.evox-not-found__suggestions a {
  color: var(--evox-primary);
}
.evox-not-found__suggestions a:hover {
  text-decoration: underline;
}

.evox-not-found__cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--evox-radius-pill);
  background-color: var(--evox-primary);
  color: var(--evox-text);
  font-weight: 600;
  transition: background-color 0.3s ease;
}
.evox-not-found__cta:hover,
.evox-not-found__cta:focus-visible {
  background-color: var(--evox-primary-hover);
  color: var(--evox-text);
}
