/* CenterMod Feed Card – v2 Display Authority */

.mcp-feed-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mcp-feed-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Boosted card highlight (within 24 hours of boost) */
.mcp-card-boosted {
  background: #fff9e6;
  border: 1px solid #ffd24d;
}

.mcp-boost-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  background: rgba(15, 15, 15, 0.92);
  color: #ffffff;

  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  padding: 5px 10px;
  border-radius: 20px;

  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.mcp-boost-badge i {
  color: #ffb300;
}

/* Universal feed grid layout (applies to all magnets) */
.mcp-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.mcp-events-day-header {
  grid-column: 1 / -1;
  font-weight: 600;
  margin: 30px 0 10px;
}

/* Event card – date badge and image wrapper */
.mcp-card-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
}

.mcp-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mcp-event-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  text-align: center;
  font-weight: 600;
  line-height: 1.1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.mcp-event-date-day {
  font-size: 11px;
  color: #666;
  display: block;
}

.mcp-event-date-num {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.mcp-feed-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f2f2f2;
  display: flex;
}

.mcp-feed-card-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.mcp-feed-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 768px) {
  .mcp-feed-card-image {
    aspect-ratio: 1 / 1;
  }
}

.mcp-feed-card-no-image {
  width: 100%;
  height: 100%;
  background: #f1f1f1;
}

.mcp-feed-card-menu-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
}

.mcp-feed-card-image-count {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mcp-feed-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mcp-feed-card-metric {
  font-weight: 700;
  font-size: 1.2rem;
  color: #0073aa;
  margin: 10px 0 6px;
  min-height: 28px;
  display: flex;
  align-items: center;
}

.mcp-feed-card-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
}

.mcp-feed-card-title a {
  text-decoration: none;
  color: inherit;
}

.mcp-feed-card-cta {
  margin-top: auto;
}

.mcp-feed-card-expanded {
  display: none;
  padding: 14px;
  background: #e8eef5;
  font-size: 14px;
  color: #1a1a1a;
}

.mcp-feed-card.is-open .mcp-feed-card-expanded {
  display: block;
}

.mcp-feed-card-listing {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.35;
  color: #5a6578;
}

.mcp-feed-card-listing a {
  color: #3d5a80;
  font-weight: 500;
  text-decoration: none;
}

.mcp-feed-card-listing a:hover {
  text-decoration: underline;
}

.mcp-feed-card-location {
  margin-bottom: 8px;
}

.mcp-feed-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  /* Match .mcp-page-shell--dashboard (base.css) */
  background: #e8eef5;
}

.mcp-feed-card-image {
  position: relative;
}

.mcp-feed-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #d63638;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 5;
}

/* ===============================
   Feed Card Status Badge
   =============================== */

.mcp-feed-card-image {
  position: relative;
}

.mcp-status-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  z-index: 5;
  line-height: 1;
}

.mcp-status-badge-sold {
  background-color: #d32f2f;
  color: #ffffff;
}

.mcp-status-badge-resolved {
  background-color: #1565c0;
  color: #ffffff;
}

.mcp-feed-card-cta {
  margin-top: 12px;
}

.mcp-feed-card-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* ================================
   Events – Sponsored Card Styling
   ================================ */

.mcp-sponsored-card {
    background: #f5f8fc;
    border: 1px solid #d9e2f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
}

.mcp-sponsored-label {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #4a6fa5;
    background: #e3ecfa;
    padding: 4px 10px;
    border-radius: 20px;
}

.mcp-sponsored-content h3 {
    font-size: 18px;
    margin: 10px 0 16px;
    color: #1f2d3d;
}

/* Mobile spacing adjustments */
@media (max-width: 768px) {
    .mcp-sponsored-card {
        padding: 16px;
        margin: 16px 0;
    }

    .mcp-sponsored-content h3 {
        font-size: 16px;
    }
}

/* ============================= */
/* Events Feed Card Refinements  */
/* ============================= */

/* 1. Larger date badge */
.mcp-feed-card .mcp-event-date-badge {
  top: 14px;
  left: 14px;
  transform: scale(1.15);
  transform-origin: top left;
}

/* 2. Tighten spacing under title */
.mcp-feed-card .mcp-card-title {
  margin-bottom: 6px;
}

.mcp-feed-card .mcp-event-subtitle {
  margin-top: 0;
  margin-bottom: 10px;
}

/* 3. Clock icon spacing */
.mcp-feed-card .mcp-event-time i {
  margin-right: 6px;
}

/* 4. Ensure View button text centered */
.mcp-feed-card .mcp-btn--primary {
  align-items: center;
  justify-content: center;
}

/* ============================= */
/* Feed Share Button + Share Modal */
/* ============================= */

.mcp-feed-card .mcp-feed-card-share {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mcp-feed-card .mcp-feed-card-share i {
  margin-right: 6px;
}

/* Share modal (CenterMod) */
#mcp-share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

#mcp-share-modal .mcp-share-dialog {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

#mcp-share-modal .mcp-share-dialog h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
}

#mcp-share-modal .mcp-share-url {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 12px;
}

#mcp-share-modal .mcp-share-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#mcp-share-modal .mcp-share-actions button,
#mcp-share-modal .mcp-share-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ================================== */
/* Hide Events Day Headers in Feed   */
/* ================================== */

.mcp-events-day-header {
  display: none !important;
}

/* ================================== */
/* Events Date Badge – Charcoal Style */
/* ================================== */

.mcp-feed-card .mcp-event-date-badge {
  background: #2b2b2b;
  color: #ffffff;
  border: none;
}

.mcp-feed-card .mcp-event-date-day,
.mcp-feed-card .mcp-event-date-num {
  color: #ffffff;
}

/* ===================================== */
/* Sponsored Card – Refined Layout Fix  */
/* ===================================== */

.mcp-sponsored-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertical centering */
  padding: 28px 22px; /* give breathing room */
  min-height: 220px; /* consistent visual weight */
}

.mcp-sponsored-label {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.mcp-sponsored-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
}
