@charset "utf-8";

/* ==========================================================================
   견적문의 게시판 목록 - 시공갤러리 스타일과 통일
   ========================================================================== */

/* Pretendard 폰트 로드 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* 전역 설정 */
#bo_list {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
    background: #ffffff;
    border: none;
    overflow: hidden;
    margin: 20px auto;
    max-width: 1200px;
}

.bo_list_innr {
    padding: 30px;
}

/* 카테고리 네비게이션 - 개선된 스타일 */
.modern-category-section {
    margin: 0 auto 15px;
    padding: 0;
    position: relative;
    max-width: 1200px;
    visibility: visible;
    opacity: 1;
}

.category-container {
    background: #ffffff;
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 0 30px;
}

.category-wrapper {
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 0;
    position: relative;
    min-height: 68px;
    max-height: 68px;
}

.modern-category-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px 18px;
    background: #ffffff;
    color: #333333;
    text-decoration: none;
    border-radius: 13px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
    transition: all 0.2s ease;
    overflow: hidden;
    min-height: 60px;
    max-height: 60px;
    flex: 1;
    border: 1px solid #e9ecef;
    margin: 0;
    box-sizing: border-box;
}

.modern-category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.modern-category-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    transition: transform 0.5s ease;
    z-index: 2;
}

.category-text {
    position: relative;
    z-index: 3;
    transition: transform 0.2s ease;
    white-space: nowrap;
    display: block;
    text-align: center;
}

.modern-category-item:hover {
    background: #f8f9fa;
    color: #333333;
    transform: translateY(-1px); /* -2px에서 -1px로 줄임 */
    box-shadow: 0 6px 20px rgba(102,126,234,0.15);
    border-color: #667eea;
}

.modern-category-item:hover .category-text {
    transform: scale(1.05);
}

.modern-category-item.active {
    background: transparent;
    color: #ffffff;
    font-weight: 700;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102,126,234,0.3);
    border-color: #667eea;
    border-radius: 13px !important;
}

.modern-category-item.active {
    border-radius: 13px !important;
}

.modern-category-item.active::before {
    opacity: 1;
}

.modern-category-item.active::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.6s ease;
}

.modern-category-item.active .category-text {
    transform: scale(1.08);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 기존 카테고리 스타일 숨기기 */
#bo_cate {
    display: none;
}

/* 목록 헤더 */
.bo_list_total {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 5px;
    padding: 5px 0;
    background: transparent;
    border: none;
    text-align: left;
}

/* 목록 테이블 스타일 */
.list_head {
    display: flex;
    background: #ffffff;
    color: #333;
    font-weight: 700;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 2px solid #e9ecef;
}

.list_head li {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
}

.list_head li.sel {
    display: none;
}

/* 관리자일 때 체크박스를 상태 뒤쪽에 표시 */
.list_head li.sel.admin-after {
    display: flex !important;
    position: relative;
    width: 50px;
    justify-content: center;
    align-items: center;
    order: 10;
}

/* 관리자 스타일 제거 */

/* 관리자 스타일 제거 */

.list_head li.num {
    width: 60px;
    margin-left: -12px;
}

.list_head li.wri {
    width: 100px;
    margin-left: -10px;
    padding-left: 30px;
}

.list_head li.tit {
    width: 40%;
    justify-content: flex-start;
    padding-left: 100px;
}

.list_head li.view {
    width: 90px;
    padding-left: 5px;
}

.list_head li.date {
    width: 120px;
    padding-left: 30px;
}

.list_head li.admin-check {
    width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-align: center;
}

/* 목록 아이템 */
.list_03 {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 20px;
    position: relative;
}

.list_03::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #dee2e6;
    border-radius: 0 0 12px 12px;
}

.list_03 li {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.list_03 li:last-child {
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.list_03 li:hover {
    background: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-0.1px); /* -0.3px에서 -0.1px로 줄임 */
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.list_03 li .sel {
    display: none;
}

/* 관리자일 때 체크박스를 상태 뒤쪽에 표시 */
.list_03 li .sel.admin-after {
    display: flex !important;
    position: relative;
    width: 50px;
    justify-content: center;
    align-items: center;
    order: 10;
}

.list_03 li .num {
    width: 60px;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
}

.list_03 li .wri {
    width: 100px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
}

.list_03 li .tit {
    width: 40%;
    padding-left: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list_03 li .tit .category_badge {
    background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
    color: #495057;
    padding: 4px 8px;
    border-radius: 4px; /* 12px에서 4px로 변경 - 상태 라운드 정도 */
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid #dee2e6;
    margin-left: 0;
    line-height: 1.2;
    height: auto;
    display: inline-flex;
    align-items: center;
}

.list_03 li .tit a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: block;
    line-height: 1.4;
    flex: 1;
}

.list_03 li .tit a:hover {
    color: #667eea;
}

.list_03 li .view {
    width: 90px;
    text-align: center;
    font-size: 14px;
    color: #6c757d;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list_03 li .date {
    width: 120px;
    text-align: center;
    font-size: 13px;
    color: #6c757d;
}

/* 상태 표시 - 더 깔끔하게 */
.request_0 {
    background: linear-gradient(135deg, #17BBE1 0%, #1E9FD8 100%) !important;
    color: #fff !important;
    font-size: 11px !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(23, 187, 225, 0.3) !important;
    position: absolute !important;
    left: 35% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
}

.request_1 {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%) !important;
    color: #fff !important;
    font-size: 11px !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3) !important;
    position: absolute !important;
    left: 35% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
}

.request_2 {
    background: linear-gradient(135deg, #FF4D4D 0%, #E63946 100%) !important;
    color: #fff !important;
    font-size: 11px !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 4px 8px !important;
    border-radius: 12px !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 6px rgba(255, 77, 77, 0.3) !important;
    position: absolute !important;
    left: 35% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    text-align: center !important;
}

/* 검색 영역 */
#bo_sch {
    float: none;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    max-width: 500px;
}

#bo_sch select {
    width: 140px;
    height: 48px;
    border: none;
    background: #f8f9fa;
    padding: 0 15px;
    font-size: 14px;
    font-weight: 600;
}

#bo_sch .sch_input {
    flex: 1;
    height: 48px;
    padding: 0 15px;
    border: none;
    background: transparent;
    font-size: 14px;
}

#bo_sch .sch_input:focus {
    outline: none;
}

#bo_sch .sch_btn {
    width: 48px;
    height: 48px;
    border: none;
    background: #667eea;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#bo_sch .sch_btn:hover {
    background: #5a6fd8;
}

/* 글쓰기 버튼 */
.btn_top2 {
    position: absolute;
    right: 20px;
    bottom: 23px;
    display: inline-block;
}

.btn_top2 li {
    display: inline-block;
    margin: 0;
}

.btn_top2 button,
.btn_top2 a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn_top2 button:hover,
.btn_top2 a:hover {
    transform: translateY(-0.5px); /* -1px에서 -0.5px로 줄임 */
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 글쓰기 버튼 아이콘 - 상단은 아이콘만 */
.btn_top2 a {
    font-size: 16px;
    min-width: auto;
    height: auto;
    border-radius: 8px;
    padding: 15px 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: 8px;
}

/* 하단 글쓰기 버튼 - 아이콘과 텍스트 */
.bo_fx .btn_bo_user .bottom_write_btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
}

.bo_fx .btn_bo_user .bottom_write_btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3) !important;
    color: white !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%) !important;
}

/* 견적문의 작성 버튼 - 독립 섹션 */
.write_btn_section {
    margin: 5px 0;
    padding: 0;
    position: relative;
}

.write_btn_container {
    max-width: 100%;
    margin: 0;
    position: relative;
    text-align: right;
    z-index: 10;
    padding-right: 0;
}

.main_write_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 600;
    border: none;
    position: relative;
    z-index: 100;
    margin-right: 20px;
}

.main_write_btn:hover {
    transform: translateY(-1px); /* -2px에서 -1px로 줄임 */
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
}

/* 하단 옵션 */
#bo_li_op {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.bo_fx {
    margin: 5px 0px;
    padding: 10px 0px 0px 20px;
    border-top: none;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.bo_fx .btn_bo_user {
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}

/* 기존 스타일 충돌 방지 */
.bo_fx .btn_bo_user li a {
    display: inline-flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* 기존 request_2 스타일 무력화 */
.bo_fx .btn_bo_user .request_2 {
    background: linear-gradient(135deg, #FF4D4D 0%, #E63946 100%) !important;
    color: #fff !important;
    font-size: 12px !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 6px 12px !important;
    border-radius: 15px !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    font-weight: 600 !important;
}

/* 페이지네이션 */
.pg_wrap {
    text-align: center;
    margin: 10px 0;
}

.pg_wrap .pg {
    display: inline-flex;
    gap: 8px;
    background: #fff;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.pg_wrap .pg a,
.pg_wrap .pg strong {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 14px;
}

.pg_wrap .pg a {
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.pg_wrap .pg a:hover {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: scale(1.1);
}

.pg_wrap .pg strong {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 반응형 디자인 - 중간 화면 */
@media screen and (max-width: 1024px) {
    .list_head {
        display: none !important;
    }
    
    #bo_li_01 > .list_head {
        display: none !important;
    }
    
    .list_03 li .sel {
        display: none !important;
    }
    
    .list_03 li .sel.admin-check {
        display: none !important;
    }
    
    .list_03 li .tit {
        width: 60%;
    }
    
    .list_03 li .wri {
        display: none;
    }
    
    .list_03 li .view {
        width: 20%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .list_03 li .date {
        width: 20%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .request_0,
    .request_1,
    .request_2 {
        font-size: 10px !important;
        padding: 3px 6px !important;
        min-width: 45px !important;
    }
}

/* 반응형 디자인 - 작은 화면 */
@media screen and (max-width: 768px) {
    #bo_list {
        margin: 0;
        border-radius: 0;
    }
    
    .bo_list_innr {
        padding: 10px;
    }
    
    .modern-category-section {
        padding: 0;
        margin-bottom: 25px;
    }
    
    .category-container {
        margin: 0 2px;
        border-radius: 4px; /* 모바일에서도 동일한 라운드 적용 */
    }
    
    .category-wrapper {
        min-height: 100px;
        max-height: 100px;
        padding: 4px;
    }
    
    
    .category-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
    }
    
    .modern-category-item {
        padding: 12px 6px;
        font-size: 12px;
        min-height: 40px;
        border-radius: 4px; /* 모바일에서도 동일한 라운드 적용 */
        margin: 0;
        border: 1px solid #e9ecef;
    }
    
    .category-text {
        font-size: 12px;
    }
    
    .modern-category-item.active {
        border-radius: 12px !important;
    }
    
    .list_head {
        display: none !important;
    }
    
    #bo_li_01 > .list_head {
        display: none !important;
    }
    
    .list_03 li .sel {
        display: none !important;
    }
    
    .list_03 li .sel.admin-check {
        display: none !important;
    }
    
    .list_03 li {
        padding: 15px 15px 15px 5px;
    }
    
    .list_03 li:last-child {
        margin-bottom: 15px;
        border-bottom: 2px solid #dee2e6 !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .list_03::after {
        height: 2px;
    }
    
    .list_03 li .tit {
        width: 70%;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        padding-left: 0;
    }
    
    .list_03 li .wri {
        display: none;
    }
    
    .list_03 li .view {
        width: 15%;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    
    .list_03 li .date {
        width: 15%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #bo_sch {
        margin: 15px 0;
    }
    
    #bo_sch select {
        width: 100px;
        font-size: 13px;
    }
    
    #bo_sch .sch_input {
        font-size: 13px;
    }
    
    .btn_top2 {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn_top2 button,
    .btn_top2 a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    /* 견적문의 작성 버튼 모바일 */
    .write_btn_section {
        margin: 20px 0;
        padding: 0;
    }
    
    .write_btn_container {
        text-align: center;
    }
    
    .main_write_btn {
        padding: 16px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
        margin-right: 0;
    }
}

@media screen and (max-width: 480px) {
    #bo_list {
        margin: 0;
    }
    
    .bo_list_innr {
        padding: 8px;
    }
    
    .modern-category-section {
        padding: 0;
        margin-bottom: 20px;
    }
    
    .category-container {
        margin: 0 1px;
        border-radius: 10px;
    }
    
    .category-wrapper {
        min-height: 95px;
        max-height: 95px;
        padding: 4px;
    }
    
    
    .category-wrapper {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
    }
    
    .modern-category-item {
        padding: 10px 4px;
        font-size: 11px;
        min-height: 38px;
        border-radius: 10px;
        font-weight: 500;
        letter-spacing: 0;
        border: 1px solid #e9ecef;
    }
    
    .category-text {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .modern-category-item.active {
        border-radius: 10px !important;
    }
    
    .list_03 li {
        padding: 12px;
    }
    
    .list_03 li .tit a {
        font-size: 14px;
    }
    
    .list_03 li .num,
    .list_03 li .view,
    .list_03 li .date {
        font-size: 12px;
    }
    
    .request_0,
    .request_1,
    .request_2 {
        padding: 3px 6px !important;
        font-size: 9px !important;
        min-width: 35px !important;
    }
    
    .list_03 li .tit .category_badge {
        background: linear-gradient(135deg, #f1f3f5 0%, #e9ecef 100%);
        color: #495057;
        padding: 4px 8px;
        font-size: 10px;
        border: 1px solid #dee2e6;
        line-height: 1.2;
        height: auto;
        display: inline-flex;
        align-items: center;
    }
    
    /* 견적문의 작성 버튼 작은 모바일 */
    .write_btn_section {
        margin: 15px 0;
        padding: 0;
    }
    
    .write_btn_container {
        text-align: center;
    }
    
    .main_write_btn {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
        margin-right: 0;
    }
}

/* 접근성 개선 */
.sound_only {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* 포커스 상태 개선 */
.modern-category-item:focus,
.list_03 li .tit a:focus,
#bo_sch .sch_input:focus,
#bo_sch .sch_btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
    #bo_list {
        border: 3px solid #333;
    }
    
    .modern-category-item {
        border: 2px solid #333;
    }
    
    .list_03 li {
        border: 2px solid #333;
    }
}

/* 모바일에서 "기타" 카테고리 숨김 */
@media (max-width: 768px) {
    .modern-category-item.hide-mobile {
        display: none !important;
    }
    
    /* 모바일에서 카테고리와 리스트 사이 간격 조정 */
    .modern-category-section {
        margin-bottom: 20px !important; /* 기본보다 조금 더 간격 */
    }
    
    .bo_list_innr {
        padding-top: 5px !important; /* 상단 패딩 조금 추가 */
    }
    
    /* 모바일에서 hover 효과 더 줄이기 */
    .list_03 li:hover {
        transform: translateY(-0.05px) !important; /* 거의 움직이지 않게 */
    }
    
    .modern-category-item:hover {
        transform: translateY(-0.5px) !important; /* 절반으로 줄임 */
    }
    
    /* 모바일에서 리스트 항목 내부 패딩 추가 (리스트는 최대한 넓게 유지) */
    .list_03 li {
        padding-left: 12px !important; /* 카테고리가 좌측 가장자리와 떨어지게 */
        padding-right: 12px !important; /* 상태가 우측 가장자리와 떨어지게 */
    }
}

/* 모션 감소 설정 지원 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}