@charset "utf-8";

/* 무료슬롯(슬롯버프 스타일) 게시판 스킨 */

/* ---- 목록: 게임사 필터 탭 ---- */
.bo_freeslot_wrap {}
.freeslot_filter { margin-bottom: 20px; border-bottom: 1px solid var(--borderColor, #e5e5e5); }
.freeslot_filter_tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.freeslot_filter_tabs .freeslot_tab {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--contBg, #fff);
    color: var(--fontColor, #333);
    text-decoration: none;
    font-weight: 500;
    border: 1px solid var(--borderColor, #e5e5e5);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.freeslot_filter_tabs .freeslot_tab:hover { background: var(--primaryLight, #fff5eb); border-color: var(--primaryColor, #e67e22); color: var(--primaryColor, #e67e22); }
.freeslot_filter_tabs .freeslot_tab.active { background: var(--primaryColor, #e67e22); border-color: var(--primaryColor, #e67e22); color: #fff; }

/* ---- 목록: 상단 헤더 ---- */
.freeslot_list_header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.freeslot_total { font-size: 1.4rem; color: var(--fontColor, #333); }
.freeslot_total strong { color: var(--primaryColor, #e67e22); }
.freeslot_page { margin-left: 10px; color: var(--bovColor, #888); font-size: 1.2rem; }
.freeslot_actions { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

/* ---- 버튼 공통 ---- */
.btn_freeslot {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--borderColor, #e5e5e5);
    background: var(--contBg, #fff);
    color: var(--fontColor, #333);
    font-size: 1.3rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn_freeslot:hover { background: var(--primaryLight, #fff5eb); border-color: var(--primaryColor, #e67e22); color: var(--primaryColor, #e67e22); }
.btn_freeslot.btn_write { background: var(--primaryColor, #e67e22); border-color: var(--primaryColor, #e67e22); color: #fff; }
.btn_freeslot.btn_write:hover { opacity: 0.9; }
.btn_freeslot.btn_admin { padding: 8px 10px; }
/* 수정/삭제/더보기도 글쓰기와 같은 버튼 형태로 표시 */
.freeslot_actions .btn_freeslot { min-height: 38px; font-weight: 500; }
.freeslot_actions .btn_freeslot:not(.btn_write):not(.btn_admin) { background: var(--contBg, #fff); border: 1px solid var(--borderColor, #e0e0e0); }

/* ---- 목록: 카드 그리드 (slotbuff 스타일 큰 썸네일) ---- */
.freeslot_card_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
@media (min-width: 641px) {
    .freeslot_card_grid { column-gap: 24px; row-gap: 28px; }
}
@media (max-width: 640px) {
    .freeslot_card_grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.freeslot_card { position: relative; border: 1px solid var(--borderColor, #e5e5e5); border-radius: 8px; overflow: hidden; background: var(--contBg, #fff); transition: box-shadow 0.2s; }
.freeslot_card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.freeslot_card.current { border-color: var(--primaryColor, #e67e22); box-shadow: 0 0 0 2px var(--primaryLight, rgba(230,126,34,0.2)); }
.freeslot_card.is_notice { border-color: var(--gold, #f1c40f); }

.freeslot_card_chk { position: absolute; top: 6px; left: 6px; z-index: 2; }
.freeslot_card_chk input { margin: 0; }
.freeslot_card_link { display: block; text-decoration: none; color: inherit; }
.freeslot_card_img {
    display: block;
    position: relative;
    width: 100%;
    /* 슬롯버프처럼 가로형 썸네일 (16:9 비율) */
    aspect-ratio: 16 / 9;
    background: var(--contBgGray, #f5f5f5);
    overflow: hidden;
}
.freeslot_card_img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: top;
    transition: transform 0.25s ease-out;
}
.freeslot_card:hover .freeslot_card_img img {
    transform: scale(1.03);
}
.freeslot_noimg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--bovColor, #999); background: var(--contBgGray, #f0f0f0); }
.freeslot_card_badge {
    position: absolute; top: 8px; left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 1.1rem; font-weight: bold;
}
.freeslot_card_badge.notice { background: var(--gold, #f1c40f); color: #333; }
.freeslot_card_badge.new { background: var(--primaryColor, #e67e22); color: #fff; }
.freeslot_card_title {
    display: block;
    padding: 10px 10px 4px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--fontColor, #333);
}
.freeslot_card_sub {
    display: block;
    padding: 0 10px 10px;
    font-size: 1.2rem;
    color: var(--bovColor, #666);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.freeslot_empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--bovColor, #888); font-size: 1.4rem; }
.freeslot_chk_all { margin-bottom: 10px; }

/* ---- 목록: 푸터 / 검색 ---- */
.freeslot_list_footer { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.freeslot_search { display: none; position: relative; }
.freeslot_search.search_modal { padding: 20px; border: 1px solid var(--borderColor); border-radius: 8px; background: var(--contBg); }
.freeslot_search .modal_title { margin-bottom: 10px; font-weight: bold; }
.freeslot_search select, .freeslot_search input[type="text"] { margin-right: 8px; padding: 8px; border: 1px solid var(--borderColor); border-radius: 4px; }
.freeslot_search .search_mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.3); z-index: 100; }
.freeslot_search .modal_close { margin-left: 8px; }

/* ---- 글보기 ---- */
.bo_freeslot_view {}
.freeslot_view_header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--borderColor, #e5e5e5); }
.freeslot_view_title { font-size: 2rem; margin: 0 0 12px; line-height: 1.35; }
.freeslot_view_cate { display: inline-block; margin-right: 8px; padding: 4px 10px; border-radius: 4px; background: var(--primaryColor, #e67e22); color: #fff; font-size: 1.2rem; font-weight: bold; }
.freeslot_view_meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 1.3rem; color: var(--bovColor, #666); margin-bottom: 12px; }
.freeslot_view_meta .writer { font-weight: 500; color: var(--fontColor, #333); }
.freeslot_view_buttons { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; flex-shrink: 0; }
.freeslot_view_buttons .btn_freeslot { white-space: nowrap; }
/* 게시글 보기 상단 버튼(목록보기/글쓰기/수정/삭제/답변/더보기) 버튼 형태 */
.freeslot_view_buttons .btn_freeslot {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 38px; padding: 8px 14px;
    border: 1px solid var(--borderColor, #e0e0e0);
    border-radius: 6px;
    background: var(--contBg, #fff);
    color: var(--fontColor, #333);
    font-size: 1.3rem; font-weight: 500;
    text-decoration: none; cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.freeslot_view_buttons .btn_freeslot:hover {
    background: var(--primaryLight, #f5f5f5);
    border-color: var(--primaryColor, #e67e22);
    color: var(--primaryColor, #e67e22);
}
.freeslot_view_buttons .btn_freeslot[title="글쓰기"],
.freeslot_view_buttons a.btn_freeslot:has(.fa-pencil) {
    background: var(--primaryColor, #e67e22);
    border-color: var(--primaryColor, #e67e22);
    color: #fff;
}
.freeslot_view_buttons .btn_freeslot[title="글쓰기"]:hover,
.freeslot_view_buttons a.btn_freeslot:has(.fa-pencil):hover { opacity: 0.9; color: #fff; }
.freeslot_view_body { margin-bottom: 24px; }
/* 티비형 무료체험 블록 */
.freeslot_tv_block { margin-bottom: 24px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,0.12); border: 1px solid var(--borderColor, #e5e5e5); }
.freeslot_tv_poster { position: relative; width: 100%; padding-bottom: 56.25%; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); }
.freeslot_tv_poster_img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.freeslot_tv_poster_placeholder { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: rgba(255,255,255,0.3); font-size: 4rem; }
/* 화면 중앙 플레이 버튼 (티비형) */
.freeslot_tv_play_btn_center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 36px; background: #f1c40f; color: #1a1a1a; font-size: 1.6rem; font-weight: 700; border-radius: 50px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap; box-shadow: 0 4px 20px rgba(241, 196, 15, 0.5); z-index: 2; }
.freeslot_tv_play_btn_center:hover { color: #1a1a1a; transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 6px 24px rgba(241, 196, 15, 0.6); }
.freeslot_tv_play_btn_center .fa-play { font-size: 1.2em; }
.freeslot_tv_overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 20px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; align-items: center; }
.freeslot_tv_title { min-width: 0; color: #fff; font-size: 1.35rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.freeslot_tv_play_btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; background: var(--primaryColor, #e67e22); color: #fff; font-size: 1.4rem; font-weight: 600; border-radius: 8px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap; }
.freeslot_tv_play_btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(230, 126, 34, 0.4); }
.freeslot_view_images_extra { margin-top: 16px; }
.freeslot_view_images { margin-bottom: 16px; }
.freeslot_view_images .view_image { display: inline-block; margin: 0 8px 8px 0; }
.freeslot_view_images .view_image img { max-width: 100%; height: auto; border-radius: 6px; }
.freeslot_view_content { line-height: 1.7; }
.freeslot_view_content iframe { max-width: 100%; border: 0; border-radius: 6px; }
/* 본문 내 노출되지 말아야 할 URL/파일명 텍스트 숨김 (필터 후 남은 경우) */
.freeslot_view_content p:empty { display: none; }
.freeslot_view_react { display: flex; gap: 12px; margin-top: 16px; }
.freeslot_view_react .btn_react { padding: 8px 14px; border-radius: 6px; border: 1px solid var(--borderColor); background: var(--contBg); text-decoration: none; color: var(--fontColor); }
.freeslot_view_react .btn_react:hover { background: var(--primaryLight); border-color: var(--primaryColor); color: var(--primaryColor); }
.freeslot_view_react .btn_react.active { background: var(--primaryColor); border-color: var(--primaryColor); color: #fff; }
.freeslot_view_files, .freeslot_view_links { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--borderColor); }
.freeslot_view_files ul, .freeslot_view_links ul { list-style: none; margin: 0; padding: 0; }
.freeslot_view_files li, .freeslot_view_links li { margin-bottom: 6px; }
.freeslot_view_move { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.freeslot_view_move .prev, .freeslot_view_move .next { padding: 12px; border: 1px solid var(--borderColor); border-radius: 6px; background: var(--contBg); text-decoration: none; color: var(--fontColor); font-size: 1.3rem; }
.freeslot_view_move .label { display: block; font-size: 1.1rem; color: var(--bovColor); margin-bottom: 4px; }
.freeslot_comment_opener { width: 100%; margin-top: 16px; padding: 12px; border: 1px solid var(--borderColor); border-radius: 6px; background: var(--contBg); cursor: pointer; text-align: left; font-size: 1.4rem; }
.freeslot_comment { margin-top: 12px; }
.freeslot_comment .comment { padding: 12px 0; border-bottom: 1px solid var(--borderColor); }
.freeslot_comment .comment_info { margin-bottom: 6px; font-size: 1.2rem; color: var(--bovColor); }
.freeslot_comment .comment_contents { margin-bottom: 8px; }
.freeslot_comment p.empty { margin: 20px 0; padding: 20px; text-align: center; color: var(--bovColor, #888); font-size: 1.35rem; background: var(--contBg, #fafafa); border-radius: 8px; border: 1px dashed var(--borderColor, #e5e5e5); }

/* ---- 댓글쓰기 (freeslot) 하단 정리 ---- */
.freeslot_comment_write { margin-top: 24px; padding: 20px; border: 1px solid var(--borderColor, #e5e5e5); border-radius: 10px; background: var(--contBg, #fff); }
.freeslot_comment_write .write_writer { display: flex; gap: 10px; margin-bottom: 12px; }
.freeslot_comment_write .write_writer .frm_input { flex: 1; max-width: 160px; padding: 10px 12px; border: 1px solid var(--borderColor); border-radius: 6px; font-size: 1.3rem; }
.freeslot_comment_write .freeslot_comment_textarea { display: block; width: 100%; min-height: 100px; padding: 12px 14px; margin: 0 0 14px; border: 1px solid var(--borderColor); border-radius: 8px; font-size: 1.4rem; line-height: 1.5; resize: vertical; box-sizing: border-box; }
.freeslot_comment_write .btn_confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.freeslot_comment_write .chk_box { display: flex; align-items: center; }
.freeslot_comment_write .chk_box label { margin: 0; font-size: 1.3rem; cursor: pointer; }
.freeslot_comment_write .btn_submit { padding: 10px 24px; border: none; border-radius: 8px; background: var(--primaryColor, #e67e22); color: #fff; font-size: 1.4rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.freeslot_comment_write .btn_submit:hover { opacity: 0.9; }
.freeslot_comment_write .empty { margin: 16px 0 0; padding: 16px; text-align: center; color: var(--bovColor, #666); font-size: 1.3rem; border-top: 1px solid var(--borderColor); }

/* ---- 글쓰기 (freeslot) ---- */
#bo_freeslot_write .btn_confirm { display: flex; gap: 10px; margin-top: 20px; }
#bo_freeslot_write .btn_cancel { text-decoration: none; }
#bo_freeslot_write .btn_submit { background: var(--primaryColor, #e67e22); border-color: var(--primaryColor); color: #fff; }
