/* ---------------------------
   Quick Verdict Section
---------------------------- */

/* Main Quick Verdict container */
.quick-verdict {
  margin: 32px 0;
}

/* Quick Verdict title */
.quick-verdict-title {
  font-family: var(--font-heading) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  margin: 0 0 20px !important;
  color: var(--text-heading) !important;
  letter-spacing: -0.01em !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Quick Verdict grid - 3 columns */
.quick-verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, 210px);
  gap: 18px;
  margin-bottom: 16px;
  justify-content: start;
}

/* Verdict cards - differentiated styling */
.verdict-card {
  position: relative;
  animation: fadeInCard 0.4s ease backwards;
  border-width: 2px !important;
  text-decoration: none !important;
  width: 210px !important;
  height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Remove all underlines from verdict cards */
.verdict-card,
.verdict-card *,
.verdict-card .meta,
.verdict-card .meta *,
.verdict-card .tag,
.verdict-card p {
  text-decoration: none !important;
}

/* Underline product name on hover only */
.verdict-card:hover .cardTitle {
  text-decoration: underline !important;
}

.verdict-card:nth-child(1) {
  animation-delay: 0.05s;
}

.verdict-card:nth-child(2) {
  animation-delay: 0.1s;
}

.verdict-card:nth-child(3) {
  animation-delay: 0.15s;
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Best Overall card - green accent */
.verdict-best {
  border-color: rgba(76, 175, 80, 0.3) !important;
  background: rgba(76, 175, 80, 0.02) !important;
}

html[data-theme="dark"] .verdict-best {
  border-color: rgba(76, 175, 80, 0.4) !important;
  background: rgba(76, 175, 80, 0.05) !important;
}

.verdict-best:hover {
  border-color: rgba(76, 175, 80, 0.5) !important;
  background: rgba(76, 175, 80, 0.05) !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15) !important;
}

html[data-theme="dark"] .verdict-best:hover {
  border-color: rgba(76, 175, 80, 0.6) !important;
  background: rgba(76, 175, 80, 0.08) !important;
}

/* Budget Pick card - yellow accent */
.verdict-budget {
  border-color: rgba(255, 193, 7, 0.3) !important;
  background: rgba(255, 193, 7, 0.02) !important;
}

html[data-theme="dark"] .verdict-budget {
  border-color: rgba(255, 193, 7, 0.4) !important;
  background: rgba(255, 193, 7, 0.05) !important;
}

.verdict-budget:hover {
  border-color: rgba(255, 193, 7, 0.5) !important;
  background: rgba(255, 193, 7, 0.05) !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.15) !important;
}

html[data-theme="dark"] .verdict-budget:hover {
  border-color: rgba(255, 193, 7, 0.6) !important;
  background: rgba(255, 193, 7, 0.08) !important;
}

/* Premium Pick card - purple accent */
.verdict-premium {
  border-color: rgba(156, 39, 176, 0.3) !important;
  background: rgba(156, 39, 176, 0.02) !important;
}

html[data-theme="dark"] .verdict-premium {
  border-color: rgba(156, 39, 176, 0.4) !important;
  background: rgba(156, 39, 176, 0.05) !important;
}

.verdict-premium:hover {
  border-color: rgba(156, 39, 176, 0.5) !important;
  background: rgba(156, 39, 176, 0.05) !important;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 12px rgba(156, 39, 176, 0.15) !important;
}

html[data-theme="dark"] .verdict-premium:hover {
  border-color: rgba(156, 39, 176, 0.6) !important;
  background: rgba(156, 39, 176, 0.08) !important;
}

/* Verdict tags - color-coded */
.verdict-tag-best {
  background: rgba(76, 175, 80, 0.2) !important;
  border-color: rgba(76, 175, 80, 0.5) !important;
  color: rgba(76, 175, 80, 1) !important;
}

html[data-theme="dark"] .verdict-tag-best {
  background: rgba(76, 175, 80, 0.25) !important;
  border-color: rgba(76, 175, 80, 0.6) !important;
  color: rgba(129, 199, 132, 1) !important;
}

.verdict-tag-budget {
  background: rgba(255, 193, 7, 0.2) !important;
  border-color: rgba(255, 193, 7, 0.5) !important;
  color: rgba(255, 152, 0, 1) !important;
}

html[data-theme="dark"] .verdict-tag-budget {
  background: rgba(255, 193, 7, 0.25) !important;
  border-color: rgba(255, 193, 7, 0.6) !important;
  color: rgba(255, 193, 7, 1) !important;
}

.verdict-tag-premium {
  background: rgba(156, 39, 176, 0.2) !important;
  border-color: rgba(156, 39, 176, 0.5) !important;
  color: rgba(156, 39, 176, 1) !important;
}

html[data-theme="dark"] .verdict-tag-premium {
  background: rgba(156, 39, 176, 0.25) !important;
  border-color: rgba(156, 39, 176, 0.6) !important;
  color: rgba(186, 104, 200, 1) !important;
}

/* Footer price check date */
.verdict-updated {
  margin: 16px 0 0 !important;
  font-size: 12px !important;
  color: var(--muted) !important;
  text-align: center !important;
}

/* Make emoji icons smaller */
.emoji {
  width: 16px !important;
  height: 16px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 4px 0 0 !important;
}

.quick-verdict-title .emoji {
  width: 18px !important;
  height: 18px !important;
}

/* Verdict card images - fixed size */
.verdict-card .cover {
  height: 160px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

/* Verdict card content - center title and text vertically */
.verdict-card .content {
  padding: 12px 14px 20px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  flex: 1 !important;
}

.verdict-card .content .meta {
  flex-shrink: 0 !important;
  order: 0;
}

/* Spacer above title+p to center them */
.verdict-card .content::before {
  content: "";
  flex: 1 1 auto;
  min-height: 0;
  order: 1;
}

/* Verdict card text - smaller */
.verdict-card .content p {
  order: 3;
  display: flex !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  min-height: 2.6em !important;
  max-height: 2.6em !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Verdict card title - centered vertically */
.verdict-card .content .cardTitle,
.verdict-card .cardTitle {
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  order: 2;
}

/* Spacer below p to balance */
.verdict-card .content::after {
  content: "";
  flex: 1 1 auto;
  min-height: 0;
  order: 4;
}

/* Product Section Layout - 2 columns */
.product-section {
  margin: 24px 0 32px;
}

.product-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 24px;
  align-items: start;
}

.product-card-wrapper {
  /* Card takes left column - fixed width */
  width: 210px;
}

/* Ensure product section cards have fixed height for vertical centering */
.product-section .verdict-card {
  width: 210px !important;
  height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-section .verdict-card .cover {
  flex-shrink: 0 !important;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-price-button {
  /* Price button at top */
}

.product-price-button .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* Accent button style for price buttons */
.btn.accent {
  background: var(--accent) !important;
  color: #000 !important;
  border-color: var(--accent) !important;
  font-weight: 600 !important;
}

.btn.accent:hover {
  background: rgba(208, 122, 92, 0.9) !important;
  transform: translateY(-1px);
}

.product-description {
  /* Description text below button */
}

.product-description p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

/* Standard Product Cards (non-colored) - match verdict card styling */
.product-card {
  position: relative;
  text-decoration: none !important;
  width: 210px !important;
  height: 300px !important;
  display: flex !important;
  flex-direction: column !important;
  border-width: 2px !important;
}

.product-card,
.product-card *,
.product-card .meta,
.product-card .meta *,
.product-card .tag,
.product-card p {
  text-decoration: none !important;
}

.product-card:hover .cardTitle {
  text-decoration: underline !important;
}

/* Product card images - match verdict card sizing */
.product-card .cover {
  height: 160px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
}

/* Product card content - center title and text vertically */
.product-card .content,
.product-section .verdict-card .content {
  padding: 12px 14px 20px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  flex: 1 !important;
}

.product-card .content .meta,
.product-section .verdict-card .content .meta {
  flex-shrink: 0 !important;
  order: 0;
}

/* Spacer above title+p to center them */
.product-card .content::before,
.product-section .verdict-card .content::before {
  content: "";
  flex: 1 1 auto;
  min-height: 0;
  order: 1;
}

/* Match verdict card font sizes */
.product-card .cardTitle,
.product-section .verdict-card .cardTitle {
  font-size: 16px !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  order: 2;
}

.product-card .content p,
.product-section .verdict-card .content p {
  order: 3;
  display: flex !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  min-height: 2.6em !important;
  max-height: 2.6em !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Spacer below p to balance */
.product-card .content::after,
.product-section .verdict-card .content::after {
  content: "";
  flex: 1 1 auto;
  min-height: 0;
  order: 4;
}

/* Setup Grid - 3 columns */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 210px);
  gap: 18px;
  margin: 20px 0;
  justify-content: start;
}

/* Mobile: stack product layout - full width cards */
@media (max-width: 640px) {
  /* Cards span full width on mobile */
  .card {
    width: 100% !important;
    height: auto !important;
    min-height: 300px;
  }

  .quick-verdict-grid {
    grid-template-columns: 1fr;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-card-wrapper {
    width: 100%;
  }

  .product-card-wrapper .card {
    width: 100% !important;
  }

  .setup-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
