/* IT & AI Tech Pulse */
.tech-news-hero {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(6, 182, 212, 0.08));
    border-bottom: 1px solid var(--border-color);
    padding: 2.5rem 0 2rem;
}

.tech-news-hero h1 {
    color: var(--text-primary);
}

.tech-news-hero .lead {
    color: var(--text-secondary);
    max-width: 640px;
}

.tech-news-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-news-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-secondary);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    transition: all 0.15s;
}

.tech-news-tab:hover {
    color: var(--link-color);
    border-color: var(--link-color);
}

.tech-news-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-color: transparent;
}

.tech-news-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.tech-news-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.tech-news-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.tech-news-card .excerpt {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.tech-news-source {
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tech-news-source.hn {
    background: rgba(255, 102, 0, 0.12);
    color: #ea580c;
}

.tech-news-source.github {
    background: rgba(36, 41, 46, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .tech-news-source.github {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}

.tech-news-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tech-news-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tech-news-refresh-btn {
    font-size: 0.85rem;
}

.tech-news-stat {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.tech-news-stat i {
    opacity: 0.7;
}

.tech-news-lang {
    background: var(--bg-glass);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

.tech-news-hero--compact {
    padding: 1.5rem 0 0.5rem;
}

.tech-news-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
}

.tech-news-detail-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.tech-news-detail-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.tech-news-detail-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-news-detail-stats {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.tech-news-sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    position: sticky;
    top: 100px;
}

.tech-news-comment {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.65rem;
}

.tech-news-comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
}

.tech-news-comment p,
.tech-news-comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
}
