@charset "utf-8";

/* 새글 목록 하이브리드 스킨 - Bootstrap 기반 (테마용) */

/* ==========================================================================
   검색 폼 스타일
   ========================================================================== */
#fsearch {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#fsearch .form-select,
#fsearch .form-control {
    border: 1px solid #ced4da;
    transition: all 0.15s ease-in-out;
}

#fsearch .form-select:focus,
#fsearch .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

#fsearch .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%);
    border: none;
    transition: all 0.15s ease-in-out;
}

#fsearch .btn-primary:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #0a58ca 100%);
    transform: translateY(-1px);
}

/* ==========================================================================
   메인 리스트 컨테이너
   ========================================================================== */
#fnewlist {
    margin: 0 auto;
    max-width: 100%;
}

.line-top {
    border-top: 2px solid #0d6efd;
}

/* ==========================================================================
   리스트 아이템
   ========================================================================== */
.list-group-item {
    border-left: none;
    border-right: none;
    transition: all 0.15s ease-in-out;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item.writter-bg {
    /*background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);*/
    border-left: 3px solid #ffc107;
}

.list-group-item.writter-bg:hover {
    /*background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);*/
}

/* ==========================================================================
   배지 스타일
   ========================================================================== */
.new-group .badge,
.new-board .badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.new-group .badge:hover,
.new-board .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
}

.badge.bg-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffb30e 100%) !important;
}

/* ==========================================================================
   제목 링크
   ========================================================================== */
.da-article-link {
    color: #212529;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.da-article-link:hover {
    color: #0d6efd;
    text-decoration: none;
}

.subject-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ==========================================================================
   메타 정보
   ========================================================================== */
.da-list-meta {
    flex-shrink: 0;
}

.da-list-date {
    font-size: 0.875rem;
    color: #6c757d;
}

.wr-name {
    font-size: 0.875rem;
    max-width: 100px;
}

/* 기존 orangered 클래스와 호환 */
.orangered {
    color: #ff6b35 !important;
    font-weight: 500;
}

.count-plus {
    /*background: #ff6b35;*/
    color: white;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.75em;
    font-weight: 1000;
}

/* ==========================================================================
   페이지네이션
   ========================================================================== */
.pagination {
    margin-bottom: 0;
}

.pagination .btn {
    border-radius: 0.375rem;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.15s ease-in-out;
}

.pagination .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* ==========================================================================
   프로필 이미지
   ========================================================================== */
#fnewlist .profile_img {
    display: none;
}

/* 프로필 이미지가 있는 경우 표시 */
.wr-name .profile_img {
    display: inline-block !important;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 0.25rem;
    vertical-align: middle;
}

/* ==========================================================================
   아이콘
   ========================================================================== */
.bi {
    font-size: 0.875rem;
}

.bi-inbox {
    opacity: 0.5;
}

/* ==========================================================================
   빈 상태
   ========================================================================== */
.list-group-item.text-center.py-5 {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* ==========================================================================
   관리자 버튼
   ========================================================================== */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

/* ==========================================================================
   반응형 디자인
   ========================================================================== */
@media (max-width: 767.98px) {
    .new-group,
    .new-board {
        display: none !important;
    }

    .subject-ellipsis {
        font-size: 0.9rem;
    }

    .da-list-meta {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    #fsearch {
        padding: 1rem;
    }

    .list-group-item {
        padding: 0.75rem;
    }

    .badge {
        font-size: 0.7rem !important;
        padding: 0.25em 0.5em !important;
    }
}

/* ==========================================================================
   다크모드 지원 (선택사항)
   ========================================================================== */
[data-bs-theme="dark"] #fsearch {
    background: linear-gradient(135deg, #343a40 0%, #495057 100%);
    border-color: #495057;
    color: #fff;
}

[data-bs-theme="dark"] .list-group-item {
    background-color: #212529;
    /*border-color: #495057;*/
    color: #fff;
}

[data-bs-theme="dark"] .list-group-item:hover {
    background-color: #343a40;
}

[data-bs-theme="dark"] .da-article-link {
    color: #fff;
}

[data-bs-theme="dark"] .da-article-link:hover {
    color: #86b7fe;
}

[data-bs-theme="dark"] .list-group-item.text-center.py-5 {
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
  border: 2px dashed #495057;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

/* ==========================================================================
   애니메이션
   ========================================================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.list-group-item {
    animation: slideInUp 0.3s ease-out;
}

/* ==========================================================================
   접근성 개선
   ========================================================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* 포커스 스타일 개선 */
.btn:focus,
.form-control:focus,
.form-select:focus,
a:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}
