/* Single Post Page Styles */

.site-main {
  padding: 1rem 0 4rem;
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.content-layout.has-sidebar {
  grid-template-columns: 1fr 320px;
}

@media (max-width: 1024px) {
  .content-layout.has-sidebar {
    grid-template-columns: 1fr;
  }
}

/* Single Frase Card */
.single-frase-card {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
}

.single-frase-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.single-frase-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-frase-card__body {
  padding: 2rem;
}

/* Quote - Fixed positioning */
.single-frase-card__quote {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.single-frase-card__quote .quote-mark {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 3.5rem;
  font-family: Georgia, serif;
  color: var(--color-primary);
  opacity: 0.5;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.single-frase-card__quote .frase-text {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
  position: relative;
  z-index: 1;
}

.single-frase-card__quote .frase-author {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* Stats */
.single-frase-card__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.stat-item svg {
  opacity: 0.7;
}

/* Actions */
.single-frase-card__actions {
  margin-bottom: 1.5rem;
}

.actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Share Section */
.single-frase-card__share {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.share-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.whatsapp:hover {
  background: #1da851;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.facebook:hover {
  background: #0d65d9;
}

.share-btn.twitter {
  background: #000;
  color: white;
}

.share-btn.twitter:hover {
  background: #333;
}

.share-btn.telegram {
  background: #0088cc;
  color: white;
}

.share-btn.telegram:hover {
  background: #006da8;
}

.share-btn.copy-link {
  background: var(--color-surface-hover, var(--color-background-alt));
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.share-btn.copy-link:hover,
.share-btn.copy-link.copied {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Meta Section */
.single-frase-meta {
  background: var(--color-surface);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.meta-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--color-primary);
  color: white;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.category-tag:hover {
  background: var(--color-primary-dark);
}

.tag-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  background: var(--color-background-alt);
  color: var(--color-text-muted);
  border-radius: 6px;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tag-badge:hover {
  background: var(--color-primary);
  color: white;
}

/* Related Frases */
.related-section {
  margin-bottom: 2rem;
}

.related-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
}

.related-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.related-title svg {
  color: var(--color-primary);
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.view-all-link:hover {
  gap: 0.5rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}

.related-card {
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--color-border);
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.related-card.has-thumb {
  display: grid;
  grid-template-columns: 100px 1fr;
}

.related-card__thumb {
  width: 100px;
  height: 100%;
  min-height: 100px;
  overflow: hidden;
}

.related-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card__body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.related-card__text {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.related-card__text a {
  color: inherit;
  text-decoration: none;
}

.related-card__text a:hover {
  color: var(--color-primary);
}

.related-card__author {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.related-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.related-card__meta .likes {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Comments Section */
.comments-section {
  background: var(--color-surface);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
}

.comments-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-primary);
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.comments-title svg {
  color: var(--color-primary);
}

.comments-list {
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}

.comment-item {
  margin-bottom: 1.5rem;
  list-style: none;
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comment-body {
  display: flex;
  gap: 1rem;
}

.comment-avatar .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.comment-content {
  flex: 1;
  background: var(--color-background-alt);
  border-radius: 12px;
  padding: 1rem;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.comment-author {
  font-weight: 600;
  color: var(--color-text);
}

.comment-author a {
  color: inherit;
  text-decoration: none;
}

.comment-author a:hover {
  color: var(--color-primary);
}

.comment-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.comment-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
}

.comment-text p {
  margin: 0;
}

.comment-pending {
  font-size: 0.8125rem;
  color: #f59e0b;
  font-style: italic;
  margin-top: 0.5rem;
}

.comment-footer {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.comment-footer a,
.comment-footer .reply {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.comment-footer a:hover {
  color: var(--color-primary);
}

/* Comment Form */
.comment-form-wrapper {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.comment-form .comment-reply-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.comment-form .logged-in-as {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.comment-form .logged-in-as a {
  color: var(--color-primary);
  text-decoration: none;
}

.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-comment {
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--color-bg, var(--color-background));
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

.comment-form .form-submit {
  margin-top: 1rem;
}

.comment-form .submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--color-primary);
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: background 0.2s ease;
}

.comment-form .submit:hover {
  background: var(--color-primary-dark);
}

.comment-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.comment-nav a {
  color: var(--color-primary);
  text-decoration: none;
  font-size: 0.875rem;
}

.comments-closed {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Container Geral */
.pagination-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin: 3rem 0;
}

.pagination-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Links de Página */
.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Estado Ativo / Atual */
.page-link.is-current {
    background: #25D366; /* Cor verde do seu site */
    border-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.page-link:hover:not(.is-current) {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Ajuste específico para os ícones SVG */
.pagination-svg {
    display: block;
    color: currentColor; /* Faz o SVG herdar a cor do texto do link */
    pointer-events: none;
}

/* Estilo para reticências (...) caso existam */
.page-link.dots {
    border: none;
    background: transparent;
    cursor: default;
}
/* Ad Space */
.ad-space {
  margin: 2rem 0;
  text-align: center;
}

/* Toast Notification */
.fpw-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  font-size: 0.9375rem;
  color: var(--color-text);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.fpw-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fpw-toast--success {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.fpw-toast--error {
  border-color: #ef4444;
  color: #ef4444;
}

.fpw-toast--info {
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 767px) {
  .single-frase-card__body {
    padding: 1.5rem;
  }

  .single-frase-card__quote .frase-text {
    font-size: 1.25rem;
  }

  .single-frase-card__quote .quote-mark {
    font-size: 2.5rem;
  }

  .single-frase-card__stats {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .actions-group {
    justify-content: center;
  }

  .share-buttons {
    justify-content: center;
  }

  .share-btn span {
    display: none;
  }
}
