/* 인기글 대량추출 페이지 전용 스타일 */

/* 인기글 대량추출 컨테이너 */
.bpe-search-container {
    background: var(--surface-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

/* 입력 섹션 */
.bpe-input-section {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* 텍스트 입력 그룹 */
.bpe-text-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* 라벨과 힌트를 담는 헤더 */
.bpe-label-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* 입력 컨테이너 */
.bpe-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

/* 입력 라벨 */
.bpe-input-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
}

.bpe-input-icon {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* 텍스트 입력 영역 */
.bpe-text-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.96875rem;
    font-weight: 400;
    color: var(--gray-800);
    background: var(--surface-color);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
    height: 190px;
    font-family: inherit;
    line-height: 1.6;
    overflow-y: auto;
    scrollbar-width: auto;
    scrollbar-color: var(--gray-400) transparent;
}

/* 웹킷 브라우저용 스크롤바 스타일링 */
.bpe-text-input::-webkit-scrollbar {
    width: 8px;
}

.bpe-text-input::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--radius-md);
}

.bpe-text-input::-webkit-scrollbar-thumb {
    background-color: var(--gray-400);
    border-radius: var(--radius-md);
}

.bpe-text-input::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray-500);
}

.bpe-text-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.bpe-text-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* 입력 힌트 */
.bpe-input-hint {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 400;
}

.bpe-input-hint i {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* 버튼 행 */
.bpe-button-row {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 조회하기 버튼 */
.bpe-search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    justify-content: center;
    width: 100%;
}

.bpe-search-btn:hover {
    background: var(--primary-dark);
}

.bpe-search-btn:active {
    transform: translateY(0);
}

.bpe-search-btn i {
    font-size: 0.875rem;
}

/* 반응형 디자인 */

/* 1200px 이하 */
@media (max-width: 1200px) {
    .bpe-search-container {
        padding: 1rem;
    }
    
    .bpe-text-input-group {
        gap: 0.75rem;
    }
    
    .bpe-input-label {
        font-size: 0.96875rem;
    }
    
    .bpe-text-input {
        height: 180px;
        font-size: 0.9375rem;
    }
}

/* 900px 이하 */
@media (max-width: 900px) {
    .bpe-search-container {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .bpe-input-section {
        gap: 0.625rem;
    }
    
    .bpe-text-input-group {
        gap: 0.75rem;
    }
    
    .bpe-input-label {
        font-size: 0.953125rem;
    }
    
    .bpe-text-input {
        height: 170px;
        padding: 0.875rem;
        font-size: 0.9375rem;
    }
    
    .bpe-search-btn {
        padding: 0.625rem 1.125rem;
        font-size: 0.9rem;
    }
}

/* 768px 이하 */
@media (max-width: 768px) {
    .bpe-search-container {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .bpe-input-section {
        gap: 0.5rem;
    }
    
    .bpe-text-input-group {
        gap: 0.625rem;
    }
    
    .bpe-input-hint i {
        display: none;
    }
    
    .bpe-input-label {
        font-size: 0.9375rem;
    }
    
    .bpe-text-input {
        height: 150px;
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .bpe-search-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 480px 이하 */
@media (max-width: 480px) {
    .bpe-search-container {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .bpe-input-section {
        gap: 0.5rem;
    }
    
    .bpe-text-input-group {
        gap: 0.5rem;
    }
    
    .bpe-input-label {
        font-size: 0.875rem;
    }
    
    .bpe-text-input {
        height: 140px;
        padding: 0.625rem;
        font-size: 0.8125rem;
    }
    
    .bpe-input-hint {
        font-size: 0.8rem;
    }
    
    .bpe-search-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* 인기글 대량추출 결과 테이블 스타일 */

/* 결과 영역 컨테이너 */
.bpe-results-section {
    display: none;
}

/* 테이블 컨테이너 */
.bpe-table-container {
    border-radius: var(--radius-md);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.8);
    margin-bottom: 2rem;
    background: var(--surface-color);
    display: block;
    overflow: hidden;
}

/* 테이블 타이틀 */
.bpe-results-title {
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    background: var(--surface-color);
    border-bottom: 1px solid var(--gray-200);
}

/* 타이틀 정보 컨테이너 */
.bpe-title-info-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bpe-title-info-container::-webkit-scrollbar {
    display: none;
}

/* 타이틀 정보 아이템 */
.bpe-title-info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex: 1;
    min-width: max-content;
}

.bpe-title-info-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
}

.bpe-title-info-separator {
    width: 1px;
    height: 1rem;
    background: var(--gray-300);
    flex-shrink: 0;
}

/* 테이블 스크롤 영역 */
.bpe-table-scroll {
    overflow: auto;
}

/* 테이블 */
.bpe-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    background: var(--surface-color);
}

.bpe-results-table th {
    background: #e2e8f0;
    padding: 0.625rem 0.875rem;
    text-align: center;
    font-weight: 600;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-300);
    border-right: 1px solid var(--gray-300);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1003;
    font-size: 0.875rem;
}

.bpe-results-table th:last-child {
    border-right: none;
}

.bpe-results-table td {
    padding: 0.25rem 0.875rem;
    border-bottom: 1px solid var(--gray-100);
    border-right: 1px solid var(--gray-100);
    color: var(--gray-700);
    white-space: nowrap;
    vertical-align: middle;
    font-size: 0.875rem;
    line-height: 1.2;
    text-align: center;
    height: 38.594px;
}

.bpe-results-table td:last-child {
    border-right: none;
}

.bpe-results-table tbody tr {
    transition: all 0.15s ease;
}

.bpe-results-table tbody tr:hover {
    background: rgba(30, 64, 175, 0.03);
}

.bpe-results-table tr:last-child td {
    border-bottom: none;
}

.bpe-results-table tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}

.bpe-results-table tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

/* No. 열 스타일 */
.bpe-results-table td:nth-child(1) {
    font-weight: 700;
    color: var(--primary-color);
}

/* 제목 열 스타일 */
.bpe-results-table td:nth-child(2) {
    font-weight: 600;
    color: var(--gray-700);
    max-width: 300px;
    text-align: left;
    padding: 0.25rem 0.875rem;
}

/* 제목 열 내용 컨테이너 */
.bpe-title-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

/* 제목 텍스트 */
.bpe-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* 바로가기 아이콘 */
.bpe-link-icon {
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    flex-shrink: 0;
}

.bpe-link-icon:hover {
    color: var(--white);
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

/* 일 조회수 열 스타일 */
.bpe-results-table td:nth-child(3) {
    font-weight: 500;
    color: var(--gray-700);
}

/* 노출 지수 열 스타일 */
.bpe-results-table td:nth-child(4) {
    font-weight: 600;
    color: var(--white);
    background: var(--primary-color);
    min-width: 100px;
    width: 100px;
    font-size: 0.9375rem;
}

/* 발행일, 댓글, 공감, 이미지, 동영상 열 스타일 */
.bpe-results-table td:nth-child(5),
.bpe-results-table td:nth-child(6),
.bpe-results-table td:nth-child(7),
.bpe-results-table td:nth-child(8),
.bpe-results-table td:nth-child(9) {
    color: var(--gray-700);
}

/* 1200px 브레이크포인트 */
@media (max-width: 1200px) {
    .bpe-results-title {
        padding: 0.625rem 1rem;
    }
    
    .bpe-title-info-container {
        gap: 1.25rem;
    }
    
    .bpe-title-info-value {
        font-size: 0.8438rem;
    }
    
    .bpe-results-table th {
        padding: 0.5625rem 0.8125rem;
        font-size: 0.8438rem;
    }
    
    .bpe-results-table td {
        padding: 0.25rem 0.8125rem;
        font-size: 0.8438rem;
        height: 38.594px;
    }
    
    .bpe-results-table td:nth-child(2) {
        max-width: 290px;
    }
    
    .bpe-results-table td:nth-child(4) {
        min-width: 95px;
        width: 95px;
        font-size: 0.90625rem;
    }
    
    .bpe-link-icon {
        font-size: 0.8438rem;
    }
}

/* 테이블 스크롤 영역 스크롤바 스타일링 - PC에서만 표시 */
@media (min-width: 1025px) {
    .bpe-table-scroll::-webkit-scrollbar {
        width: 5px;
        height: 5px;
    }

    .bpe-table-scroll::-webkit-scrollbar-track {
        background: var(--gray-100);
        border-radius: 2.5px;
    }

    .bpe-table-scroll::-webkit-scrollbar-thumb {
        background: var(--gray-300);
        border-radius: 2.5px;
    }

    .bpe-table-scroll::-webkit-scrollbar-thumb:hover {
        background: var(--gray-400);
    }

    .bpe-table-scroll::-webkit-scrollbar-corner {
        background: var(--gray-100);
    }
}

/* 태블릿에서 스크롤바 숨기기 */
@media (max-width: 1024px) {
    .bpe-table-scroll::-webkit-scrollbar {
        display: none;
    }
    
    .bpe-table-scroll {
        scrollbar-width: none;
    }
    
    .bpe-results-table th {
        z-index: 10;
    }
}

/* 900px 브레이크포인트 */
@media (max-width: 900px) {
    .bpe-results-title {
        padding: 0.625rem 0.875rem;
    }
    
    .bpe-title-info-container {
        gap: 1rem;
    }
    
    .bpe-title-info-value {
        font-size: 0.8281rem;
    }
    
    .bpe-results-table th {
        padding: 0.53125rem 0.78125rem;
        font-size: 0.8281rem;
    }
    
    .bpe-results-table td {
        padding: 0.25rem 0.78125rem;
        font-size: 0.8281rem;
        height: 35px;
    }
    
    .bpe-results-table td:nth-child(2) {
        max-width: 285px;
    }
    
    .bpe-results-table td:nth-child(4) {
        min-width: 92px;
        width: 92px;
        font-size: 0.89063rem;
    }
    
    .bpe-link-icon {
        font-size: 0.8281rem;
        padding: 0.21875rem;
    }
}

/* 768px 브레이크포인트 */
@media (max-width: 768px) {
    .bpe-table-container {
        margin-bottom: 16px;
    }
    
    .bpe-results-title {
        padding: 0.5rem 0.75rem;
    }
    
    .bpe-title-info-container {
        gap: 0.875rem;
    }
    
    .bpe-title-info-value {
        font-size: 0.8125rem;
    }
    
    .bpe-results-table {
        font-size: 0.8125rem;
    }
    
    .bpe-results-table th {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .bpe-results-table td {
        padding: 0.25rem 0.75rem;
        font-size: 0.8125rem;
        height: 33px;
    }
    
    .bpe-results-table td:nth-child(2) {
        max-width: 280px;
    }
    
    .bpe-results-table td:nth-child(4) {
        min-width: 90px;
        width: 90px;
        font-size: 0.875rem;
    }
    
    .bpe-link-icon {
        font-size: 0.8125rem;
        padding: 0.1875rem;
    }
}

/* 480px 브레이크포인트 */
@media (max-width: 480px) {
    .bpe-table-container {
        margin-bottom: 12px;
    }
    
    .bpe-results-title {
        padding: 0.5rem 0.625rem;
    }
    
    .bpe-title-info-container {
        gap: 0.75rem;
    }
    
    .bpe-title-info-value {
        font-size: 0.75rem;
    }
    
    .bpe-results-table {
        font-size: 0.75rem;
    }
    
    .bpe-results-table th {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .bpe-results-table td {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        height: 29px;
    }
    
    .bpe-results-table td:nth-child(2) {
        max-width: 280px;
    }
    
    .bpe-results-table td:nth-child(4) {
        min-width: 80px;
        width: 80px;
        font-size: 0.8125rem;
    }
    
    .bpe-link-icon {
        font-size: 0.75rem;
        padding: 0.125rem;
    }
}

