/**
 * 학술대회 일정 (conference/program.php)
 */

/* ── 페이지 ── */
.wrap-content .sub-content.conf-page {
  padding-top: 32px;
  padding-bottom: 100px;
}

@media (max-width: 768px) {
  .wrap-content .sub-content.conf-page {
    padding-top: 30px;
    padding-bottom: 60px;
  }
}

/* ── 필터 ── */
.conf-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 60px;
}

@media (max-width: 480px) {
  .conf-filters {
    gap: 6px;
    margin-top: 40px;
    margin-bottom: 35px;
  }
}

.conf-filters__btn {
  padding: 8px 22px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}


.conf-filters__btn--active {
  background: #474075;
  border-color: #474075;
  color: #fff;
}

/* ── 로딩 ── */
.conf-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  color: #8a8a8a;
  font-size: 15px;
  gap: 16px;
}

.conf-loader__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #1e40af;
  border-radius: 50%;
  animation: conf-spin 0.7s linear infinite;
}

@keyframes conf-spin {
  to { transform: rotate(360deg); }
}

.conf-empty {
  text-align: center;
  padding: 48px 0;
  color: #8a8a8a;
  font-size: 15px;
  margin: 0;
}

.conf-empty--error {
  color: #dc2626;
}

/* ── 그리드 ── */
.conf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 80px;
}

@media (max-width: 1100px) {
  .conf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .conf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .conf-card__thumb {
    height: 220px !important;
  }


  .conf-card__meta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    text-align: left;
  }

  .conf-card__date,
  .conf-card__location {
    white-space: normal;
    text-align: left;
    align-self: flex-start;
  }
}

/* ── 카드 (article + 내부 링크) ── */
.conf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  transition: box-shadow 0.25s, transform 0.25s;
}

.conf-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  text-decoration: none;
  color: inherit;
}

.conf-card--ended {
  opacity: 0.7;
}

/* 준비 중 플레이스홀더 (데이터 1~2개일 때 1줄 3칸 채움) */
.conf-card--placeholder {
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.conf-card--placeholder:hover {
  transform: none;
  box-shadow: none;
}

.conf-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #404040;
}

.conf-card__thumb--placeholder::before,
.conf-card__thumb--placeholder::after {
  display: none;
}

.conf-card__placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 24px;
  text-align: center;
}

.conf-card__placeholder-sub {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .conf-card__placeholder-sub {
    display: none;
  }
}

.conf-card__placeholder-strong {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 768px) {
  .conf-card__placeholder-strong {
    font-size: 15px;
  }
}

.conf-card__badge--placeholder {
  background: #474075;
  color: #fff;
}

/* 썸네일 */
.conf-card__thumb {
  position: relative;
  width: 100%;
  height: 500px;
  background: #404040;
  overflow: hidden;
  border-radius: 10px;
}

.conf-card__thumb img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.conf-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  border-radius: inherit;
}

.conf-card__thumb::after {
  content: '';
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  width: 28px;
  height: 28px;
  background: url('/assets/images/sub/ico_plus.png') no-repeat center / contain;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.conf-card__thumb:hover::before,
.conf-card__thumb:hover::after {
  opacity: 1;
}

/* common.css a:hover { opacity: 0.8 } 로 카드·이미지가 흐려지지 않게 */
.conf-card:hover {
  opacity: 1;
}

.conf-card--ended:hover {
  opacity: 0.7;
}

/* 본문 */
.conf-card__body {
  display: flex;
  flex-direction: column;
  padding: 16px 2px 10px;
}

/* 제목 + 뱃지 한 줄 */
.conf-card__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.conf-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conf-card__desc {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: #555;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 상태 뱃지 */
.conf-card__badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 6px;
  line-height: 1.3;
}

.conf-card__badge--ongoing {
  background: #e8f5e9;
  color: #16a34a;
}

.conf-card__badge--upcoming {
  background: #474075;
  color: #fff;
}

.conf-card__badge--ended {
  background: #f3f4f6;
  color: #9ca3af;
}

/* 메타: 날짜(왼) + 장소(오) */
.conf-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #000000;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}

.conf-card__date,
.conf-card__location {
  white-space: nowrap;
}

.conf-card__meta--placeholder {
  justify-content: flex-start;
}
