@charset "utf-8";

/* =========================================================
   1. [전체 서브페이지 공통] 138px 인라인 패딩 강제 제거
   ========================================================= */
html body #wrapper,
html body #container,
html body #contents_wrap,
html body .contents_wrap,
html body .sub_content_wrap,
html body .container_wrap,
html body #btd_main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

html body div[class*="space"],
html body div[id*="space"] {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

:root {
    --btd-container: 1280px;
    --btd-green: #a9c86f;
    --btd-green-dark: #6f8f3d;
    --btd-text: #20231f;
    --btd-sub: #777c75;
    --btd-border: #dedfdc;
    --btd-border-soft: #eceeeb;
}

/* 메인은 PC 고정폭. 화면이 좁으면 일반 가로 스크롤만 허용하며
   사이트 헤더/메뉴의 크기와 브레이크포인트를 강제로 바꾸지 않는다. */
html:has(#btd_main), body:has(#btd_main) {
    overflow-x: visible !important;
}

#aside { display: none !important; }

#btd_main, #btd_main * {
    box-sizing: border-box !important;
}

#btd_main {
    display: flow-root !important;
    width: 100% !important;
    margin: 0 !important;
    background: #fff;
    color: var(--btd-text);
}

#btd_main a { color: inherit; text-decoration: none; }
#btd_main ul, #btd_main li { list-style: none; margin: 0; padding: 0; }
#btd_main button { font-family: inherit; border: 0; background: none; }

/* =========================================================
   2. MAIN SLIDER (100vw Full Background & Bottom Controls)
   ========================================================= */
.btd_main_slider {
    display: flow-root !important;
    position: relative !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 30px 0 25px !important;
    background: #0d0d0d !important;
}

.btd_slider_view {
    position: relative !important;
    width: 1280px !important;
    max-width: calc(100% - 40px) !important;
    height: 400px !important;
    margin: 0 auto !important;
    overflow: hidden !important;
    background: #0d0d0d !important;
}

.btd_slider_track {
    display: flex !important;
    gap: 0px !important;
    height: 100% !important;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.btd_slider_card {
    position: relative !important;
    width: 320px !important;
    height: 100% !important;
    flex: 0 0 320px !important;
    border-radius: 0px !important;
    overflow: hidden !important;
    background: #242723 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.btd_slider_card a { display: block; width: 100%; height: 100%; }
/* Subtle separator sits over the image; never changes the 320px card width. */
.btd_slider_card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: 5;
}

.btd_slider_image { position: absolute; inset: 0; width: 100%; height: 100%; }
.btd_slider_image img { width: 100% !important; height: 100% !important; object-fit: cover !important; display: block !important; border: 0 !important; }

.btd_slider_gradient {
    position: absolute; left: 0; right: 0; bottom: 0; height: 65%;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.8) 50%, rgba(0,0,0,0.95) 100%);
    pointer-events: none;
}

.btd_slider_info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; color: #fff; }
.btd_slider_category {
    display: inline-flex; align-items: center;
    height: 22px; padding: 0 8px; border-radius: 3px;
    background: var(--btd-green); color: #1d2614; font-size: 11px; font-weight: 800;
}
.btd_slider_info h2 {
    margin: 8px 0 0; font-size: 15px; line-height: 1.35; font-weight: 700; color: #fff;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.btd_slider_meta { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: rgba(255,255,255,0.7); font-size: 11px; }

/* 하단 슬라이드 컨트롤러 */
.btd_slider_controls_wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 1280px !important;
    max-width: calc(100% - 40px) !important;
    margin: 16px auto 0 auto !important;
}

.btd_slider_arrow {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: #2a2a2a !important;
    color: #fff !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    transition: background 0.2s, border-color 0.2s !important;
}

.btd_slider_arrow:hover {
    background: var(--btd-green) !important;
    color: #1d2614 !important;
    border-color: var(--btd-green) !important;
}

.btd_slider_dots {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.btd_slider_dot {
    width: 8px !important;
    height: 8px !important;
    background: #444444 !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    transition: background 0.2s, transform 0.2s !important;
}

.btd_slider_dot.active {
    background: var(--btd-green) !important;
    transform: scale(1.2) !important;
}

/* =========================================================
   3. LAYOUT CONTAINER & SECTION HEAD (1280px)
   ========================================================= */
.btd_container {
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 40px 20px 80px !important;
}

.btd_section_head {
    display: flex !important; align-items: center; justify-content: space-between;
    height: 38px; margin-bottom: 12px; border-bottom: 2px solid var(--btd-text);
}
.btd_section_head h3 { margin: 0; color: var(--btd-text); font-size: 17px; font-weight: 800; }

/* =========================================================
   4. TOP AREA (뉴스/정보 | 포럼 | 빅배스 랭킹)
   ========================================================= */
.btd_top_area {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 280px !important;
    gap: 30px !important;
    margin-bottom: 40px !important;
}

.btd_board_tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.btd_board_tabs button {
    height: 26px; padding: 0 12px; border: 1px solid var(--btd-border); border-radius: 3px;
    background: #fff; color: #666; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btd_board_tabs button.active {
    border-color: var(--btd-green); background: var(--btd-green); color: #1d2614; font-weight: 700;
}

.btd_board_list li { height: 35px; border-bottom: 1px solid var(--btd-border-soft); }
.btd_board_list li a { display: flex; align-items: center; width: 100%; height: 100%; }
.btd_board_title {
    flex: 1; min-width: 0; overflow: hidden; padding-right: 8px;
    color: #333; font-size: 13px; white-space: nowrap; text-overflow: ellipsis;
}
.btd_board_title em { color: #e27c66; font-style: normal; margin-left: 4px; font-weight: 700; }
.btd_board_writer { flex: 0 0 80px; color: #999; font-size: 11px; text-align: right; }

.btd_ranking_list li { display: flex; align-items: center; height: 38px; border-bottom: 1px solid var(--btd-border-soft); }
.btd_rank_number { width: 24px; color: #555; font-size: 12px; font-weight: 700; text-align: center; }
.btd_rank_avatar { width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: #ccc; flex-shrink: 0; }
.btd_ranking_list strong { flex: 1; color: #333; font-size: 12px; font-weight: 600; }
.btd_rank_score { color: var(--btd-green-dark); font-size: 12px; font-weight: 800; }

/* =========================================================
   5. BANNER AREA (bo_table=ad 이미지 배너 150px)
   ========================================================= */
.btd_banner_area {
    display: grid !important; 
    grid-template-columns: 1fr 1fr !important; 
    gap: 20px !important; 
    margin-bottom: 40px !important;
}

.btd_banner_box {
    position: relative !important;
    width: 100% !important;
    height: 150px !important; /* 요청하신 높이 150px */
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #1a1a1a !important;
}

.btd_banner_item {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out !important;
    display: block !important;
}

.btd_banner_item.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.btd_banner_item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 이미지 비율에 맞게 깔끔하게 꽉 차도록 */
    border-radius: 8px !important;
    display: block !important;
}

.btd_banner_empty {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #666 !important;
    font-size: 13px !important;
    border: 1px dashed #333 !important;
    border-radius: 8px !important;
}

/* =========================================================
   6. BOTTOM AREA (회원 조행기 & 커뮤니티 인기글)
   ========================================================= */
.btd_bottom_area {
    display: grid !important; grid-template-columns: minmax(0, 1fr) 280px !important; gap: 30px !important;
}

.btd_fishing_features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btd_fishing_feature_image { width: 100%; height: 165px; border-radius: 6px; overflow: hidden; background: #222; }
.btd_fishing_feature_image img { width: 100%; height: 100%; object-fit: cover; }
.btd_fishing_feature h4 { margin: 10px 0 4px; font-size: 14px; font-weight: 700; color: var(--btd-text); }
.btd_fishing_feature p { margin: 0; font-size: 12px; color: var(--btd-sub); line-height: 1.4; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.btd_fishing_meta { margin-top: 8px; color: #999; font-size: 11px; }

.btd_fishing_sub_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.btd_fishing_sub_item { display: flex; gap: 12px; align-items: center; }
.btd_fishing_sub_item img { width: 75px; height: 55px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.btd_fishing_sub_item strong { font-size: 12px; color: #333; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btd_fishing_sub_item span { font-size: 11px; color: #999; display: block; margin-top: 2px; }

.btd_community_image { width: 100%; height: 145px; border-radius: 6px; overflow: hidden; background: #222; }
.btd_community_image img { width: 100%; height: 100%; object-fit: cover; }
.btd_community_feature h4 { margin: 8px 0 4px; font-size: 13px; font-weight: 700; }
.btd_community_feature p { font-size: 11px; color: var(--btd-sub); margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.btd_community_feature span { font-size: 11px; color: #999; }

.btd_community_list { margin-top: 10px; }
.btd_community_list li { border-top: 1px solid var(--btd-border-soft); padding: 8px 0; }
.btd_community_list strong { display: block; font-size: 12px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btd_community_list span { display: block; margin-top: 3px; color: #999; font-size: 11px; }

/* =========================================================
   7. DARK MODE OVERRIDES FOR MAIN
   ========================================================= */
body.dark-mode #btd_main {
    --btd-text: #e9ece6;
    --btd-sub: #929990;
    --btd-border: #30352f;
    --btd-border-soft: #252a25;
    background: #121212 !important;
    color: var(--btd-text) !important;
}

body.dark-mode #btd_main .btd_section_head { border-bottom-color: var(--btd-border) !important; }
body.dark-mode #btd_main .btd_section_head h3 { color: #e9ece6 !important; }
body.dark-mode #btd_main .btd_board_title { color: #d0d5ce !important; }
body.dark-mode #btd_main .btd_board_list li { border-bottom-color: var(--btd-border-soft) !important; }
body.dark-mode #btd_main .btd_ranking_list li { border-bottom-color: var(--btd-border-soft) !important; }
body.dark-mode #btd_main .btd_ranking_list strong { color: #e9ece6 !important; }
body.dark-mode #btd_main .btd_fishing_feature h4,
body.dark-mode #btd_main .btd_community_feature h4,
body.dark-mode #btd_main .btd_fishing_sub_item strong,
body.dark-mode #btd_main .btd_community_list strong { color: #e9ece6 !important; }

body.dark-mode #btd_main .btd_board_tabs button {
    border-color: #343a34 !important; background: #191d19 !important; color: #9a9f98 !important;
}
body.dark-mode #btd_main .btd_board_tabs button.active {
    border-color: var(--btd-green-dark) !important; background: var(--btd-green-dark) !important; color: #fff !important;
}



/* =========================================================
   [FIX] 탭 버튼 주간모드 그린 포인트 및 번호 뱃지 스타일
   ========================================================= */
.btd_board_tabs .tab_btn.active {
    background-color: #a9c86f !important; /* 주간 모드 활성 탭 그린 포인트 */
    color: #fff !important;
    font-weight: 600;
}

body.dark-mode .btd_board_tabs .tab_btn.active {
    background-color: #333 !important;    /* 야간 모드 활성 탭 다크톤 */
    color: #fff !important;
}

/* 리스트 순위 번호 뱃지 (1~10) 디자인 */
.btd_board_list li a {
    display: flex !important;
    align-items: center !important;
}

.btd_num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    background-color: #e9ecef !important;
    color: #495057 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 3px !important;
    margin-right: 10px !important;
}

body.dark-mode .btd_num {
    background-color: #272a30 !important;
    color: #e1e7ed !important;
}

/* =========================================================
   [COLOR FIX] 메인 인덱스 탭 및 포인트 컬러 #8ed100 적용
   ========================================================= */
.btd_board_tabs .tab_btn.active {
    background-color: #8ed100 !important; /* 상큼한 연두/초록 포인트 컬러 */
    color: #fff !important;
    font-weight: 600;
}

body.dark-mode .btd_board_tabs .tab_btn.active {
    background-color: #333 !important;    /* 다크모드일 때는 기존 다크톤 유지 */
    color: #fff !important;
}

/* =========================================================
   6-A. 회원 조행기 탭형 리스트 위젯
   ========================================================= */
.btd_bottom_area {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    align-items: start;
}

.btd_fishing_section {
    grid-column: span 2;
}

.btd_fishing_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btd_fishing_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btd_fishing_tabs .tab_btn {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid var(--btd-border-soft);
    background: #f7f8f6;
    color: #7a8176;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.btd_fishing_tabs .tab_btn.active {
    background: var(--btd-green-soft);
    color: var(--btd-green-dark);
    border-color: rgba(124, 171, 46, 0.25);
}

.btd_fishing_list_v2 {
    display: grid;
    gap: 14px;
}

.btd_fishing_row_v2 {
    display: grid;
    grid-template-columns: 158px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid var(--btd-border-soft);
    text-decoration: none;
}

.btd_fishing_row_v2:first-child {
    padding-top: 4px;
}

.btd_fishing_row_v2:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.btd_fishing_row_thumb {
    width: 158px;
    height: 92px;
    border-radius: 10px;
    overflow: hidden;
    background: #e9ece8;
}

.btd_fishing_row_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btd_fishing_row_body {
    min-width: 0;
}

.btd_fishing_badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--btd-green-soft);
    color: var(--btd-green-dark);
    font-size: 11px;
    font-weight: 700;
}

.btd_fishing_row_title {
    display: block;
    margin-bottom: 6px;
    color: var(--btd-text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btd_fishing_row_desc {
    margin: 0;
    color: var(--btd-sub);
    font-size: 13px;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.btd_fishing_row_meta {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    color: #8b9188;
    font-size: 12px;
}

.btd_fishing_row_meta .writer {
    color: #6d7469;
    font-weight: 600;
}

.btd_empty_box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    border: 1px dashed var(--btd-border-soft);
    border-radius: 12px;
    color: var(--btd-sub);
    font-size: 13px;
}





body.dark-mode #btd_main .btd_fishing_tabs .tab_btn {
    background: #171b17;
    border-color: #2b302c;
    color: #9aa198;
}

body.dark-mode #btd_main .btd_fishing_tabs .tab_btn.active {
    background: rgba(124, 171, 46, 0.14);
    border-color: rgba(124, 171, 46, 0.25);
    color: #c4e17f;
}

body.dark-mode #btd_main .btd_fishing_row_v2 {
    border-bottom-color: #232823;
}

body.dark-mode #btd_main .btd_fishing_row_title {
    color: #edf1ea;
}

body.dark-mode #btd_main .btd_fishing_row_desc {
    color: #9aa198;
}

body.dark-mode #btd_main .btd_fishing_row_meta {
    color: #7e867d;
}

body.dark-mode #btd_main .btd_fishing_row_meta .writer {
    color: #b7bdb4;
}

body.dark-mode #btd_main .btd_empty_box {
    border-color: #2b302c;
    color: #90988e;
}
