/* ===== Sessions / AMA 페이지 전용 스타일 ===== */

/* 카테고리 탭 */
.categories {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.category-title-container {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 24px;
}

.category-title {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 700;
    color: #999;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-title:hover {
    color: #333;
    text-decoration: none;
}

.category-title.active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* 카테고리 컨텐츠 영역 */
.category-container {
    position: relative;
}

.category-list {
    display: none;
}

.category-list.active {
    display: block;
}

/* 태그 필터 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag-container .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #666;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.tag-container .tag:hover {
    border-color: #999;
    color: #333;
    text-decoration: none;
}

.tag-container .tag.active {
    background: #000;
    border-color: #000;
    color: #fff;
    font-weight: 700;
}

/* 카드 그리드 */
.list-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 991px) {
    .list-area {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .list-area {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ===== 럭셔리 카드 시스템 ===== */

/* 카드 컨테이너 */
.luxury-list-card,
.vod {
    display: none;
    background: transparent;
    border: none;
}
.luxury-list-card.active,
.vod.active {
    display: block;
}

.luxury-list-card a.card-link,
.vod > a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* 카드 이미지 영역 */
.card-shape {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #f8f9fa;
    overflow: hidden;
}
.card-shape .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s ease;
}
.luxury-list-card:hover .card-img-top {
    transform: scale(1.03);
}

/* KESA EXCLUSIVE / PRIVATE SESSION 오버레이 뱃지 */
.badge-exclusive {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 6px 12px;
    z-index: 2;
    text-transform: uppercase;
}

/* ===== 메탈 스타일 (Gunmetal Metallic) ===== */

/* 메탈 뱃지 오버레이 (건메탈 명판) */
.badge-exclusive-metal {
    background: linear-gradient(135deg, #4a4a4d 0%, #1e1e21 40%, #0a0a0b 100%);
    border-top: 1px solid #777;
    border-left: 1px solid #666;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    color: #fff;
    letter-spacing: 1.5px;
    padding: 6px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* 메탈 카드 */
.luxury-list-card.card-metal {
    background: linear-gradient(145deg, #111113, #1e1e21);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}
.luxury-list-card.card-metal:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.8), 0 0 15px rgba(255,255,255,0.05) inset;
}
.luxury-list-card.card-metal::before {
    content: "";
    position: absolute;
    top: -100%; left: -100%;
    width: 200%; height: 200%;
    background: linear-gradient(145deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}
.luxury-list-card.card-metal:hover::before {
    top: -50%; left: -50%;
    opacity: 1;
}
.luxury-list-card.card-metal .card-shape {
    background-color: #000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.luxury-list-card.card-metal .card-content {
    padding: 20px;
}
.luxury-list-card.card-metal .card-title {
    color: #fff;
}
.luxury-list-card.card-metal .badge-sub.solid {
    background-color: rgba(255,255,255,0.08);
    color: #aaa;
}
.luxury-list-card.card-metal .badge-sub.outline {
    background-color: transparent;
    border-color: #333;
    color: #aaa;
}
.luxury-list-card.card-metal .term-item {
    color: #666;
}
.luxury-list-card.card-metal .option-count-badge {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #888;
}
.luxury-list-card.card-metal .badge-exclusive {
    background: linear-gradient(145deg, #1a1a1c, #2a2a2e);
    border: 1px solid rgba(255,255,255,0.12);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* 카드 텍스트 영역 */
.card-content {
    padding-top: 16px;
}

/* 상태 뱃지 (온라인, 모집중 등) */
.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.badge-sub {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 8px;
    font-family: 'Inter', sans-serif;
}
.badge-sub.solid {
    background-color: #f5f5f5;
    color: #555;
}
.badge-sub.outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #555;
}
.badge-sub.scheduled {
    background-color: #fef3cd;
    color: #856404;
}

/* VOD 뱃지 (기존 호환) */
.badge-container .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    background: #f5f5f5;
    color: #555;
}
.badge-container .badge-vod {
    background: #fce4ec;
    color: #c62828;
}

/* 카드 제목 */
.luxury-list-card .card-title,
.vod .card-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.4;
    word-break: keep-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 기간 텍스트 */
.term-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.term-item {
    font-size: 13px;
    color: #000;
    font-weight: 500;
}

/* VOD 기존 호환 */
.video-title-container { width: 100%; }
.vod .term { font-size: 0.75rem; color: #999; line-height: 1.6; }

/* 예약 글 비활성화 (비관리자) */
.event-scheduled {
  opacity: 0.45;
  position: relative;
}
.event-scheduled.admin-view {
  pointer-events: auto;
  cursor: pointer;
}
.event-scheduled:not(.admin-view) {
  pointer-events: none;
}
.event-scheduled:not(.admin-view) > a,
.event-scheduled:not(.admin-view) > a.card-link { pointer-events: none; }

/* 옵션별 인원수 */
.option-counts { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.option-count-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  background: #f5f5f5;
  color: #555;
  border: 1px solid #e5e5e5;
  border-radius: 2px;
}

/* 페이지 헤더 */
.sessions-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 24px;
}

.sessions-header h1 {
    font-family: Helvetica, "Apple SD Gothic Neo", Arial, "Malgun Gothic", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
    letter-spacing: -0.02em;
}

/* 빈 상태 */
.sessions-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    color: #999;
    font-size: 0.875rem;
}

/* py-3 유틸 (bootstrap 미적용시 대비) */
.event .py-3,
.vod .py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* row 유틸 */
.event .row {
    display: flex;
    flex-wrap: wrap;
}

.event .mx-0 { margin-left: 0; margin-right: 0; }
.event .px-0 { padding-left: 0; padding-right: 0; }
.event .col-12 { width: 100%; }
.event .justify-content-between { justify-content: space-between; }

/* 이미지 업로드 영역 */
.image-upload-area {
    border: 2px dashed #ddd;
    border-radius: 4px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    background: #fafafa;
}

.image-upload-area:hover {
    border-color: #999;
    background: #f0f0f0;
}

.image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 0.875rem;
}

/* 세션 헤더 (제목 + 글쓰기) */
.sessions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 다크모드 대응 */
html.dark-mode .category-title { color: #777; }
html.dark-mode .category-title.active { color: #fff; border-bottom-color: #fff; }
html.dark-mode .category-title-container { border-bottom-color: #333; }
html.dark-mode .tag-container .tag { background: #1a1a1a; border-color: #333; color: #999; }
html.dark-mode .tag-container .tag.active { background: #fff; border-color: #fff; color: #000; }
html.dark-mode .card-shape { background: #222; }
html.dark-mode .luxury-list-card .card-title,
html.dark-mode .vod .card-title { color: #eee; }
html.dark-mode .badge-container .badge { background: #2a2a2a; color: #999; }
html.dark-mode .badge-container .badge-online { background: #1b3a1b; color: #66bb6a; }
html.dark-mode .badge-container .badge-offline { background: #1a2a3a; color: #64b5f6; }
html.dark-mode .badge-container .badge-vod { background: #3a1a1a; color: #ef9a9a; }
