/**
 * The Porn Collection — main stylesheet
 * Ported from Next.js / Tailwind design tokens
 */

:root {
  --tpc-background: #ffffff;
  --tpc-foreground: #0f172a;
  --tpc-primary: #3b82f6;
  --tpc-primary-hover: #1e40af;
  --tpc-muted: #6b7280;
  --tpc-border: #e5e7eb;
  --tpc-card-bg: #ffffff;
  --tpc-radius: 0.5rem;
  --tpc-container: 64rem;
  --tpc-font: 'Inter', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.tpc-theme {
  margin: 0;
  font-family: var(--tpc-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tpc-foreground);
  background: var(--tpc-background);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--tpc-primary);
  text-decoration: none;
}

a:hover {
  color: var(--tpc-primary-hover);
}

/* Layout */
.tpc-container {
  width: 100%;
  max-width: var(--tpc-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.tpc-container--wide {
  max-width: 80rem;
}

.tpc-container--create-post {
  max-width: 72rem;
}

.tpc-page--create-post .tpc-page__header-space {
  padding-top: 4rem;
}

.tpc-page {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.tpc-page__header-space {
  padding-top: 4rem;
}

/* Top actions bar */
.tpc-top-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: min(100%, 28rem);
}

/* Buttons */
.tpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  line-height: 1.25;
}

.tpc-btn--ghost {
  background: transparent;
  color: var(--tpc-foreground);
  border-color: transparent;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
}

.tpc-btn--ghost:hover {
  background: #f3f4f6;
}

/* Icon-only buttons (Reddit, menu) */
.tpc-btn--icon {
  background: transparent;
  border: 1px solid var(--tpc-border);
  color: var(--tpc-foreground);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  flex-shrink: 0;
}

.tpc-btn--icon:hover {
  background: #f9fafb;
}

/* Text outline pill (Edit Post) */
.tpc-btn--pill-outline {
  background: transparent;
  border: 1px solid var(--tpc-border);
  color: var(--tpc-foreground);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  white-space: nowrap;
  width: auto;
  height: auto;
  min-height: 2.5rem;
  flex-shrink: 0;
}

.tpc-btn--pill-outline:hover {
  background: #f9fafb;
  color: var(--tpc-foreground);
}

.tpc-btn--cta {
  background: #f3f4f6;
  color: #1f2937;
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}

.tpc-btn--cta:hover {
  background: #e5e7eb;
  color: #111827;
}

.tpc-btn--primary {
  background: var(--tpc-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
}

.tpc-btn--primary:hover {
  background: var(--tpc-primary-hover);
  color: #fff;
}

.tpc-btn--destructive {
  background: #ef4444;
  color: #fff;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.tpc-btn--destructive:hover {
  background: #dc2626;
  color: #fff;
}

.tpc-btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Icons */
.tpc-icon-reddit {
  width: 1.5rem;
  height: 1.5rem;
  color: #ea580c;
}

.tpc-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Headings */
.tpc-page-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 2rem;
  line-height: 1.1;
}

.tpc-page-subtitle {
  font-size: 1.25rem;
  color: var(--tpc-muted);
  text-align: center;
  margin: -1rem 0 2rem;
}

/* Post card */
.tpc-post-card {
  display: flex;
  background: var(--tpc-card-bg);
  border-radius: var(--tpc-radius);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s;
  margin-bottom: 2rem;
}

.tpc-post-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.tpc-post-card__votes {
  flex-shrink: 0;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #f3f4f6;
}

.tpc-post-card__body {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

@media (min-width: 768px) {
  .tpc-post-card__body {
    flex-direction: row;
  }
}

.tpc-post-card__image-link {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .tpc-post-card__image-link {
    width: 40%;
  }
}

.tpc-post-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.tpc-post-card:hover .tpc-post-card__image {
  transform: scale(1.05);
}

.tpc-post-card__content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.tpc-post-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: inherit;
  text-decoration: none;
}

.tpc-post-card__title:hover {
  color: var(--tpc-primary);
}

.tpc-post-card__author {
  font-size: 0.875rem;
  color: var(--tpc-muted);
  margin: 0 0 0.75rem;
}

.tpc-post-card__excerpt {
  color: #374151;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpc-post-card__meta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--tpc-muted);
}

.tpc-post-card__meta-sep {
  margin: 0 0.25rem;
}

/* Pills */
.tpc-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.tpc-pill--category {
  background: #f3f4f6;
  color: #374151;
}

.tpc-pill--category:hover {
  background: #e5e7eb;
  color: #111827;
}

.tpc-pill--tag {
  background: #dbeafe;
  color: #1d4ed8;
}

.tpc-pill--tag:hover {
  background: #bfdbfe;
  color: #1e3a8a;
}

/* Vote buttons */
.tpc-votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.tpc-votes__btn {
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background-color 0.2s, color 0.2s;
}

.tpc-votes__btn:hover {
  background: #f3f4f6;
}

.tpc-votes__btn.is-active-up {
  color: var(--tpc-primary);
}

.tpc-votes__btn.is-active-down {
  color: #ef4444;
}

.tpc-votes__count {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2937;
}

.tpc-votes__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Navigation sheet */
.tpc-nav-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.tpc-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.tpc-nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.tpc-nav-sheet {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  max-width: 85vw;
  background: #fff;
  z-index: 101;
  padding: 1rem;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgb(0 0 0 / 0.15);
}

.tpc-nav-sheet.is-open {
  transform: translateX(0);
}

.tpc-nav-sheet__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #111827;
  padding: 0.5rem 0;
  text-decoration: none;
}

.tpc-nav-sheet__link:hover {
  color: var(--tpc-primary);
}

.tpc-nav-sheet__link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tpc-nav-sheet__section {
  border-top: 1px solid var(--tpc-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.tpc-nav-sheet__heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.tpc-nav-sheet__categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tpc-nav-sheet__categories li {
  margin-bottom: 0.5rem;
}

.tpc-nav-sheet__categories a {
  color: #374151;
  text-decoration: none;
  font-size: 1rem;
}

.tpc-nav-sheet__categories a:hover {
  color: #111827;
  text-decoration: underline;
}

/* Breadcrumbs */
.tpc-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--tpc-muted);
  margin-bottom: 1rem;
}

.tpc-breadcrumbs a {
  color: var(--tpc-muted);
  text-decoration: none;
}

.tpc-breadcrumbs a:hover {
  color: #374151;
  text-decoration: underline;
}

.tpc-breadcrumbs__current {
  color: #111827;
  font-weight: 500;
}

.tpc-breadcrumbs__sep {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

/* Single post article */
.tpc-article__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.tpc-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--tpc-muted);
  margin-bottom: 1.5rem;
}

.tpc-entry-content {
  font-size: 1.125rem;
  line-height: 1.75;
  max-width: none;
}

.tpc-entry-content h1 {
  font-size: 3rem;
  font-weight: 800;
  margin: 3rem 0 1.5rem;
}

.tpc-entry-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 2.5rem 0 1.25rem;
}

.tpc-entry-content h3 {
  font-size: 1.875rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

.tpc-entry-content p {
  margin: 1.5rem 0;
}

.tpc-entry-content a {
  color: var(--tpc-primary);
  text-decoration: underline;
  font-weight: 600;
}

.tpc-entry-content a:hover {
  color: var(--tpc-primary-hover);
}

.tpc-entry-content img {
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--tpc-radius);
}

.tpc-entry-content iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 315px;
  border: 0;
  border-radius: var(--tpc-radius);
}

.tpc-article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tpc-border);
}

.tpc-article__taxonomies {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tpc-border);
}

.tpc-article__taxonomies-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-right: 0.5rem;
}

/* Author avatar */
.tpc-avatar {
  border-radius: 9999px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
}

.tpc-avatar--sm { width: 2rem; height: 2rem; font-size: 0.75rem; }
.tpc-avatar--md { width: 3rem; height: 3rem; font-size: 0.875rem; }
.tpc-avatar--lg { width: 4rem; height: 4rem; font-size: 1rem; }
.tpc-avatar--xl { width: 6rem; height: 6rem; font-size: 1.25rem; }

.tpc-avatar--purple { background: #a855f7; }
.tpc-avatar--blue { background: #3b82f6; }
.tpc-avatar--green { background: #22c55e; }
.tpc-avatar--orange { background: #f97316; }
.tpc-avatar--red { background: #ef4444; }
.tpc-avatar--indigo { background: #6366f1; }
.tpc-avatar--pink { background: #ec4899; }
.tpc-avatar--teal { background: #14b8a6; }

.tpc-author-info {
  display: flex;
  align-items: center;
}

.tpc-author-info__byline {
  font-size: 0.875rem;
}

.tpc-author-info__name {
  font-weight: 500;
  color: #111827;
}

.tpc-author-info__name:hover {
  color: var(--tpc-primary);
  text-decoration: underline;
}

/* Similar posts grid */
.tpc-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tpc-border);
}

.tpc-related__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.tpc-related__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tpc-related__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tpc-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tpc-related-card {
  display: block;
  background: #fff;
  border-radius: var(--tpc-radius);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tpc-related-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.tpc-related-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

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

.tpc-related-card__body {
  padding: 1rem;
}

.tpc-related-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.tpc-related-card:hover .tpc-related-card__title {
  color: var(--tpc-primary);
}

/* Comments */
.tpc-comments {
  margin-top: 3rem;
}

.tpc-comments__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.tpc-comment-form {
  margin-bottom: 2rem;
}

.tpc-comment-form input,
.tpc-comment-form textarea {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--tpc-border);
  border-radius: var(--tpc-radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.tpc-comment-form textarea {
  max-width: 100%;
  min-height: 6rem;
  resize: vertical;
}

.tpc-comment {
  border-bottom: 1px solid var(--tpc-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.tpc-comment__author {
  font-weight: 600;
}

.tpc-comment__date {
  font-size: 0.875rem;
  color: var(--tpc-muted);
  margin-left: 0.5rem;
}

/* Authors grid */
.tpc-stats-bar {
  background: #fff;
  border-radius: var(--tpc-radius);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.tpc-stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.tpc-stats-bar__value {
  font-size: 1.875rem;
  font-weight: 700;
}

.tpc-stats-bar__value--blue { color: var(--tpc-primary); }
.tpc-stats-bar__value--green { color: #22c55e; }
.tpc-stats-bar__value--purple { color: #a855f7; }

.tpc-stats-bar__label {
  color: var(--tpc-muted);
  font-size: 0.875rem;
}

.tpc-authors-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .tpc-authors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tpc-authors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tpc-author-card {
  display: block;
  background: #fff;
  border-radius: var(--tpc-radius);
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s;
  height: 100%;
}

.tpc-author-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.tpc-author-card__header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.tpc-author-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.tpc-author-card:hover .tpc-author-card__name {
  color: var(--tpc-primary);
}

.tpc-author-card__role {
  font-size: 0.875rem;
  color: var(--tpc-muted);
  margin: 0;
}

.tpc-author-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* Online users widget */
.tpc-online-users {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
}

.tpc-online-users__btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1f2937;
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  transition: background-color 0.3s;
}

.tpc-online-users__btn:hover {
  background: #374151;
}

.tpc-online-users__btn.is-measuring {
  background: var(--tpc-primary);
  animation: tpc-pulse 1.5s infinite;
}

@keyframes tpc-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.tpc-online-users__btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.tpc-online-users__label {
  font-size: 0.875rem;
  font-weight: 400;
}

/* Empty state */
.tpc-empty {
  text-align: center;
  font-size: 1.125rem;
  color: var(--tpc-muted);
}

.tpc-empty .tpc-btn--cta {
  margin-top: 1.5rem;
}

/* Info / prose pages */
.tpc-prose-page h1 {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
}

.tpc-prose-page h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--tpc-primary);
  margin: 2rem 0 1rem;
}

.tpc-prose-page ul {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.tpc-prose-page p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.tpc-prose-page img {
  border-radius: var(--tpc-radius);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  margin: 2rem auto;
  display: block;
}

/* 404 */
.tpc-404 {
  text-align: center;
  padding: 4rem 1rem;
}

.tpc-404 h1 {
  font-size: 4rem;
  font-weight: 800;
  margin: 0;
}

/* WordPress comment list reset */
.tpc-comments .comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Pagination */
.tpc-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.tpc-pagination a,
.tpc-pagination span {
  padding: 0.5rem 1rem;
  border-radius: var(--tpc-radius);
  border: 1px solid var(--tpc-border);
  text-decoration: none;
  color: inherit;
}

.tpc-pagination .current {
  background: var(--tpc-primary);
  color: #fff;
  border-color: var(--tpc-primary);
}

/* Info page */
.tpc-container--info {
  max-width: 48rem;
}

.tpc-info-title {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.5rem;
}

.tpc-info-title__icon {
  color: var(--tpc-primary);
  flex-shrink: 0;
}

.tpc-prose-page__heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--tpc-primary);
  margin: 2rem 0 1rem;
}

.tpc-info-ahrefs {
  margin: 2rem 0;
  text-align: center;
}

.tpc-info-ahrefs img {
  max-width: 100%;
  height: auto;
  border-radius: var(--tpc-radius);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.tpc-info-cta-lead {
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
}

.tpc-info-bullets {
  list-style: none;
  padding: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.tpc-info-bullets li {
  margin-bottom: 0.5rem;
}

.tpc-info-cta {
  text-align: center;
  margin-top: 2rem;
}

/* Tag archive */
.tpc-page-title--tag {
  text-align: center;
  padding-top: 4rem;
}

.tpc-related-tags {
  margin-bottom: 2rem;
  text-align: center;
}

.tpc-related-tags__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.tpc-related-tags__pill {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.15s;
}

.tpc-related-tags__pill:hover {
  background: #e5e7eb;
}

/* Toasts */
.tpc-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(24rem, calc(100vw - 2rem));
  pointer-events: none;
}

.tpc-toast {
  padding: 0.75rem 1rem;
  border-radius: var(--tpc-radius);
  background: #1f2937;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: auto;
}

.tpc-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tpc-toast--success {
  background: #059669;
}

.tpc-toast--error {
  background: #dc2626;
}

/* Published post content — URL collection, image align, banned (read-only) */
.tpc-entry-content .banned-keyword-highlight,
.tpc-content-editable .banned-keyword-highlight {
  background-color: #ffdddd;
  text-decoration: underline wavy red;
  text-decoration-skip-ink: none;
}

.url-collection-container {
  margin: 1.5rem 0;
}

.url-collection-thumbnail {
  width: 120px;
  height: 80px;
  overflow: hidden;
  border-radius: 6px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.url-collection-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}

.url-collection-image:hover {
  transform: scale(1.05);
}

.url-collection-container .flex {
  display: flex;
  flex-grow: 1;
  align-items: center;
}

.flex.justify-start,
.tpc-img-wrap--left {
  display: flex;
  justify-content: flex-start;
}

.flex.justify-center,
.tpc-img-wrap--center {
  display: flex;
  justify-content: center;
}

.flex.justify-end,
.tpc-img-wrap--right {
  display: flex;
  justify-content: flex-end;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tpc-entry-content iframe {
  width: 100%;
  max-width: 100%;
  height: 315px;
  border: 0;
  display: block;
  margin: 1rem auto;
}

@media (max-width: 768px) {
  .url-collection-container .flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .url-collection-thumbnail {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
  }
}

@media (min-width: 769px) {
  .url-collection-thumbnail {
    width: 140px;
    height: 90px;
    margin-right: 1rem;
  }

  .url-collection-container .flex {
    min-height: 90px;
  }
}
