/* Base styles - Tailwind utilities loaded via CDN in HTML */
[v-cloak] {
  display: none;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

.card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  border: 1px solid rgb(226 232 240 / 0.8);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  border-color: #cbd5e1;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.product-card-main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.product-card-img-link {
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.product-card .product-thumb {
  width: 96px;
  height: 72px;
  min-width: 96px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  overflow: hidden;
  border-radius: 0.5rem;
}

.product-card .product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card .product-thumb-empty {
  font-size: 0.65rem;
}

.product-card-inner {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-rank {
  font-size: 0.75rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.product-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-votes {
  font-size: 0.8125rem;
  color: #64748b;
  flex-shrink: 0;
}

.product-tagline {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

.product-card-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  overflow-x: auto;
  margin-top: auto;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: #4f46e5;
  color: white;
  text-decoration: none;
  transition: background 0.15s;
}

.link-btn:hover {
  background: #4338ca;
}

.topic-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  background: #f1f5f9;
  color: #475569;
}

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

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