/* ============================================
   ARTICLE DETAIL PAGE STYLES
   ============================================ */

.article-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-top: 20px;
}

.article-main {
    min-width: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 14px;
}

.back-link:hover {
    color: #b91c1c;
}

.article-header {
    margin-bottom: 25px;
}

.article-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1f2937;
    line-height: 1.3;
    font-weight: 700;
}

.article-meta {
    color: #6b7280;
    font-size: 0.95em;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.article-meta-link {
    color: #dc2626;
    text-decoration: none;
}

.article-meta-link:hover {
    color: #b91c1c;
}

.article-image-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.article-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.article-image-source {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 10;
}

.article-summary {
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.7;
    color: #374151;
    border-left: 4px solid #dc2626;
}

.article-content {
    font-size: 1.05em;
    line-height: 1.9;
    color: #1f2937;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #1f2937;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.article-content h3 {
    font-size: 1.4em;
    font-weight: 600;
    color: #374151;
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-content ul li {
    list-style-type: disc;
}

.article-content ol li {
    list-style-type: decimal;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.article-content table th {
    background: #dc2626;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.article-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.article-content table tr:last-child td {
    border-bottom: none;
}

.article-content table tr:nth-child(even) {
    background: #f9fafb;
}

.article-content strong {
    font-weight: 600;
    color: #1f2937;
}

.article-content blockquote {
    border-left: 4px solid #dc2626;
    padding-left: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #4b5563;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dc2626;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title .icon {
    color: #dc2626;
    font-size: 24px;
}

.breaking-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

.breaking-item:last-child {
    border-bottom: none;
}

.breaking-item:hover {
    opacity: 0.8;
}

.breaking-item-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f6;
}

.breaking-item-content {
    flex: 1;
    min-width: 0;
}

.breaking-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.breaking-item-meta {
    font-size: 12px;
    color: #6b7280;
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e5e7eb;
}

.related-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-item {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.3s;
}

.related-item:hover {
    opacity: 0.8;
}

.related-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 12px;
    background: #f3f4f6;
}

.related-title-text {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    font-size: 0.9em;
    color: #6b7280;
}

@media (max-width: 1024px) {
    .article-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.8em;
    }

    .article-content {
        font-size: 1em;
    }

    .article-content h2 {
        font-size: 1.5em;
    }

    .article-content h3 {
        font-size: 1.2em;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

