/* ==========================================================================
   My likes (my-likes.html)
   Design system: uses the shared tokens from /css/tokens.css, matching
   the redesign pass done on my-posts.css/my-quotes.css.
   ========================================================================== */

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Inter", "Quicksand", "Poppins", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Home button (mobile navbar)
   ========================================================================== */
.home-btn {
  width: 56px;
  height: 56px;
  background: #dedfe0;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  margin-left: -5px;
  transition: all 0.2s ease;
}

.home-btn:hover {
  background-color: #e9ecef;
  color: #000;
  transform: scale(1.05);
}

.home-btn:active {
  transform: scale(0.95);
}

.home-btn i {
  font-size: 1.5rem;
  line-height: 1;
}

.home-text {
  font-size: 10px;
  line-height: 1;
  margin-top: 2px;
  color: #1f2937;
}

.page-subtitle {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: var(--font-size-sm);
  line-height: 1.5;
  max-width: 520px;
}

#my-posts {
  margin: 0 0 85px 0;
  display: flow-root;
}

/* ==========================================================================
   Post cards
   ========================================================================== */
.post-card {
  max-width: 850px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, #fbfdff 100%);
  box-shadow: var(--shadow-md);
  margin: 22px auto 36px auto;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-lg);
}

.post-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 8px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-title-light {
  color: var(--text-muted);
  font-weight: var(--font-weight-normal);
}

/* ==========================================================================
   Header: logo + title/badges + posted date
   ========================================================================== */
.listing-tile-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--border-color);
}

.listing-tile-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--light) 0%, #dbe9ff 100%);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.listing-tile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-tile-heading {
  flex: 1;
  min-width: 0;
}

.listing-tile-posted {
  flex-shrink: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.post-card-content {
  padding: var(--space-5) var(--space-6) var(--space-6);
}

.post-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
}

.post-id-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.post-category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  background: var(--light);
  color: var(--primary-dark);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
}

/* ==========================================================================
   Description preview (2-line clamp)
   ========================================================================== */
.post-description-preview {
  margin: 0 0 var(--space-4);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Toolbar (view listing)
   ========================================================================== */
.listing-tile-toolbar {
  display: flex;
  justify-content: center;
}

.listing-tile-primary-btn {
  flex: 0 0 auto;
  min-width: 200px;
}

.post-btn,
.post-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

/* Was hardcoded to Facebook's brand blue (#1877f2) -- unrelated to
   Facebook, the same accidental copy-paste found across the other
   account/request pages. Uses the site's actual brand color now. */
.post-btn {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 3px 10px rgba(var(--primary-rgb), 0.15);
}

.post-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  opacity: 1;
}

.post-btn-secondary {
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-dark);
}

.post-btn-secondary:hover {
  background: var(--surface);
  border-color: rgba(var(--primary-rgb), 0.35);
  color: var(--primary);
  opacity: 1;
}

.post-like-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #f1c2cb;
  background: #fff5f7;
  color: #b4233c;
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  cursor: default;
  pointer-events: none;
  opacity: 1;
  box-shadow: none;
}

.post-like-pill:disabled,
.post-like-pill[aria-disabled="true"] {
  cursor: default;
  pointer-events: none;
  opacity: 1;
}

.post-like-pill.is-liked {
  border-color: #f1c2cb;
  background: #fff5f7;
  color: #b4233c;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.posts-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin: -30px 0 60px 0;
}

.posts-pagination button {
  padding: 10px var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--surface);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.posts-pagination button:hover:not(:disabled) {
  background: var(--surface-alt);
}

.posts-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.posts-pagination-info {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .post-card {
    margin: 18px 12px 28px 12px;
    border-radius: var(--radius-lg);
  }

  .listing-tile-header {
    padding: var(--space-4);
    flex-wrap: wrap;
  }

  .listing-tile-posted {
    order: 1;
    flex-basis: 100%;
    text-align: left;
    margin-left: 80px;
    margin-top: -4px;
  }

  .post-card-content {
    padding: var(--space-4);
  }

  .post-title {
    font-size: 1.25rem;
  }
}
