/* Nyheter Page Styles */

/* ── FEATURED ARTICLE ── */
.featured {
    padding: 2rem 2rem 5rem;
}
.featured-card {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border-radius: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s;
    text-decoration: none;
    color: var(--text);
}
.featured-card:hover {
    border-color: var(--border-hover);
}
.featured-card:focus-visible {
    border-color: var(--border-hover);
}
.featured-img {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.featured-img .fi-icon {
    font-size: 3.5rem;
    opacity: 0.35;
}
.featured-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(6,12,23,0.4));
    pointer-events: none;
}
.featured-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-body h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.7rem;
    letter-spacing: -0.02em;
}
.featured-body p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 1.3rem;
}

/* ── SHARED META / TAGS ── */
.meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.meta .tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
}
.tag-release { background: var(--green-dim); color: var(--green); }
.tag-community { background: var(--purple-dim); color: var(--purple); }
.tag-insight { background: var(--brand-dim); color: var(--brand-light); }
.tag-event { background: var(--amber-dim); color: var(--amber); }
.tag-security { background: var(--accent-dim); color: var(--accent); }
.meta .date {
    font-size: 0.78rem;
    color: var(--text-faint);
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-light);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s;
}
.featured-card:hover .read-more,
.news-card:hover .read-more {
    gap: 0.65rem;
}

/* ── NEWS GRID ── */
.news-grid-section {
    padding: 5rem 2rem 7rem;
    background: var(--bg-raised);
    border-top: 1px solid var(--border);
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    background: var(--white-overlay);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn:focus-visible {
    border-color: rgba(255,255,255,0.15);
    color: var(--text);
}
.filter-btn.active {
    background: var(--brand-dim);
    color: var(--brand-light);
    border-color: rgba(5,85,148,0.3);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.news-card {
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
.news-card:focus-visible {
    border-color: var(--border-hover);
}

.news-thumb {
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.news-thumb .nt-icon {
    font-size: 2rem;
    opacity: 0.25;
}
.news-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.news-body .meta {
    margin-bottom: 0.7rem;
}
.news-body h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}
.news-body p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.55;
    flex-grow: 1;
}
.news-body .read-more {
    margin-top: 1rem;
}

/* ── NEWSLETTER ── */
.newsletter {
    padding: 5rem 2rem;
    text-align: center;
}
.newsletter .container {
    max-width: 560px;
}
.newsletter h2 {
    margin-bottom: 0.6rem;
}
.newsletter .subtitle {
    margin: 0 auto 2rem;
}
.nl-form {
    display: flex;
    gap: 0.6rem;
    max-width: 440px;
    margin: 0 auto;
}
.nl-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.nl-input::placeholder {
    color: var(--text-faint);
}
.nl-input:focus {
    border-color: var(--border-hover);
}
.nl-btn {
    padding: 0.75rem 1.4rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-bright));
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.25s;
    white-space: nowrap;
}
.nl-btn:hover,
.nl-btn:focus-visible {
    box-shadow: 0 4px 20px rgba(5,85,148,0.35);
}
.nl-note {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 0.7rem;
}

/* ── ARTICLE PAGE ── */
.article-header {
    padding: 9rem 2rem 3rem;
    position: relative;
}
.article-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 55%, rgba(5,85,148,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.article-header .container {
    position: relative;
    z-index: 1;
    max-width: 700px;
}
.article-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-light);
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: gap 0.2s;
}
.article-back:hover,
.article-back:focus-visible {
    gap: 0.6rem;
}
.article-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.article-content {
    padding: 3rem 2rem 6rem;
}
.article-content .container {
    max-width: 700px;
}
.article-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.article-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.article-content li {
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.article-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-faint);
}
.article-content strong {
    color: var(--text);
    font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .featured-card {
        grid-template-columns: 1fr;
    }
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 640px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .nl-form {
        flex-direction: column;
    }
    .article-header {
        padding: 7rem 1.2rem 2rem;
    }
    .article-content {
        padding: 2rem 1.2rem 4rem;
    }
}
