/* ==========================================================================
   CARDS – Post, Result, Prediction (global)
   ========================================================================== */

/* ----- Post Card (used in grids, archive, search) ----- */
.datochai-post-card {
  background: var(--color-surface-primary);
  border: 1px solid var(--color-border-secondary);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
}

.datochai-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--color-accent);
}

.post-card-thumbnail {
  display: block;
  width: 100%;
  overflow: hidden;
  background: var(--color-border-secondary);
}

.post-card-thumbnail img,
.fallback-thumbnail {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Title */
.datochai-post-card h3.post-card-title,
.post-card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.datochai-post-card h3.post-card-title a,
.post-card-title a {
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.datochai-post-card h3.post-card-title a:hover,
.post-card-title a:hover {
  color: var(--color-accent);
}

/* Meta */
.post-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-top: auto;
}

.post-interactions {
  display: flex;
  gap: 15px;
}

/* Interaction buttons (like/fav) */
.interact-btn {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  transition: color 0.2s ease;
}

.interact-btn svg,
.interact-btn .icon-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.interact-btn:hover {
  color: var(--color-accent);
}

/* Read‑more button (also used globally) */
.read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--color-surface-tertiary);
  border: 1px solid var(--color-border-secondary);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.read-more-btn:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 4px 10px rgba(211, 47, 47, 0.2);
}

.read-more-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

/* ----- Other lotteries widget (pillar pages) ----- */
.lottery-grid-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.lottery-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 10px;
  background: var(--color-surface-tertiary);
  border: 1px solid var(--color-border-secondary);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-primary);
  transition: all 0.3s ease;
  text-align: center;
}

.lottery-link-card:hover {
  background: var(--color-accent);
  color: var(--color-text-inverse);
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(211, 47, 47, 0.2);
}

.card-accent-bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 10px;
  background: var(--color-accent);
}

/* ----- Compact Result / Prediction Cards (CRC) – keep their unique headers ----- */
.crc-mobile-card .crc-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: inherit;
}

/* Ensure logos are centered */
.crc-logo-container {
  margin: 0 auto 6px auto;
}

/* Dark mode – ensure card footer stays readable */
.crc-card-footer {
  background: var(--color-surface-tertiary);
  border-top: 1px solid var(--color-border-secondary);
}