/* Styly stránky news.php — dřív inline v <style>, teď soubor s dlouhou cache. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #ffffff; --bg-2: #f5f9fd; --bg-card: #ffffff;
    --border: #e3eaf3; --border-2: #d0dcea;
    --accent: #00a2e8; --glow: rgba(0,162,232,0.3);
    --text: #0d1a2a; --text-2: #5a6a85; --text-m: #9aa8af;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.6; overflow-x: hidden;
            }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f4f9; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 6px; }

/* Navigace: css/nav.css (sdílená, lib/nav.php). */

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

.page-header {
    padding: 5rem 1.5rem 3.5rem;
    text-align: center;
    background: var(--bg);
    position: relative; overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: .3;
}
.page-header-label {
    display: inline-block; font-size: .72rem; font-weight: 700;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 1rem;
}
.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900; letter-spacing: -.02em; margin-bottom: .7rem;
}
.page-header p { color: var(--text-2); font-size: 1rem; }

section { padding: 3rem 0 5rem; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.2rem;
}
.news-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 1.5rem;
    display: flex; flex-direction: column; gap: .7rem;
    transition: border-color .2s;
}
.news-card:hover { border-color: var(--border-2); }
.news-badge {
    display: inline-block; font-size: .7rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: .2rem .65rem; border-radius: 6px; align-self: flex-start;
}
/* Drobné velké písmo na světlém tónu — barva musí být výrazně tmavší
   než ten tón, jinak se to nedá přečíst. Původní odstíny (#5edd78,
   #f5c518) měly kontrast kolem 2:1. Tmavý režim si je zesvětluje
   zpátky v css/theme.css. */
.badge-update       { background: rgba(0,180,255,0.12);   color: #0069a8; }
.badge-feature      { background: rgba(0,200,90,0.12);    color: #0a7a3d; }
.badge-fix          { background: rgba(210,150,0,0.14);   color: #8a5d00; }
.badge-important    { background: rgba(255,80,80,0.12);   color: #b81c1c; }
.badge-maintenance  { background: rgba(144,85,255,0.12);  color: #6327c4; }
.badge-announcement { background: rgba(0,180,255,0.12);   color: #0069a8; }
.news-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.news-card p  { font-size: .87rem; color: var(--text-2); line-height: 1.65; flex: 1; }
.news-date { font-size: .78rem; color: var(--text-m); }

.no-news {
    text-align: center; padding: 4rem 2rem;
    color: var(--text-2); font-size: .95rem;
}

footer {
    background: var(--bg); border-top: 1px solid var(--border);
    padding: 2.5rem 1.5rem; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.footer-logo { font-size: .95rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; list-style: none; }
.footer-links a { color: var(--text-m); text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: var(--text-2); }
footer p { color: var(--text-m); font-size: .8rem; }

@media (max-width: 860px) {
}
