/* 뉴스레터 게시판 스타일 */
.newsletter-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 헤더 영역 */
.newsletter-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #e9ecef;
}

.newsletter-title {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0;
    color: #333;
    text-align: center;
}

/* 카테고리 영역 */
.newsletter-category {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.newsletter-category h3 {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    color: #495057;
}

#bo_cate_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

#bo_cate_ul li {
    margin: 0;
}

#bo_cate_ul a {
    display: inline-block;
    padding: 10px 20px;
    background: white;
    color: #6c757d;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

#bo_cate_ul a:hover,
#bo_cate_ul a.on {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

/* 컨트롤 영역 */
.newsletter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
}

.newsletter-total {
    display: flex;
    gap: 15px;
    align-items: center;
}

.total-count {
    font-weight: 600;
    color: #495057;
    font-size: 1.3rem;
}

.current-page {
    color: #6c757d;
    font-size: 1.1rem;
}

.newsletter-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-admin {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-admin:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-rss {
    background: #fd7e14;
    color: white;
    border-color: #fd7e14;
}

.btn-rss:hover {
    background: #e8650e;
    border-color: #e8650e;
}

.btn-search {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-search:hover {
    background: #5a6268;
    border-color: #5a6268;
}

.btn-write {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-write:hover {
    background: #218838;
    border-color: #218838;
}

/* 검색 영역 */
.newsletter-search {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.search-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.search-select {
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 1.1rem;
    min-width: 140px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1.1rem;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.search-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1.1rem;
}

.search-btn:hover {
    background: #5a6fd8;
}

/* 뉴스레터 그리드 */
.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    justify-items: center;
}

.newsletter-item {
    position: relative;
    background: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 400px;
    width: 100%;
    max-width: 320px;
}

.newsletter-item:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.newsletter-item.new-item {
    border-color: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.newsletter-card {
    height: 100%;
    display: block;
}

.newsletter-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.newsletter-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
}

.newsletter-item:hover .newsletter-thumbnail {
    opacity: 0.9;
}

.newsletter-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #6c757d;
    font-size: 3rem;
}

.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.secret-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px;
    border-radius: 50%;
    font-size: 0.8rem;
}

.newsletter-content {
    display: none;
}

/* 텍스트 관련 스타일 제거 - 썸네일만 표시 */

/* 빈 목록 */
.newsletter-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
}

.empty-content i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #dee2e6;
}

.empty-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #495057;
}

.empty-content p {
    margin: 0;
    font-size: 1rem;
}

/* 체크박스 */
.newsletter-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.newsletter-checkbox input[type="checkbox"] {
    display: none;
}

.newsletter-checkbox label {
    display: block;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-checkbox input[type="checkbox"]:checked + label {
    background: #667eea;
    border-color: #667eea;
}

.newsletter-checkbox input[type="checkbox"]:checked + label span:after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.newsletter-checkbox label span {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

/* 액션 버튼들 */
.newsletter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.select-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-actions input[type="checkbox"] {
    margin: 0;
}

.select-actions label {
    margin: 0;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
}

.admin-actions {
    display: flex;
    gap: 10px;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-delete:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-copy {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.btn-copy:hover {
    background: #138496;
    border-color: #138496;
}

.btn-move {
    background: #ffc107;
    color: #212529;
    border-color: #ffc107;
}

.btn-move:hover {
    background: #e0a800;
    border-color: #e0a800;
}

/* 페이징 */
.newsletter-pagination {
    text-align: center;
    margin-top: 40px;
}





.newsletter-pagination a,
.newsletter-pagination strong {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.newsletter-pagination a:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.newsletter-pagination strong {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .newsletter-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .newsletter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .newsletter-container {
        padding: 15px;
    }
    
    .newsletter-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .newsletter-title {
        font-size: 2.2rem;
    }
    
    .newsletter-desc {
        font-size: 1.2rem;
    }
    
    .newsletter-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .newsletter-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .newsletter-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .newsletter-image {
        height: 100%;
    }
    
    .newsletter-item {
        height: 300px;
        width: 100%;
        max-width: none;
        margin: 0;
    }
    
    .search-group {
        flex-direction: column;
    }
    
    .newsletter-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .admin-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    #bo_cate_ul {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .newsletter-title {
        font-size: 1.8rem;
    }
    
    .newsletter-subject {
        font-size: 1.3rem;
    }
    
    .newsletter-content {
        padding: 15px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 1rem;
    }
}



/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    .newsletter-container {
        background: #fff;
        color: #212529;
    }
    .newsletter-controls,
    .newsletter-search,
    .newsletter-actions {
        background: #fff;
        border-color: #e9ecef;
        color: #495057;
    }
}