/*
Theme Name: NewsNet
Theme URI: https://reactivenews.ro
Description: Le Monde-inspired premium editorial newspaper theme for ReactiveNews
Version: 2.0.0
Author: ReactiveNews
Text Domain: newsnet
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #fff;
    color: #222;
    line-height: 1.6;
}
a { color: #222; text-decoration: none; transition: color .2s; }
a:hover { color: #1D2536; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* === TYPOGRAPHY — Le Monde serif editorial === */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 700;
    line-height: 1.22;
    color: #1D2536;
}

/* === LINE CLAMP === */
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-4 { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* === THIN HORIZONTAL RULES (Le Monde signature) === */
.nn-rule { border: none; border-top: 1px solid #d4d4d4; margin: 0; }
.nn-rule-thick { border: none; border-top: 2px solid #1D2536; margin: 0; }

/* === TOP BAR — Very thin dark navy strip === */
.nn-topbar {
    background: #1D2536;
    padding: 6px 0;
    border-bottom: 2px solid #F5C518;
}
.nn-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nn-topbar-date {
    color: rgba(255,255,255,.7);
    font-size: .75rem;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: .02em;
}
.nn-topbar-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nn-topbar-logo img {
    height: 30px;
    width: auto;
}
.nn-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nn-topbar-search {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
}
.nn-topbar-search svg {
    width: 16px;
    height: 16px;
    stroke: rgba(255,255,255,.7);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}
.nn-topbar-search:hover svg { stroke: #F5C518; }

/* === HEADER — White, centered brand === */
.nn-header {
    background: #fff;
    padding: 22px 0 0;
    text-align: center;
}
.nn-header-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 16px;
}
.nn-site-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #1D2536;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.1;
}
.nn-site-subtitle {
    font-size: .78rem;
    color: #888;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === NAVIGATION — On WHITE bg, text links, thin border === */
.nn-nav {
    background: #fff;
    border-top: 1px solid #d4d4d4;
    border-bottom: 1px solid #d4d4d4;
}
.nn-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nn-nav-inner li a {
    display: block;
    padding: 10px 20px;
    color: #1D2536;
    font-size: .78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    transition: color .2s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.nn-nav-inner li a:hover {
    color: #F5C518;
}

/* Hamburger — hidden on desktop */
.nn-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 24px;
    height: 18px;
    position: relative;
}
.nn-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,.8);
    position: absolute;
    left: 0;
    transition: .3s;
}
.nn-hamburger span:nth-child(1) { top: 0; }
.nn-hamburger span:nth-child(2) { top: 8px; }
.nn-hamburger span:nth-child(3) { top: 16px; }

/* === HERO — Le Monde: large story left + secondary right === */
.nn-hero {
    padding: 28px 0 0;
}
.nn-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}
.nn-hero-main {}
.nn-hero-main a img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}
.nn-hero-main-body { padding: 14px 0 0; }
.nn-hero-main-body .nn-cat-label {
    display: inline-block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #1D2536;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    border-bottom: 2px solid #F5C518;
    padding-bottom: 2px;
}
.nn-hero-main-body h2 {
    font-size: 2rem;
    line-height: 1.18;
    margin-bottom: 10px;
    color: #1D2536;
}
.nn-hero-main-body h2 a { color: #1D2536; }
.nn-hero-main-body h2 a:hover { color: #555; }
.nn-hero-main-body .nn-excerpt {
    font-family: Georgia, serif;
    font-size: .95rem;
    color: #555;
    line-height: 1.55;
}
.nn-hero-main-body .nn-meta {
    margin-top: 8px;
    font-size: .75rem;
    color: #999;
    font-family: -apple-system, sans-serif;
}

/* Hero secondary — right column, list with thin dividers */
.nn-hero-secondary {
    display: flex;
    flex-direction: column;
    border-left: 1px solid #d4d4d4;
    padding-left: 28px;
}
.nn-hero-sec-item {
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}
.nn-hero-sec-item:first-child { padding-top: 0; }
.nn-hero-sec-item:last-child { border-bottom: none; }
.nn-hero-sec-item .nn-cat-label {
    display: inline-block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #1D2536;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: -apple-system, sans-serif;
}
.nn-hero-sec-item h3 {
    font-size: 1rem;
    line-height: 1.28;
    color: #1D2536;
}
.nn-hero-sec-item h3 a { color: #1D2536; }
.nn-hero-sec-item h3 a:hover { color: #555; }
.nn-hero-sec-item .nn-meta {
    font-size: .7rem;
    color: #aaa;
    margin-top: 3px;
}
.nn-hero-sec-item .nn-sec-row {
    display: flex;
    gap: 14px;
}
.nn-hero-sec-item .nn-sec-row img {
    width: 110px;
    height: 72px;
    object-fit: cover;
    flex-shrink: 0;
}
.nn-hero-sec-item .nn-sec-row > div { flex: 1; }

/* === SECTION DIVIDER (thin rule + small-caps category) === */
.nn-section {
    padding: 0;
}
.nn-section-head {
    padding: 28px 0 14px;
    border-top: 2px solid #1D2536;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.nn-section-name {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #1D2536;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
.nn-section-more {
    font-size: .7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: -apple-system, sans-serif;
}
.nn-section-more:hover { color: #1D2536; }

/* Section content: featured left + list right */
.nn-section-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding-bottom: 28px;
}
.nn-sec-featured img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 12px;
}
.nn-sec-featured .nn-cat-label {
    display: inline-block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #1D2536;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: -apple-system, sans-serif;
    border-bottom: 2px solid #F5C518;
    padding-bottom: 2px;
}
.nn-sec-featured h3 {
    font-size: 1.35rem;
    line-height: 1.24;
    margin-bottom: 8px;
    color: #1D2536;
}
.nn-sec-featured h3 a { color: #1D2536; }
.nn-sec-featured h3 a:hover { color: #555; }
.nn-sec-featured .nn-excerpt {
    font-size: .88rem;
    color: #666;
    line-height: 1.5;
    font-family: Georgia, serif;
}

/* Section right list */
.nn-sec-list { display: flex; flex-direction: column; }
.nn-sec-list-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
}
.nn-sec-list-item:first-child { padding-top: 0; }
.nn-sec-list-item:last-child { border-bottom: none; }
.nn-sec-list-item img {
    width: 100px;
    height: 68px;
    object-fit: cover;
    flex-shrink: 0;
}
.nn-sec-list-item > div { flex: 1; }
.nn-sec-list-item h3 {
    font-size: .9rem;
    line-height: 1.3;
    color: #1D2536;
}
.nn-sec-list-item h3 a { color: #1D2536; }
.nn-sec-list-item h3 a:hover { color: #555; }
.nn-sec-list-item .nn-meta {
    font-size: .7rem;
    color: #aaa;
    margin-top: 3px;
}

/* === A LA UNE — Small cards row (below hero, separated by rule) === */
.nn-alaune {
    padding: 24px 0;
}
.nn-alaune-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.nn-alaune-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 8px;
}
.nn-alaune-card .nn-cat-label {
    display: inline-block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #1D2536;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: -apple-system, sans-serif;
}
.nn-alaune-card h3 {
    font-size: .88rem;
    line-height: 1.3;
    color: #1D2536;
}
.nn-alaune-card h3 a { color: #1D2536; }
.nn-alaune-card h3 a:hover { color: #555; }
.nn-alaune-card .nn-meta {
    font-size: .68rem;
    color: #aaa;
    margin-top: 3px;
}

/* === TRENDING — Numbered, Le Monde "Les plus lus" === */
.nn-trending {
    padding: 24px 0;
}
.nn-trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.nn-trending-card {
    position: relative;
    padding-left: 38px;
}
.nn-trend-num {
    position: absolute;
    left: 0;
    top: -2px;
    font-family: Georgia, serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #d4d4d4;
    line-height: 1;
}
.nn-trending-card h3 {
    font-size: .88rem;
    line-height: 1.3;
    color: #1D2536;
}
.nn-trending-card h3 a { color: #1D2536; }
.nn-trending-card h3 a:hover { color: #555; }
.nn-trending-card .nn-meta {
    font-size: .68rem;
    color: #aaa;
    margin-top: 3px;
}

/* === LATEST ARTICLES === */
.nn-latest {
    padding: 24px 0;
}
.nn-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.nn-latest-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    margin-bottom: 10px;
}
.nn-latest-card .nn-cat-label {
    display: inline-block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #1D2536;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: -apple-system, sans-serif;
}
.nn-latest-card h3 {
    font-size: .95rem;
    line-height: 1.3;
    color: #1D2536;
    margin-bottom: 4px;
}
.nn-latest-card h3 a { color: #1D2536; }
.nn-latest-card h3 a:hover { color: #555; }
.nn-latest-card .nn-meta {
    font-size: .68rem;
    color: #aaa;
}

/* === BREADCRUMBS === */
.nn-breadcrumbs {
    border-bottom: 1px solid #e8e8e8;
    padding: 10px 0;
    font-size: .75rem;
    color: #aaa;
    font-family: -apple-system, sans-serif;
}
.nn-breadcrumbs a { color: #aaa; }
.nn-breadcrumbs a:hover { color: #1D2536; }
.nn-breadcrumbs .nn-sep { margin: 0 6px; }

/* === ARTICLE (single.php) === */
.nn-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}
.nn-article-header {
    text-align: left;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8e8e8;
}
.nn-article-header .nn-cat-label {
    display: inline-block;
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #1D2536;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: -apple-system, sans-serif;
    border-bottom: 2px solid #F5C518;
    padding-bottom: 2px;
}
.nn-article-header h1 {
    font-size: 2.2rem;
    line-height: 1.18;
    margin-bottom: 14px;
    color: #1D2536;
}
.nn-article-meta {
    font-size: .8rem;
    color: #999;
    display: flex;
    gap: 16px;
    font-family: -apple-system, sans-serif;
}
.nn-article-meta span { display: flex; align-items: center; gap: 4px; }

.nn-featured-img { margin-bottom: 28px; }
.nn-featured-img img { width: 100%; }

.nn-article-content {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}
.nn-article-content p { margin-bottom: 1.4em; }
.nn-article-content h2 { font-size: 1.5rem; margin: 2em 0 .8em; }
.nn-article-content h3 { font-size: 1.25rem; margin: 1.5em 0 .6em; }
.nn-article-content blockquote {
    border-left: 3px solid #F5C518;
    margin: 1.5em 0;
    padding: .8em 1.2em;
    background: #fafafa;
    font-style: italic;
}
.nn-article-content ul, .nn-article-content ol { margin: 1em 0 1em 1.5em; }
.nn-article-content li { margin-bottom: .4em; list-style: disc; }
.nn-article-content ol li { list-style: decimal; }
.nn-article-content a {
    color: #1D2536;
    text-decoration: underline;
    text-decoration-color: #F5C518;
    text-underline-offset: 3px;
}
.nn-article-content img { margin: 1.5em 0; }

/* === RELATED === */
.nn-related {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 20px;
    border-top: 2px solid #1D2536;
}
.nn-related-title {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-family: -apple-system, sans-serif;
    font-weight: 700;
    color: #1D2536;
    margin-bottom: 20px;
}
.nn-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.nn-card img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    margin-bottom: 10px;
}
.nn-card .nn-cat-label {
    display: inline-block;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #1D2536;
    font-weight: 700;
    margin-bottom: 3px;
    font-family: -apple-system, sans-serif;
}
.nn-card h3 {
    font-size: .9rem;
    line-height: 1.3;
    color: #1D2536;
}
.nn-card h3 a { color: #1D2536; }
.nn-card h3 a:hover { color: #555; }
.nn-card .nn-meta {
    font-size: .68rem;
    color: #aaa;
    margin-top: 3px;
}

/* === ARCHIVE === */
.nn-archive-header {
    padding: 28px 0 18px;
    border-bottom: 2px solid #1D2536;
    margin-bottom: 28px;
}
.nn-archive-header h1 {
    font-size: 1.6rem;
    font-family: Georgia, serif;
    color: #1D2536;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.nn-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.nn-archive-grid .nn-card {
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}
.nn-pagination { padding: 32px 0; text-align: center; }
.nn-pagination .nav-links { display: flex; justify-content: center; gap: 4px; }
.nn-pagination a, .nn-pagination span {
    padding: 8px 14px;
    font-size: .82rem;
    border: 1px solid #e8e8e8;
    font-family: -apple-system, sans-serif;
}
.nn-pagination .current {
    background: #1D2536;
    color: #fff;
    border-color: #1D2536;
}

/* === FOOTER — Elegant, minimal dark navy === */
.nn-footer {
    background: #1D2536;
    color: rgba(255,255,255,.65);
    padding: 36px 0 0;
    margin-top: 48px;
}
.nn-footer-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.nn-footer-brand img {
    height: 28px;
    width: auto;
    margin-bottom: 10px;
}
.nn-footer-brand p {
    font-size: .8rem;
    line-height: 1.5;
    font-family: Georgia, serif;
}
.nn-footer h4 {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #F5C518;
    margin-bottom: 12px;
    font-family: -apple-system, sans-serif;
    font-weight: 600;
}
.nn-footer-cats ul { display: flex; flex-direction: column; gap: 5px; }
.nn-footer-cats li a {
    color: rgba(255,255,255,.55);
    font-size: .82rem;
}
.nn-footer-cats li a:hover { color: #F5C518; }
.nn-footer-links a {
    display: block;
    color: rgba(255,255,255,.55);
    font-size: .82rem;
    margin-bottom: 5px;
}
.nn-footer-links a:hover { color: #F5C518; }
.nn-footer-bottom {
    text-align: center;
    padding: 16px 0;
    font-size: .72rem;
    color: rgba(255,255,255,.35);
}

/* === SEARCH OVERLAY === */
.nn-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(29,37,54,.96);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.nn-search-overlay.active { display: flex; }
.nn-search-overlay form { width: 90%; max-width: 560px; }
.nn-search-overlay input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid #F5C518;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 1.8rem;
    padding: 14px 0;
    outline: none;
}
.nn-search-overlay input::placeholder { color: rgba(255,255,255,.35); }
.nn-search-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* === 404 === */
.nn-404 {
    text-align: center;
    padding: 80px 20px;
}
.nn-404 h1 {
    font-size: 5rem;
    font-family: Georgia, serif;
    color: #d4d4d4;
    margin-bottom: 12px;
}
.nn-404 h2 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #1D2536;
}
.nn-404 p {
    color: #999;
    margin-bottom: 24px;
    font-family: Georgia, serif;
}
.nn-404 a {
    display: inline-block;
    background: #1D2536;
    color: #fff;
    padding: 10px 28px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: -apple-system, sans-serif;
}
.nn-404 a:hover { background: #2a3650; color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .nn-hero-grid { grid-template-columns: 1fr; }
    .nn-hero-secondary {
        border-left: none;
        padding-left: 0;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0;
        border-top: 1px solid #e8e8e8;
        padding-top: 16px;
    }
    .nn-hero-sec-item { flex: 1 1 calc(50% - 16px); }
    .nn-alaune-grid { grid-template-columns: repeat(2, 1fr); }
    .nn-section-body { grid-template-columns: 1fr; }
    .nn-trending-grid { grid-template-columns: repeat(2, 1fr); }
    .nn-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nn-hamburger { display: block; }
    .nn-nav { display: none; }
    .nn-nav.active { display: block; }
    .nn-nav-inner { flex-direction: column; }
    .nn-nav-inner li a { text-align: center; padding: 12px; border-bottom: 1px solid #f0f0f0; }
    .nn-site-title { font-size: 2rem; }
    .nn-hero-main a img { height: 250px; }
    .nn-hero-main-body h2 { font-size: 1.5rem; }
    .nn-hero-secondary { flex-direction: column; }
    .nn-hero-sec-item { flex: 1 1 100%; }
    .nn-alaune-grid { grid-template-columns: 1fr 1fr; }
    .nn-archive-grid { grid-template-columns: 1fr; }
    .nn-cards-row { grid-template-columns: 1fr; }
    .nn-latest-grid { grid-template-columns: 1fr; }
    .nn-trending-grid { grid-template-columns: 1fr 1fr; }
    .nn-footer-top { grid-template-columns: 1fr; }
    .nn-article-header h1 { font-size: 1.6rem; }
    .nn-article-content { font-size: 1rem; }
    .nn-topbar-logo { display: none; }
}

@media (max-width: 480px) {
    .nn-alaune-grid { grid-template-columns: 1fr; }
    .nn-trending-grid { grid-template-columns: 1fr; }
    .nn-topbar-inner { justify-content: center; }
}

/* === WP CORE OVERRIDES === */
.wp-block-image { margin: 1.5em 0; }
.alignwide { max-width: 960px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw; }
