/* =========================
   Base & background
   ========================= */
:root {
    --overlay: rgba(15, 15, 15, 0.60);
    --text: #ffffff;
    --muted: #cfcfcf;
    --card: rgba(255, 255, 255, 0.06);
    --shadow: 0 10px 30px rgba(0,0,0,0.35);

    /* Frost/Steel palette */
    --steel-dark: #0e1a24;
    --steel: #163042;
    --ice-1: #3fb8ff;
    --ice-2: #9be6ff;
    --glow: rgba(63, 184, 255, 0.55);

    /* Background path (poate fi suprascris) */
    --bg-path: "img/wall.png";
    --bg-url: url(var(--bg-path));
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background-color: #000;
    background-image: var(--bg-url, url("img/wall.png"));
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 0;
}

/* =========================
   Header & typography
   ========================= */
header, .layout { position: relative; z-index: 1; }

header {
    text-align: center;
    padding: 60px 20px 10px;
}

.logo {
    max-width: 280px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(0,0,0,0.8));
}

.title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    background: linear-gradient(90deg, #FFD700, #FF8C00, #FFD700);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 140, 0, 0.6);
    animation: glow 3s ease-in-out infinite;
    margin: 6px 0 4px;
}

.subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(0,0,0,0.6), 0 0 12px rgba(255,255,255,0.45);
    letter-spacing: 1px;
    animation: fadeIn 1.2s ease forwards;
    margin: 0 0 14px;
}

/* CTA buttons */
.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.btn { text-decoration: none; }

.btn-wow {
    position: relative;
    display: inline-block;
    padding: 12px 22px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #eaf8ff;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(0,0,0,0.15)),
        linear-gradient(135deg, var(--steel), var(--steel-dark));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.08),
        0 10px 24px rgba(0,0,0,0.45),
        0 0 18px var(--glow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    overflow: hidden;
}
.btn-wow::after {
    content: "";
    position: absolute;
    top: -100%;
    left: -30%;
    width: 60%;
    height: 300%;
    transform: rotate(25deg);
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.18), transparent);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.35s ease;
}
.btn-wow:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.10),
        0 14px 30px rgba(0,0,0,0.55),
        0 0 24px rgba(63,184,255,0.75);
    filter: saturate(1.1);
}
.btn-wow:hover::after { opacity: 1; transform: rotate(25deg) translateX(120%); }
.btn-wow:active {
    transform: translateY(0);
    box-shadow:
        inset 0 2px 6px rgba(0,0,0,0.45),
        0 8px 16px rgba(0,0,0,0.45),
        0 0 18px rgba(63,184,255,0.6);
}

/* =========================
   Layout (main + sidebar)
   ========================= */
.layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    width: min(1200px, 100%);
    margin: 20px auto 80px;
    padding: 0 20px;
}

main {
    backdrop-filter: blur(2px);
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow);
    min-height: 300px;
}

.sidebar {
    height: 100%;
    background: var(--card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* =========================
   Latest News section
   ========================= */
.news-container { position: relative; overflow: hidden; }
.news-bg-video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; opacity: 0.15;
    filter: blur(1px); pointer-events: none;
}
.news-section { position: relative; }

.news-title {
    margin: 0 0 12px;
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 800;
    letter-spacing: 0.6px;
    color: #eaf8ff;
    text-shadow: 0 0 10px rgba(63,184,255,0.6);
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}
.news-title::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--ice-1), var(--ice-2));
    border-radius: 3px;
}
.news-empty {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.98rem;
    opacity: 0.9;
}

/* Listă: 1 card pe rând, full width */
.news-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 12px;
}

/* Card cu thumbnail stânga */
.news-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 16px;
    align-items: start;
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
}
.news-card.no-thumb { grid-template-columns: 1fr; }

.news-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
.news-thumb img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

.news-body { min-width: 0; }
.news-meta time {
    color: #d8ecff;
    font-size: 0.92rem;
    opacity: 0.9;
}
.news-headline {
    margin: 6px 0 8px;
    font-size: 1.35rem;
    letter-spacing: .2px;
    font-weight: 800;
}
.news-excerpt {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.55;
}
.news-readmore {
    display: inline-block;
    font-weight: 800;
    text-decoration: none;
    color: #eaf8ff;
    border-bottom: 1px solid rgba(63,184,255,0.55);
    padding-bottom: 2px;
}
.news-readmore:hover { filter: brightness(1.08); }

/* Pager */
.news-pager {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-top: 14px;
}
.news-pager .page {
    text-decoration: none;
    color: #eaf8ff;
    font-weight: 700;
}
.news-pager .page-count {
    color: var(--muted);
    font-size: 0.95rem;
}

/* =========================
   Animations
   ========================= */
@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 12px rgba(255, 215, 0, 0.6), 0 0 25px rgba(255, 140, 0, 0.6);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 35px rgba(255, 140, 0, 0.9);
    }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1000px) {
    .layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
    .news-card { grid-template-columns: 1fr; }
    .btn-wow { padding: 11px 18px; font-size: 1rem; }
    .cta-group { gap: 10px; }
}

/* --- No thumbnail layout (one-column, full width) --- */
.news-card {
    display: block;          /* în loc de grid 260px 1fr */
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 34px rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
}

/* opțional: dacă există în fișier, poți șterge complet blocurile .news-thumb {...} */
.news-thumb { display: none !important; }
