/* ========================================
   STANDALONE LIST PAGE STYLES
   ======================================== */

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  padding: 1.5rem;
  padding-bottom: 0;
}

.page-description {
  font-size: 1rem;
  color: rgba(0, 0, 0, 0.6);
  margin: 0 0 2.5rem 0;
  padding: 0 1.5rem;
  line-height: 1.6;
}

:where(.dark, .dark *) .page-description {
  color: rgba(255, 255, 255, 0.6);
}

/* Posts Grid */
.standalone-list-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  padding: 0 1.5rem;
}

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

@media (min-width: 1280px) {
  .standalone-list-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Post Card */
.standalone-post-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

.standalone-post-card:hover {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

:where(.dark, .dark *) .standalone-post-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

:where(.dark, .dark *) .standalone-post-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.standalone-post-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
}

:where(.dark, .dark *) .standalone-post-image {
  background: rgba(255, 255, 255, 0.02);
}

.standalone-post-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.standalone-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.standalone-post-card:hover .standalone-post-image img {
  transform: scale(1.05);
}

.standalone-post-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  flex: 1;
}

.standalone-post-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.standalone-post-title a {
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
  transition: color 0.2s;
}

.standalone-post-title a:hover {
  color: rgb(16, 185, 129);
}

:where(.dark, .dark *) .standalone-post-title a {
  color: rgba(255, 255, 255, 0.9);
}

:where(.dark, .dark *) .standalone-post-title a:hover {
  color: rgb(52, 211, 153);
}

.standalone-post-description {
  font-size: 0.9375rem;
  color: rgba(0, 0, 0, 0.6);
  margin: 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

:where(.dark, .dark *) .standalone-post-description {
  color: rgba(255, 255, 255, 0.6);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 500;
}

:where(.dark, .dark *) .tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.standalone-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(0, 0, 0, 0.5);
  margin-top: auto;
  padding-top: 0.5rem;
}

:where(.dark, .dark *) .standalone-post-meta {
  color: rgba(255, 255, 255, 0.5);
}

.reading-time::before {
  content: "•";
  margin-right: 0.5rem;
}

.no-content {
  text-align: center;
  padding: 3rem 1.5rem;
  color: rgba(0, 0, 0, 0.5);
  font-size: 1rem;
}

:where(.dark, .dark *) .no-content {
  color: rgba(255, 255, 255, 0.5);
}

/* Override prose styles */
.prose h1,
.prose h2,
.prose h3 {
  margin-top: 0;
}

/* Increase page content width */
.prose {
  max-width: 90rem;
}

@media (min-width: 1280px) {
  .prose {
    max-width: 100rem;
  }
}

@media (min-width: 1536px) {
  .prose {
    max-width: 110rem;
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .page-title {
    font-size: 1.5rem;
    padding: 1rem;
    padding-bottom: 0;
  }

  .page-description {
    font-size: 0.9375rem;
    padding: 0 1rem;
    margin-bottom: 2rem;
  }

  .standalone-list-container {
    padding: 0 1rem;
    gap: 1.25rem;
  }

  .standalone-post-content {
    padding: 1.25rem;
  }

  .standalone-post-title {
    font-size: 1.125rem;
  }

  .standalone-post-image {
    height: 180px;
  }
}

@media (min-width: 1024px) {
  .page-title {
    padding: 1.5rem 3rem;
    padding-bottom: 0;
  }

  .page-description {
    padding: 0 3rem;
  }

  .standalone-list-container {
    padding: 0 3rem;
  }
}
