/* NewsV1 Theme - Layout Styles */

/* Board List Layout */
.board_list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.board_list_header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #fff;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board_list_title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.board_list_title a {
    color: #fff;
    text-decoration: none;
}

.board_list_meta {
    font-size: 14px;
    opacity: 0.9;
}

.board_list_content {
    padding: 0;
}

/* News List Items */
.news_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news_list_item {
    display: flex;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s;
}

.news_list_item:hover {
    background: #f8f9fa;
}

.news_list_item:last-child {
    border-bottom: none;
}

.news_list_item.main {
    flex-direction: column;
    align-items: stretch;
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.news_item_image {
    width: 120px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 20px;
    flex-shrink: 0;
}

.news_item_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news_item.main .news_item_image {
    width: 100%;
    height: 200px;
    margin: 0 0 20px;
}

.news_item_content {
    flex: 1;
}

.news_item_title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.news_item.main .news_item_title {
    font-size: 20px;
    margin-bottom: 12px;
}

.news_item_title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.news_item_title a:hover {
    color: #007bff;
}

.news_item_summary {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.news_item_meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #999;
}

.news_item_badge {
    background: #dc3545;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-right: 10px;
}

.news_item_badge.breaking {
    background: #dc3545;
}

.news_item_badge.exclusive {
    background: #28a745;
}

.news_item_badge.analysis {
    background: #ffc107;
    color: #333;
}

/* Board View Layout */
.board_view {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.board_view_header {
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.board_view_title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #333;
}

.board_view_meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.board_view_author {
    font-weight: 600;
    color: #333;
}

.board_view_content {
    padding: 30px;
    line-height: 1.8;
    font-size: 16px;
}

.board_view_content h1,
.board_view_content h2,
.board_view_content h3 {
    margin: 30px 0 15px;
    color: #333;
}

.board_view_content h1 {
    font-size: 24px;
}

.board_view_content h2 {
    font-size: 20px;
}

.board_view_content h3 {
    font-size: 18px;
}

.board_view_content p {
    margin-bottom: 15px;
}

.board_view_content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.board_view_content blockquote {
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 0 8px 8px 0;
}

.board_view_footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board_view_actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.btn-primary {
    background: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background: #0056b3;
    color: #fff;
}

.btn-secondary {
    background: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background: #545b62;
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-outline:hover {
    background: #007bff;
    color: #fff;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination .disabled {
    color: #6c757d;
    cursor: not-allowed;
}

/* Search Results */
.search_results {
    margin-bottom: 40px;
}

.search_info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.search_keyword {
    font-weight: 600;
    color: #007bff;
}

.search_count {
    color: #666;
    font-size: 14px;
}

/* Sidebar 스타일은 theme/NewsV1/skin/sidebar/css/sidebar_skin1.css에서 관리됨 */

/* Two Column Layout */
.two_column {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* .main_content 스타일은 각 스킨 CSS에서 개별 관리 */

.sidebar_widgets {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Responsive Layout */
@media (max-width: 768px) {
    .board_list_header {
        padding: 20px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .board_list_title {
        font-size: 20px;
    }
    
    .news_list_item {
        padding: 15px 20px;
    }
    
    .news_list_item.main {
        padding: 20px;
    }
    
    .news_item_image {
        width: 100px;
        height: 70px;
    }
    
    .news_item.main .news_item_image {
        height: 180px;
    }
    
    .news_item_title {
        font-size: 15px;
    }
    
    .news_item.main .news_item_title {
        font-size: 18px;
    }
    
    .board_view_header {
        padding: 20px;
    }
    
    .board_view_title {
        font-size: 24px;
    }
    
    .board_view_content {
        padding: 20px;
        font-size: 15px;
    }
    
    .board_view_footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .board_view_actions {
        justify-content: center;
    }
    
    .two_column {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news_list_item {
        padding: 12px 15px;
    }
    
    .news_list_item.main {
        padding: 15px;
    }
    
    .news_item_image {
        width: 80px;
        height: 60px;
    }
    
    .news_item.main .news_item_image {
        height: 160px;
    }
    
    .board_view_title {
        font-size: 20px;
    }
    
    .board_view_content {
        padding: 15px;
        font-size: 14px;
    }
    
    .sidebar {
        padding: 20px;
    }
}
