/*
Theme Name: NewsNet
Theme URI: https://revistapolitica.ro
Description: ABCNews-style professional news theme
Version: 1.1
Text Domain: newsnet
*/

/* === RESET + BASE === */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.5;color:#222;background:#fff}
a{color:#222;text-decoration:none}
a:hover{color:#0058B0}
img{max-width:100%;height:auto;display:block}
ul,ol{list-style:none}
.container{max-width:1280px;margin:0 auto;padding:0 20px}

/* === HEADER (ABCNews: dark navy bar, compact logo left, nav right) === */
.nn-header{background:#00253E;height:50px;display:flex;align-items:center;position:sticky;top:0;z-index:1000;box-shadow:0 1px 4px rgba(0,0,0,0.3)}
.nn-header .container{display:flex;align-items:center;justify-content:space-between;width:100%}
.nn-header-left{display:flex;align-items:center;gap:28px}
.nn-logo{display:flex;align-items:center;gap:8px}
.nn-logo img,.nn-logo .custom-logo{height:34px;width:auto;filter:brightness(0) invert(1)}
.nn-logo-text{color:#fff;font-size:16px;font-weight:700;letter-spacing:-0.3px;white-space:nowrap}
.nn-logo-text span{color:#fff;font-weight:900}
.nn-header-nav{display:flex;gap:4px}
.nn-header-nav a,.nn-header-nav li a{color:rgba(255,255,255,0.85);font-size:13px;font-weight:600;padding:15px 12px;display:block;border-bottom:3px solid transparent;transition:all 0.15s}
.nn-header-nav a:hover,.nn-header-nav li a:hover,.nn-header-nav a.active,.nn-header-nav li.current-menu-item>a{color:#fff;border-bottom-color:#0058B0;background:rgba(255,255,255,0.05)}
.nn-header-right{display:flex;align-items:center;gap:12px}
.nn-search-btn{background:none;border:none;cursor:pointer;padding:8px}
.nn-search-btn svg{width:18px;height:18px;stroke:#fff;fill:none;stroke-width:2}
.nn-hamburger{display:none;background:none;border:none;cursor:pointer;padding:8px}
.nn-hamburger span{display:block;width:20px;height:2px;background:#fff;margin:4px 0}

/* === TICKER (ABCNews: blue bar with scrolling headlines) === */
.nn-ticker{background:#0058B0;padding:6px 0;overflow:hidden;white-space:nowrap}
.nn-ticker .container{display:flex;align-items:center;gap:12px}
.nn-ticker-label{background:#CC0000;color:#fff;font-size:10px;font-weight:800;text-transform:uppercase;padding:3px 10px;flex-shrink:0;letter-spacing:0.5px;border-radius:2px}
.nn-ticker-items{display:flex;gap:24px;animation:tickerScroll 30s linear infinite}
.nn-ticker-items a{color:#fff;font-size:13px;font-weight:500;white-space:nowrap}
.nn-ticker-items a:hover{text-decoration:underline;color:#fff}
.nn-ticker-sep{color:rgba(255,255,255,0.4);font-size:8px}
@keyframes tickerScroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* === HERO (ABCNews: large story left ~65% + Top Stories sidebar ~35%) === */
.nn-hero{padding:16px 0 20px;border-bottom:1px solid #e0e0e0}
.nn-hero-grid{display:grid;grid-template-columns:1fr 380px;gap:20px}
.nn-hero-main{position:relative;overflow:hidden;border-radius:0;min-height:440px}
.nn-hero-main img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0}
.nn-hero-main-content{position:absolute;bottom:0;left:0;right:0;padding:24px 20px;background:linear-gradient(transparent,rgba(0,0,0,0.9));color:#fff;z-index:1}
.nn-hero-main .nn-cat-badge{background:#CC0000;color:#fff;font-size:10px;font-weight:700;text-transform:uppercase;padding:3px 8px;display:inline-block;margin-bottom:8px;letter-spacing:0.5px}
.nn-hero-main h2{font-size:28px;font-weight:700;line-height:1.2;margin-bottom:6px}
.nn-hero-main h2 a{color:#fff}
.nn-hero-main p{font-size:14px;color:rgba(255,255,255,0.85);line-height:1.4}

/* Hero right sidebar (Top Stories - ABCNews numbered list) */
.nn-hero-sidebar{padding:0}
.nn-hero-sidebar h4{font-size:16px;font-weight:800;text-transform:uppercase;color:#00253E;margin-bottom:12px;padding-bottom:8px;border-bottom:3px solid #00253E;letter-spacing:0.5px}
.nn-top-story{padding:12px 0;border-bottom:1px solid #e8e8e8;display:flex;gap:10px;align-items:flex-start}
.nn-top-story:last-child{border-bottom:none}
.nn-top-story-num{font-size:24px;font-weight:800;color:#0058B0;flex-shrink:0;width:30px;line-height:1}
.nn-top-story h5{font-size:14px;font-weight:600;line-height:1.35}
.nn-top-story h5 a{color:#222}
.nn-top-story h5 a:hover{color:#0058B0}
.nn-top-story .nn-meta{font-size:11px;color:#999;margin-top:3px}

/* === SMALL CARDS ROW (below hero, ABCNews style) === */
.nn-small-row{padding:20px 0;border-bottom:1px solid #e0e0e0;display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.nn-small-card img{width:100%;height:120px;object-fit:cover;margin-bottom:8px}
.nn-small-card h3{font-size:13px;font-weight:600;line-height:1.3}
.nn-small-card h3 a{color:#222}
.nn-small-card h3 a:hover{color:#0058B0}
.nn-small-card .nn-meta{font-size:11px;color:#999;margin-top:4px}

/* === CATEGORY SECTIONS (ABCNews style: colored top border + mixed layout) === */
.nn-section{padding:28px 0 20px;border-top:3px solid #00253E;margin-top:8px}
.nn-section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.nn-section-title{font-size:20px;font-weight:800;color:#00253E;display:flex;align-items:center;gap:8px}
.nn-section-title::before{content:'';display:block;width:4px;height:20px;background:#0058B0;border-radius:1px}
.nn-section-link{font-size:13px;color:#0058B0;font-weight:600;display:flex;align-items:center;gap:4px}
.nn-section-link:hover{text-decoration:underline}
.nn-section-link svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.5}

/* Category section: featured large + 2 medium + text headlines (ABCNews layout) */
.nn-section-content{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.nn-section-featured{position:relative;overflow:hidden;min-height:340px}
.nn-section-featured img{width:100%;height:100%;object-fit:cover;position:absolute;top:0;left:0}
.nn-section-featured-overlay{position:absolute;bottom:0;left:0;right:0;padding:20px;background:linear-gradient(transparent,rgba(0,0,0,0.85));color:#fff}
.nn-section-featured h3{font-size:22px;font-weight:700;line-height:1.25;margin-bottom:4px}
.nn-section-featured h3 a{color:#fff}
.nn-section-featured p{font-size:13px;color:rgba(255,255,255,0.8)}
.nn-section-right{display:flex;flex-direction:column;gap:0}

/* Medium card within section */
.nn-medium-card{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid #e8e8e8}
.nn-medium-card:last-child{border-bottom:none}
.nn-medium-card img{width:140px;height:90px;object-fit:cover;flex-shrink:0}
.nn-medium-card h3{font-size:14px;font-weight:600;line-height:1.3;margin-bottom:4px}
.nn-medium-card h3 a{color:#222}
.nn-medium-card h3 a:hover{color:#0058B0}
.nn-medium-card p{font-size:12px;color:#666;line-height:1.3}
.nn-medium-card .nn-meta{font-size:11px;color:#999;margin-top:4px}

/* 3-card row fallback */
.nn-cards-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}
.nn-card{border-bottom:1px solid #e8e8e8;padding-bottom:16px}
.nn-card img{width:100%;height:200px;object-fit:cover;margin-bottom:10px}
.nn-card .nn-cat-badge{font-size:10px;font-weight:700;text-transform:uppercase;color:#0058B0;letter-spacing:0.5px;margin-bottom:6px;display:block}
.nn-card h3{font-size:17px;font-weight:700;line-height:1.25;margin-bottom:6px}
.nn-card h3 a{color:#222}
.nn-card h3 a:hover{color:#0058B0}
.nn-card p{font-size:13px;color:#666;line-height:1.4}
.nn-card .nn-meta{font-size:11px;color:#999;margin-top:6px}

/* Text headlines below (ABCNews style) */
.nn-headlines{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 24px;padding-top:16px;border-top:1px solid #e8e8e8;margin-top:16px}
.nn-headline{padding:8px 0;border-bottom:1px solid #f0f0f0}
.nn-headline .nn-cat-badge{font-size:10px;font-weight:700;text-transform:uppercase;color:#0058B0;letter-spacing:0.5px}
.nn-headline h4{font-size:14px;font-weight:600;line-height:1.3;margin-top:4px}
.nn-headline h4 a{color:#222}
.nn-headline h4 a:hover{color:#0058B0}

/* === DARK TRENDING SECTION (ABCNews style) === */
.nn-trending{background:#00253E;padding:32px 0;margin-top:8px}
.nn-trending .nn-section-title{color:#fff}
.nn-trending .nn-section-title::before{background:#0058B0}
.nn-trending .nn-section-link{color:#7CB3DE}
.nn-trending-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.nn-trending-card img{width:100%;height:160px;object-fit:cover;margin-bottom:8px}
.nn-trending-card h3{font-size:14px;font-weight:600;line-height:1.3;color:#fff}
.nn-trending-card h3 a{color:#fff}
.nn-trending-card h3 a:hover{color:#7CB3DE}
.nn-trending-card .nn-meta{font-size:11px;color:rgba(255,255,255,0.5);margin-top:4px}

/* === SINGLE ARTICLE === */
.nn-article{max-width:720px;margin:0 auto;padding:32px 16px}
.nn-article-header{margin-bottom:24px}
.nn-article .nn-cat-badge{font-size:11px;font-weight:700;text-transform:uppercase;color:#0058B0;letter-spacing:0.5px;margin-bottom:8px;display:block}
.nn-article h1{font-size:32px;font-weight:700;line-height:1.2;margin-bottom:12px;color:#00253E}
.nn-article .nn-article-meta{font-size:13px;color:#666;margin-bottom:16px;display:flex;gap:16px}
.nn-article .nn-featured-img{width:100%;margin-bottom:24px}
.nn-article .nn-featured-img img{width:100%}
.nn-article-content{font-size:17px;line-height:1.7}
.nn-article-content p{margin-bottom:16px}
.nn-article-content h2{font-size:22px;font-weight:700;margin:28px 0 12px;color:#00253E}
.nn-article-content blockquote{border-left:3px solid #0058B0;padding-left:16px;margin:20px 0;font-style:italic;color:#555}

/* Breadcrumbs */
.nn-breadcrumbs{font-size:12px;color:#999;padding:12px 0}
.nn-breadcrumbs a{color:#666}
.nn-breadcrumbs a:hover{color:#0058B0}

/* Related posts */
.nn-related{padding:32px 0;border-top:3px solid #00253E}
.nn-related h3{font-size:18px;font-weight:800;text-transform:uppercase;margin-bottom:20px;color:#00253E}

/* === ARCHIVE === */
.nn-archive-header{padding:24px 0;border-bottom:3px solid #00253E;margin-bottom:24px}
.nn-archive-header h1{font-size:28px;font-weight:800;text-transform:uppercase;letter-spacing:1px;color:#00253E}
.nn-archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}

/* Pagination */
.nn-pagination{padding:24px 0;text-align:center;display:flex;justify-content:center;gap:4px}
.nn-pagination a,.nn-pagination span{display:inline-block;padding:8px 14px;border:1px solid #ddd;font-size:13px;font-weight:600}
.nn-pagination .current{background:#00253E;color:#fff;border-color:#00253E}

/* === FOOTER (dark, minimal like ABCNews) === */
.nn-footer{background:#00253E;color:#999;padding:32px 0;font-size:13px}
.nn-footer .container{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px}
.nn-footer-links{display:flex;gap:20px}
.nn-footer-links a{color:rgba(255,255,255,0.6)}
.nn-footer-links a:hover{color:#fff}
.nn-footer-copy{color:rgba(255,255,255,0.4)}

/* === 404 === */
.nn-404{text-align:center;padding:80px 16px}
.nn-404 h1{font-size:48px;font-weight:800;margin-bottom:16px;color:#00253E}
.nn-404 p{font-size:18px;color:#666;margin-bottom:24px}

/* === RESPONSIVE === */
@media(max-width:1024px){
  .nn-hero-grid{grid-template-columns:1fr}
  .nn-hero-sidebar{display:none}
  .nn-small-row{grid-template-columns:repeat(3,1fr)}
  .nn-section-content{grid-template-columns:1fr}
  .nn-section-featured{min-height:280px}
  .nn-trending-grid{grid-template-columns:repeat(2,1fr)}
  .nn-cards-row{grid-template-columns:repeat(2,1fr)}
  .nn-headlines{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:768px){
  .nn-header-nav{display:none;position:absolute;top:50px;left:0;right:0;background:#00253E;flex-direction:column;padding:12px 20px;box-shadow:0 4px 8px rgba(0,0,0,0.3)}
  .nn-header-nav a,.nn-header-nav li a{padding:10px 0;border-bottom:none}
  .nn-hamburger{display:block}
  .nn-hero-main{min-height:260px}
  .nn-small-row{grid-template-columns:1fr 1fr}
  .nn-section-content{grid-template-columns:1fr}
  .nn-section-featured{min-height:220px}
  .nn-trending-grid{grid-template-columns:1fr}
  .nn-cards-row{grid-template-columns:1fr}
  .nn-headlines{grid-template-columns:1fr}
  .nn-archive-grid{grid-template-columns:1fr}
  .nn-footer .container{flex-direction:column;text-align:center}
}
