/**
 * Component: Conference List Item
 * A single row in the conference landing list view.
 *
 * Figma: "ListViewUngroupedWithSidebar → ConferenceListRow"
 */
@import "../conference/_vars.css";

/* ========================================
   ROW LIST WRAPPER
   ======================================== */

.conference-list-items {
  display: flex;
  flex-direction: column;
  gap: 12px;          /* Figma: 12px between rows */
}

/* ========================================
   SINGLE ROW — card shell
   ======================================== */

.conference-list-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 16px;
  gap: 14px;
  min-height: 68px;

  background: #ffffff;
  border: 1px solid #E9ECEF;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.06);
  border-radius: 10px;

  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.conference-list-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

/* ========================================
   THUMBNAIL (100×52 px)
   ======================================== */

.conference-list-item__thumb {
  width: 100px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 6px;          /* Figma: 6px */
  overflow: hidden;
  background-color: #ffffff;   /* logo/header art shows in full (matches card.css --featured-card-banner-bg) */
  border: 1px solid #F1F5F9;
}

.conference-list-item__thumb img {
  width: 100%;
  height: 100%;
  max-width: 100%;              /* safety net: never let native banner width (e.g. 1920px) escape the thumb */
  object-fit: contain;         /* contain, not cover — full logo visible like .featured-card__image-media img */
  display: block;
}

.conference-list-item__thumb--placeholder {
  background-color: #E9ECEF;
}

/* Icon-only placeholder (sessions / tracks — no banner image available) */
.conference-list-item__thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6C757D;
  flex-shrink: 0;
}

/* ========================================
   BODY (title + meta + badges)
   ======================================== */

.conference-list-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.conference-list-item__title {
  font-size: var(--font-size-card-title); /* Figma: 15px */
  font-weight: 600;
  letter-spacing: -0.434375px;       /* Figma */
  color: #212529;
  line-height: 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Meta chips — same tokens as .featured-card .cli-meta-row in card.css */
.conference-list-item .cli-meta-row {
  font-size: var(--font-size-card-meta);
  line-height: 1.45;
}

.conference-list-item:hover .conference-list-item__title,
.conference-list-item:hover .banner-card-title {
  color: var(--primary-color);
}

.conference-list-item--locked {
  opacity: 0.75;
  cursor: not-allowed;
  position: relative;
}


.conference-list-item--locked:hover {
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.06);
  transform: none;
}

.conference-list-item--locked .conference-list-item__title {
  color: #6C757D;
}

.conference-list-item--locked:hover .conference-list-item__title {
  color: #6C757D;
}

.conference-list-item--locked .conference-list-item__arrow {
  color: #CED4DA;
}

.conference-list-item--locked:hover .conference-list-item__arrow {
  transform: none;
  color: #CED4DA;
}

/* ---- Date meta row (used inside info-row) ---- */
.conference-list-item__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--font-size-card-meta);
  font-weight: 400;
  color: #6C757D;
  line-height: 18px;
}

.conference-list-item__meta-icon {
  font-size: var(--font-size-card-icon);
  color: #6C757D;
  flex-shrink: 0;
}

/* Meta chips (cli-chip, separators): see shared.css; layout via Bootstrap utilities in markup */

/* ---- Tags ---- */
.conference-list-item .badge-container {
  margin-top: 2px;
}

.conference-list-item .badge-container .badge {
  font-size: var(--font-size-card-badge);
  padding: 3px 7px;
  margin-right: 4px;
}

/* ========================================
   ARROW INDICATOR — 18×18, #ADB5BD
   ======================================== */

.conference-list-item__arrow {
  color: #ADB5BD;              /* Figma: #ADB5BD */
  flex-shrink: 0;
  display: flex;
  align-items: center;
  margin-left: auto;
  transition: transform 0.15s ease, color 0.15s ease;
}

.conference-list-item__arrow i {
  font-size: var(--font-size-lg); /* 1.125rem ≈ 18px */
  line-height: 1;
}

.conference-list-item:hover .conference-list-item__arrow {
  transform: translateX(3px);
  color: var(--primary-color);
}

/* ========================================
   ACCORDION CONTEXT — flush rows inside
   accordion body panels
   ======================================== */

.conference-accordion .accordion-body .conference-list-items {
  gap: 8px;
}

/* ========================================
   RESPONSIVE — Mobile (≤767px) & iPad (768px–1024px)
   ======================================== */

/* iPad (768px – 1024px): slightly tighter thumbnail */
@media (max-width: 1024px) and (min-width: 768px) {
  .conference-list-item__thumb {
    width: 80px;
    height: 44px;
  }
}

/* Mobile (≤767px) */
@media (max-width: 767.98px) {
  .conference-list-item {
    padding: 10px 12px;
    min-height: 60px;
  }

  /* Allow title to wrap rather than truncate on small screens */
  .conference-list-item__title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    line-height: 1.35;
  }

  /* List mode is the compact option: wide banner art is unreadable at
     side-thumb size, and stacking it full-width would just mimic card view.
     Drop the thumb on phones — title/date/stats are what matter here. */
  .conference-list-item__thumb {
    display: none;
  }

  .conference-list-item__arrow {
    margin-left: 4px;
  }
}
