@charset "utf-8";

/* 세션 백업 스킨 — 갤러리형 */

/* 필터 바 */
#session_filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}
#session_filter .filter-label {
    font-size: 12px;
    color: #999;
    margin-right: 4px;
    white-space: nowrap;
}
.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #555;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
}
.filter-btn:hover { border-color: #aaa; color: #222; }
.filter-btn.active { background: #222; color: #fff; border-color: #222; }

/* 상태 필터 */
.status-filter-wrap {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.status-btn {
    font-size: 11px;
    padding: 4px 11px;
    border-radius: 999px;
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #777;
    cursor: pointer;
    transition: all .15s;
}
.status-btn:hover { border-color: #bbb; }
.status-btn.s-all.active   { background: #222; color: #fff; border-color: #222; }
.status-btn.s-ongoing.active { background: #E1F5EE; color: #0F6E56; border-color: #5DCAA5; }
.status-btn.s-done.active  { background: #F1EFE8; color: #5F5E5A; border-color: #B4B2A9; }
.status-btn.s-hiatus.active{ background: #FAEEDA; color: #854F0B; border-color: #FAC775; }

/* 갤러리 그리드 */
#session_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

/* 카드 */
.session-card {
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    display: flex;
    flex-direction: column;
}
.session-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}
.session-card a { text-decoration: none; color: inherit; }

/* 썸네일 */
.session-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f5f5f5;
    overflow: hidden;
}
.session-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.session-thumb .no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 28px;
}
.session-thumb .status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 999px;
}
.badge-ongoing { background: #E1F5EE; color: #0F6E56; }
.badge-done    { background: #F1EFE8; color: #5F5E5A; }
.badge-hiatus  { background: #FAEEDA; color: #854F0B; }
.badge-default { background: rgba(0,0,0,0.45); color: #fff; }

/* 카드 정보 */
.session-info {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.session-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}
.meta-tag {
    font-size: 10px;
    color: #888;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 2px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.meta-date {
    font-size: 10px;
    color: #bbb;
    margin-top: auto;
}

/* 공지 카드 */
.session-card.hiatus {
    opacity: 0.45;
    filter: grayscale(20%);
}
.session-card.hiatus:hover {
    opacity: 0.75;
    filter: none;
}

.session-card.notice {
    border-color: #d0d0d0;
    background: #fafafa;
}
.session-card.notice .session-title::before {
    content: '공지 ';
    font-size: 10px;
    color: #fff;
    background: #555;
    border-radius: 3px;
    padding: 1px 5px;
    margin-right: 5px;
    vertical-align: middle;
    font-weight: 400;
}

/* 빈 목록 */
.session-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #bbb;
    font-size: 14px;
}

/* 하단 버튼 */
.session-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}


/* 진행도 바 */
.progress-wrap {
    position: relative;
    background: #f0f0f0;
    height: 4px;
    overflow: visible;
    margin-bottom: 18px;   /* 텍스트 공간 확보 */
}
.progress-bar {
    height: 100%;
    background: #4a7;
    border-radius: 2px;
    transition: width .3s;
}
.progress-txt {
    position: absolute;
    left: 0;
    top: 7px;              /* 바 아래쪽에 표시 */
    font-size: 10px;
    color: #aaa;
    white-space: nowrap;
}

/* 검색 */
#bo_sch {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}
#bo_sch legend { display: none; }
#bo_sch select,
#bo_sch input[type=text] {
    height: 34px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
    color: #333;
    background: #fff;
}
#bo_sch button {
    height: 34px;
    padding: 0 14px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

/* 뷰 페이지 */
#bo_v { max-width: 860px; margin: 0 auto; }
.session-view-header {
    padding: 0 0 20px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 32px;
}
/* 로그 영역 첫 이미지 여백 */
.session-log-area img:first-child:not(.message img),
.log-body > *:first-child img:not(.message img) {/* margin-top: 8px; */}
.session-view-cat {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}
.session-view-title {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    line-height: 1.35;
    margin-bottom: 14px;
}
.session-view-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.session-view-field {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 4px 10px;
}
.session-view-field .field-label {
    color: #aaa;
    font-size: 11px;
}
.thumb-progress {
    margin-top: 6px;
    border-radius: 2px;
}
.thumb-progress .progress-txt {
    left: 0;
    right: auto;
}

.session-view-content {
    font-size: 15px;
    line-height: 1.85;
    color: #333;
    margin-bottom: 32px;
    word-break: break-word;
}
.session-view-content img { max-width: 100%; height: auto; }

/* 반응형 */
@media (max-width: 600px) {
    #session_gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* 로그 영역 */
.session-log-area {
    margin: 24px 0;
}
.log-body {
    border-radius: 10px;
    overflow: hidden;
    max-height: 70vh;
    overflow-y: auto;
}
.log-body::-webkit-scrollbar { width: 8px; }
.log-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.08); border-radius: 4px; }
.log-body::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.30); border-radius: 4px; }
.log-body::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.50); }
