/* =============================================
   NewsRo Theme - Main Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --black: #0d0d0d;
    --white: #ffffff;
    --gray-50: #f7f7f5;
    --gray-100: #eeede9;
    --gray-200: #d9d8d3;
    --gray-400: #aaa9a3;
    --gray-600: #666560;
    --gray-700: #444340;
    --nav-bg: #111111;
    --accent: #8800dd;
    --accent-hover: #7000bb;
    --accent-light: #f2e8ff;
    --red: #c0392b;
    --red-badge: #e74c3c;
    --orange: #e65100;
    --blue: #1253a4;
    --blue-light: #e8f0fe;
    --pink: #d63384;
    --pink-light: #fce4ef;
    --green: #2e7d32;
    --green-light: #edf7ee;
    --font-serif: 'Merriweather', 'Georgia', serif;
    --font-sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    --radius: 6px;
    --radius-sm: 3px;
    --radius-lg: 10px;
    --shadow: 0 1px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 3px 12px rgba(0,0,0,0.10);
    --nav-h: 54px;
    --container: 1300px;
}

html { font-size: 16px; }
body {
    font-family: var(--font-sans);
    background: var(--gray-50);
    color: var(--black);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================
   SECTION 1 - NAVIGATION (Digi24-style refined)
   ============================================= */

#site-header {
    background: var(--nav-bg);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--accent);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    height: var(--nav-h);
    gap: 0;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    margin-right: 32px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-box {
    background: var(--accent);
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 21px;
    line-height: 1;
    padding: 5px 9px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: -0.5px;
}
.logo-tld {
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

/* Primary Nav */
.primary-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}
.primary-nav a {
    color: #bbb;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    padding: 6px 11px;
    border-radius: var(--radius-sm);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.current { color: #fff; }
.primary-nav a.current { background: rgba(255,255,255,.08); }

/* Nav Right */
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-search {
    background: none;
    border: 1px solid rgba(255,255,255,.15);
    color: #aaa;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    transition: .15s;
    display: flex;
    align-items: center;
    font-size: 15px;
}
.nav-search:hover { color: #fff; border-color: rgba(255,255,255,.35); }

/* Breaking ticker */
.breaking-bar {
    background: var(--accent);
    color: #fff;
}
.breaking-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-size: 13px;
}
.breaking-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: rgba(0,0,0,.22);
    padding: 3px 9px;
    border-radius: 2px;
    flex-shrink: 0;
    color: #fff;
}
.breaking-link {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity .15s;
}
.breaking-link:hover { opacity: .82; text-decoration: underline; }

@media (max-width: 768px) {
    .breaking-bar { display: none; }
}

/* =============================================
   SECTION 2 - HERO (Digi24 hero + sidebar)
   ============================================= */

#hero-section {
    background: var(--white);
    border-bottom: 1px solid var(--gray-100);
    padding: 28px 0 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 28px;
    align-items: start;
}

/* Hero main article */
.hero-main {}

.hero-thumb {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #1a1a1a;
}
.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.hero-thumb:hover img { transform: scale(1.02); }

.hero-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    color: #fff;
}
.hero-badge.exclusiv { background: var(--accent); }
.hero-badge.breaking { background: var(--red-badge); }
.hero-badge.video { background: var(--red); }

.hero-title {
    font-family: var(--font-serif);
    font-size: 25px;
    font-weight: 700;
    line-height: 1.38;
    color: var(--black);
    margin: 16px 0 10px;
}
.hero-title a:hover { color: var(--accent); }

.hero-lead {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.65;
}

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-article {
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sidebar-article:first-child { padding-top: 0; }
.sidebar-article:last-child { border-bottom: none; padding-bottom: 0; }

.art-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    padding: 3px 9px;
    border-radius: 2px;
    width: fit-content;
    color: #fff;
}
.art-badge.video { background: var(--red); }
.art-badge.video-foto { background: var(--orange); }
.art-badge.foto { background: var(--blue); }

.art-title {
    font-family: var(--font-serif);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.42;
    color: var(--black);
    transition: color .15s;
}
.art-title a:hover { color: var(--accent); }

.art-lead {
    font-size: 12.5px;
    color: var(--gray-600);
    line-height: 1.55;
}

/* =============================================
   SECTION 3 - PUNCTUL CULMINANT STYLE
   (Video show + article grid)
   ============================================= */

#show-section {
    background: var(--gray-50);
    padding: 32px 0;
    border-bottom: 1px solid var(--gray-100);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.section-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-700);
}
.section-title-line {
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.show-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    margin-bottom: 24px;
}

/* Show main video */
.show-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0d0d0d;
    aspect-ratio: 16/9;
}
.show-main .show-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
}
.show-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82) 45%, transparent 70%);
}
.show-logo-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--white);
    color: var(--black);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    letter-spacing: .3px;
}
.show-exclusive {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s, background .15s;
}
.play-btn:hover { background: #fff; transform: translate(-50%, -50%) scale(1.08); }
.play-btn svg { width: 20px; height: 20px; margin-left: 3px; }

.show-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
}
.show-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

/* Show sidebar - recent video thumbs */
.show-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.show-side-item {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .15s;
}
.show-side-item:hover { box-shadow: var(--shadow-md); }
.show-side-thumb {
    position: relative;
    aspect-ratio: 4/3;
    background: #222;
    overflow: hidden;
}
.show-side-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
}
.thumb-play svg { width: 22px; height: 22px; color: #fff; }
.show-side-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.show-side-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .9px;
    text-transform: uppercase;
    color: var(--accent);
}
.show-side-title {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.38;
    color: var(--black);
}
.show-side-time {
    font-size: 11px;
    color: var(--gray-400);
}

/* Article small grid below show */
.articles-small-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.small-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .15s, transform .15s;
    display: flex;
    flex-direction: column;
}
.small-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.small-card-thumb {
    aspect-ratio: 16/9;
    background: #ddd;
    overflow: hidden;
    position: relative;
}
.small-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.small-card-cat {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 8px;
    color: #fff;
    background: rgba(0,0,0,.5);
}
.small-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 5px; }
.small-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
    color: var(--black);
}
.small-card-lead {
    font-size: 11.5px;
    color: var(--gray-600);
    line-height: 1.5;
    flex: 1;
}

/* =============================================
   SECTION 4 - EXTERN/INTERNATIONAL
   (Știri Externe style from image 3)
   ============================================= */

#extern-section {
    background: var(--white);
    padding: 32px 0;
    border-bottom: 1px solid var(--gray-100);
}

.extern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.extern-featured {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #111;
    min-height: 360px;
}
.extern-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
}
.extern-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 45%, transparent 70%);
}
.livetext-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red-badge);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.livetext-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1.2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.extern-featured-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
}
.extern-cat {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 6px;
}
.extern-date { color: rgba(255,255,255,.55); margin-left: 6px; }
.extern-featured-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.38;
    color: #fff;
}

/* Extern right grid */
.extern-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
}
.extern-card {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: box-shadow .15s;
}
.extern-card:hover { box-shadow: var(--shadow-md); }
.extern-card-thumb {
    aspect-ratio: 16/9;
    background: #eee;
    overflow: hidden;
}
.extern-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.extern-card:hover .extern-card-thumb img { transform: scale(1.04); }
.extern-card-body { padding: 12px; flex: 1; }
.extern-card-meta {
    font-size: 10.5px;
    color: var(--gray-400);
    margin-bottom: 5px;
    display: flex;
    gap: 8px;
}
.extern-card-cat { color: var(--accent); font-weight: 700; }
.extern-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--black);
}

/* =============================================
   SECTION 5 - LIBERTATEA STYLE
   (5 Știri - show cards from image 4)
   ============================================= */

#show5-section {
    background: var(--gray-50);
    padding: 32px 0;
}

.show5-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.show5-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gray-700);
}
.show5-view-all {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap .15s;
}
.show5-view-all:hover { gap: 7px; }

.show5-main-grid {
    display: grid;
    grid-template-columns: 440px 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.show5-featured {
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    position: relative;
    aspect-ratio: 4/3;
}
.show5-featured img { width: 100%; height: 100%; object-fit: cover; }
.show5-feat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 40%, transparent 70%);
}
.show5-excl {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--red-badge);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}
.show5-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s, background .15s;
}
.show5-play-btn:hover { background: #fff; transform: translate(-50%,-50%) scale(1.08); }
.show5-play-btn svg { width: 20px; height: 20px; margin-left: 3px; }
.show5-feat-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px;
}
.show5-feat-cat {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.65);
    margin-bottom: 6px;
}
.show5-feat-date { margin-left: 6px; color: rgba(255,255,255,.45); }
.show5-feat-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
}

/* Show5 sidebar list */
.show5-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.show5-list-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}
.show5-list-item:first-child { padding-top: 0; }
.show5-list-item:last-child { border-bottom: none; padding-bottom: 0; }
.show5-list-cat {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
}
.show5-list-date { color: var(--gray-400); margin-left: 5px; font-weight: 400; }
.show5-list-title {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.42;
    color: var(--black);
    transition: color .15s;
}
.show5-list-item:hover .show5-list-title { color: var(--accent); }

/* Show5 bottom 4-col grid */
.show5-bottom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.show5-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
    transition: box-shadow .15s, transform .15s;
    display: flex;
    flex-direction: column;
}
.show5-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.show5-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #ccc;
    overflow: hidden;
}
.show5-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.show5-card:hover .show5-card-thumb img { transform: scale(1.04); }
.show5-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.3);
    opacity: 0;
    transition: opacity .2s;
}
.show5-card:hover .show5-card-play { opacity: 1; }
.show5-card-play svg { width: 28px; height: 28px; color: #fff; }
.show5-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.show5-card-meta { font-size: 10px; color: var(--gray-400); display: flex; gap: 7px; }
.show5-card-section { font-weight: 700; color: var(--accent); font-size: 10px; letter-spacing: .8px; text-transform: uppercase; }
.show5-card-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.42;
    color: var(--black);
}

/* =============================================
   FOOTER
   ============================================= */

#site-footer {
    background: #111;
    color: #aaa;
    padding: 36px 0 20px;
    margin-top: 0;
}
.footer-top {
    display: grid;
    grid-template-columns: 220px 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {}
.footer-logo-box {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 900;
    font-size: 20px;
    padding: 5px 9px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.footer-desc { font-size: 13px; line-height: 1.6; color: #777; }
.footer-col-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ddd;
    margin-bottom: 14px;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-size: 13px;
    color: #777;
    transition: color .15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #555;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr 300px; }
    .extern-right { grid-template-columns: 1fr; }
    .show5-main-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; }
    .show-grid { grid-template-columns: 1fr; }
    .show5-main-grid { grid-template-columns: 1fr; }
    .articles-small-grid { grid-template-columns: repeat(2, 1fr); }
    .show5-bottom-grid { grid-template-columns: repeat(2, 1fr); }
    .extern-grid { grid-template-columns: 1fr; }
    .extern-right { grid-template-columns: 1fr 1fr; }
    .primary-nav { display: none; }
    .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
    .articles-small-grid { grid-template-columns: 1fr; }
    .show5-bottom-grid { grid-template-columns: 1fr; }
    .extern-right { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
}
