/* =====================================================
   OP3 Template - News Detail Page Styles
   Theme: Light (Cyan #00d4ff)
   Author: BossV Team
   ===================================================== */

/* ===== Page Layout ===== */
.news-detail-page {
    padding: 30px 0 50px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
    padding: 15px 0;
    font-size: 14px;
    color: var(--text-sec, #666666);
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #999999;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #00d4ff;
}

/* ===== Two Column Layout ===== */
.detail-layout,
.news-detail-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.detail-main {
    flex: 1;
    min-width: 0;
}

.detail-sidebar,
.news-sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ===== Article ===== */
.news-article {
    background: #ffffff;
    border-radius: var(--radius-md, 10px);
    padding: 35px;
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.news-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.news-header h1 {
    font-size: 28px;
    line-height: 1.4;
    margin: 0 0 18px;
    color: #333333;
    font-weight: 700;
}

.news-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
    color: #888888;
}

.news-header-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-header-meta .category-tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 4px 14px;
    border-radius: 4px;
    font-weight: 500;
}

/* ===== Cover Image ===== */
.news-cover {
    margin-bottom: 25px;
    border-radius: var(--radius-md, 10px);
    overflow: hidden;
}

.news-cover img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

/* ===== Article Content ===== */
.news-content {
    font-size: 16px;
    line-height: 1.9;
    color: #666;
}

.news-content p {
    margin-bottom: 18px;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.news-content a {
    color: #00d4ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-content a:hover {
    color: #00b8e6;
}

.news-content h2,
.news-content h3,
.news-content h4 {
    color: #333333;
    margin: 25px 0 15px;
}

.news-content blockquote {
    border-left: 4px solid #00d4ff;
    padding: 15px 20px;
    margin: 20px 0;
    background: rgba(0, 212, 255, 0.04);
    border-radius: 0 8px 8px 0;
    color: #777;
}

/* ===== Tags ===== */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.news-tags span {
    background: rgba(0, 212, 255, 0.08);
    color: #00d4ff;
    padding: 5px 14px;
    border-radius: 15px;
    font-size: 13px;
    transition: all 0.3s;
}

.news-tags span:hover {
    background: rgba(0, 212, 255, 0.15);
}

/* ===== Source ===== */
.news-source {
    margin-top: 25px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    color: #888888;
    border: 1px solid #e5e7eb;
}

.news-source a {
    color: #00d4ff;
    text-decoration: none;
}

.news-source a:hover {
    text-decoration: underline;
}

/* ===== Related News Section ===== */
.related-news,
.related-news-section {
    background: #ffffff;
    border-radius: var(--radius-md, 10px);
    padding: 25px;
    border: 1px solid #e5e7eb;
    margin-top: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.related-news h3,
.related-news-section h3 {
    font-size: 18px;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    font-weight: 600;
}

.related-news .news-list,
.related-news-section .news-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-news .news-item,
.related-news-section .news-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.related-news .news-item:last-child,
.related-news-section .news-item:last-child {
    border-bottom: none;
}

.related-news .news-thumb,
.related-news-section .news-thumb {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.related-news .news-thumb img,
.related-news-section .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-news .news-title,
.related-news-section .news-title {
    font-size: 15px;
    margin: 0;
}

.related-news .news-title a,
.related-news-section .news-title a {
    color: #555;
    text-decoration: none;
}

.related-news .news-title a:hover,
.related-news-section .news-title a:hover {
    color: #00d4ff;
}

/* ===== Sidebar ===== */
.sidebar-block {
    background: #ffffff;
    border-radius: var(--radius-md, 10px);
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.sidebar-title {
    font-size: 16px;
    color: #00d4ff;
    margin: 0 0 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    font-weight: 600;
}

/* Sidebar Type 1: .news-thumb + .news-info (80x55) */
.sidebar-block .news-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-block .news-item:last-child {
    border-bottom: none;
}

.sidebar-block .news-thumb {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-block .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-block .news-info {
    flex: 1;
    min-width: 0;
}

.sidebar-block .news-title {
    font-size: 14px;
    margin: 0 0 4px;
    line-height: 1.4;
}

.sidebar-block .news-title a {
    color: #555;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-block .news-title a:hover {
    color: #00d4ff;
}

.sidebar-block .news-summary {
    display: none;
}

.sidebar-block .news-meta {
    display: flex;
    gap: 10px;
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Sidebar Type 2: .news-rank + .news-text (badge+text) */
.sidebar-block .news-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-block .news-item:nth-child(1) .news-rank,
.sidebar-block .news-item:nth-child(2) .news-rank,
.sidebar-block .news-item:nth-child(3) .news-rank {
    background: #00d4ff;
    color: #ffffff;
}

.sidebar-block .news-text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.sidebar-block .news-text a {
    color: #555;
    text-decoration: none;
}

.sidebar-block .news-text a:hover {
    color: #00d4ff;
}

/* Sidebar Type 3: .news-image + .news-content (80x55, hide extras) */
.sidebar-block .news-image {
    width: 80px;
    height: 55px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-block .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-block .news-content {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.sidebar-block .news-content a {
    font-size: 14px;
    color: #555;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.sidebar-block .news-content a:hover {
    color: #00d4ff;
}

.sidebar-block .news-content .news-date,
.sidebar-block .news-content .news-extra {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .news-sidebar {
        width: 280px;
    }
}

@media (max-width: 768px) {
    .news-layout {
        flex-direction: column;
    }

    .news-sidebar {
        width: 100%;
    }

    .news-item {
        flex-direction: column;
    }

    .news-thumb {
        width: 100%;
        height: 180px;
    }

    .news-title {
        font-size: 16px;
    }

    .page-stats {
        flex-wrap: wrap;
        gap: 10px;
    }

    .news-category-nav {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .news-page {
        padding: 15px 0 30px;
    }

    .pagination a,
    .pagination span,
    .pagination-wrapper a,
    .pagination-wrapper span {
        min-width: 34px;
        height: 34px;
        padding: 0 10px;
        font-size: 13px;
    }
}
