@charset "utf-8";

/* TimePoint Theme - News Skin CSS */
/* Tailwind CSS 기반 - 최소한의 추가 CSS만 사용 */
/* 네이버 뉴스 스타일 리스트 레이아웃 */

/* ===== 카테고리 링크 스타일 ===== */
#bo_cate ul li a {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#bo_cate ul li a:hover,
#bo_cate ul li.on a {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* ===== 뉴스 아이템 호버 효과 ===== */
#bo_news .group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#bo_news .group:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ===== 이미지 호버 효과 ===== */
#bo_news .group:hover img {
    transform: scale(1.05);
}

/* ===== 검색 모달 애니메이션 ===== */
.bo_sch_wrap {
    animation: fadeIn 0.2s ease;
}

.bo_sch_wrap.hidden {
    animation: fadeOut 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ===== 공지사항 스타일 ===== */
#bo_news .group.bg-blue-50 {
    background-color: rgba(239, 246, 255, 0.6);
}

#bo_news .group.bg-blue-50:hover {
    background-color: rgba(239, 246, 255, 0.9);
}

/* ===== 모바일 반응형 최적화 ===== */
@media (max-width: 640px) {
    #bo_news {
        font-size: 0.875rem;
    }

    #bo_news .pagination {
        gap: 0.375rem;
        margin: 2rem 0;
    }

    #bo_news .pagination a,
    #bo_news .pagination strong,
    #bo_news .pagination span {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.8125rem;
        padding: 0 0.5rem;
    }

    #bo_cate ul li a {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    /* 모바일에서 이미지 비율 조정 */
    #bo_news .aspect-\[16\/9\] {
        aspect-ratio: 16 / 9;
    }
}

/* ===== 태블릿 최적화 ===== */
@media (min-width: 640px) {

    /* 태블릿에서 이미지 비율 조정 */
    #bo_news .sm\:aspect-\[4\/3\] {
        aspect-ratio: 4 / 3;
    }

    /* 태블릿에서 이미지 너비 고정 */
    #bo_news .sm\:w-60 {
        width: 15rem;
    }
}

/* ===== 접근성: 스크린 리더 전용 ===== */
.sr-only,
.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== 인쇄 스타일 ===== */
@media print {

    .btn_bo_user,
    .bo_fx,
    .pagination,
    .btn_more_opt,
    input[type="checkbox"],
    .bo_sch_wrap {
        display: none !important;
    }

    #bo_news {
        max-width: 100% !important;
    }

    #bo_news li {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #e5e7eb !important;
        margin-bottom: 1rem !important;
    }

    /* 인쇄 시 이미지 크기 조정 */
    #bo_news img {
        max-width: 200px !important;
        height: auto !important;
    }
}

/* ===== 링크 애니메이션 ===== */
#bo_news a {
    transition: color 0.2s ease;
}

/* ===== 제목 호버 효과 ===== */
#bo_news h3 a:hover {
    text-decoration: none;
}

/* ===== 뉴스 아이템 구분선 ===== */
#bo_news ul>li:not(:last-child) {
    margin-bottom: 1rem;
}

/* ===== 배지 애니메이션 ===== */
#bo_news .group:hover .inline-flex.bg-green-500,
#bo_news .group:hover .inline-flex.bg-gray-700 {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* ===== 반응형 이미지 로딩 ===== */
#bo_news img {
    animation: fadeIn 0.3s ease;
}

/* ===== 플렉스 박스 지원 확인 ===== */
@supports not (gap: 1rem) {
    #bo_news .flex.gap-2>*+* {
        margin-left: 0.5rem;
    }

    #bo_news .flex.gap-3>*+* {
        margin-left: 0.75rem;
    }

    #bo_news .flex.gap-4>*+* {
        margin-left: 1rem;
    }
}

/* ===== 스크롤바 스타일 (Webkit 브라우저) ===== */
#bo_news *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#bo_news *::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

#bo_news *::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

#bo_news *::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* ===== 포커스 스타일 강화 (접근성) ===== */
#bo_news a:focus,
#bo_news button:focus,
#bo_news input:focus,
#bo_news select:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ===== 페이지네이션 포커스 스타일 (접근성) ===== */
#bo_news .pagination a:focus,
#bo_news .pagination strong:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}