/* ═══════════════════════════════════════════
   ContentCard — Unified card styles
   Sommplicity · All variants, one design
════════════════════════════════════════════ */

/* ── Grid layout ─────────────────────────── */
.cc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Card base ───────────────────────────── */
.cc-card {
  position: relative;
  background: var(--white, #fff);
  border: 1px solid var(--border-ink, #D5CEC4);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  outline: none;
}

/* Hover */
.cc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.08);
}
.cc-card:hover .cc-title { color: var(--ink, #2C1810); }
.cc-card:hover .cc-media img { transform: scale(1.02); }

/* Focus (keyboard) */
.cc-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.08);
  outline: 2px solid var(--maroon, #722F37);
  outline-offset: 2px;
}

/* Active */
.cc-card:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.06);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cc-card { transition: box-shadow 0.2s ease; }
  .cc-card:hover { transform: none; }
  .cc-card:hover .cc-media img { transform: none; }
}

/* ── Media slot ──────────────────────────── */
.cc-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-warm, #F5F0E8);
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.cc-media-fallback {
  background: var(--bg-warm, #F5F0E8);
}
.cc-media-fallback svg {
  width: 60%;
  max-width: 120px;
  color: var(--ink-xlight, #A0917F);
}

/* ── Content area ────────────────────────── */
.cc-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta label */
.cc-meta {
  font-family: var(--font-body);
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--maroon, #722F37);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Title */
.cc-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink, #2C1810);
  margin: 0 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

/* Description */
.cc-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--ink-light, #5C4A3A);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Metadata row */
.cc-metadata {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--ink-xlight, #A0917F);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
}
.cc-metadata-sep {
  margin: 0 6px;
  color: var(--cream-dark, #E8E0D4);
}

/* Tags */
.cc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.cc-tag {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--ink-light, #5C4A3A);
  border: 1px solid var(--border-light, #E8E0D4);
  border-radius: 12px;
  padding: 3px 10px;
  white-space: nowrap;
}
.cc-tag-more {
  color: var(--ink-xlight, #A0917F);
  font-style: italic;
  border-style: dashed;
}

/* Trip planner button */
.cc-trip-btn {
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--maroon, #722F37);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s;
}
.cc-trip-btn:hover { background: #5E252D; }
.cc-trip-added {
  background: transparent;
  color: var(--ink-light, #5C4A3A);
  border: 1.5px solid var(--border-ink, #D5CEC4);
}
.cc-trip-added:hover { background: rgba(0,0,0,0.03); }

/* ── Responsive ──────────────────────────── */
@media (max-width: 1024px) {
  .cc-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 768px) {
  .cc-grid { gap: 16px; }
  .cc-content { padding: 16px; }
  .cc-title { font-size: 1.125rem; }
  .cc-meta { font-size: 0.65rem; }
  .cc-desc { font-size: 0.8rem; }
  .cc-metadata { font-size: 0.75rem; }
}
@media (max-width: 480px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-card { min-height: auto; }
}
