/* News Detail Page Styles */

.news-detail {
    padding: 80px 0;
    min-height: 60vh;
}

.news-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-detail-header {
    margin-bottom: 40px;
}

.back-link {
    display: inline-block;
    color: var(--primary-color, #3b82f6);
    text-decoration: none;
    margin-bottom: 20px;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--primary-hover, #2563eb);
}

.news-category {
    display: inline-block;
    background: var(--primary-color, #3b82f6);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.news-detail-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary, #1f2937);
    line-height: 1.4;
    margin-bottom: 16px;
}

.news-date {
    display: block;
    color: var(--text-secondary, #6b7280);
    font-size: 0.9rem;
}

.news-detail-image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.news-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.news-detail-content {
    margin-bottom: 40px;
    line-height: 1.8;
    color: var(--text-primary, #1f2937);
}

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

.external-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color, #3b82f6);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 2px solid var(--primary-color, #3b82f6);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.external-link:hover {
    background: var(--primary-color, #3b82f6);
    color: white;
}

.news-detail-footer {
    padding-top: 40px;
    border-top: 1px solid var(--border-color, #e5e7eb);
    display: flex;
    justify-content: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 32px;
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text-primary, #1f2937);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-back:hover {
    background: var(--bg-tertiary, #e5e7eb);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .news-detail-header h1 {
        color: var(--text-primary-dark, #f9fafb);
    }

    .news-date {
        color: var(--text-secondary-dark, #9ca3af);
    }

    .news-detail-content {
        color: var(--text-primary-dark, #f9fafb);
    }

    .btn-back {
        background: var(--bg-secondary-dark, #374151);
        color: var(--text-primary-dark, #f9fafb);
    }

    .btn-back:hover {
        background: var(--bg-tertiary-dark, #4b5563);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .news-detail {
        padding: 60px 0;
    }

    .news-detail-header h1 {
        font-size: 1.5rem;
    }

    .news-detail-container {
        padding: 0 16px;
    }
}
