/* Cybersecurity812.casa — Security News & Research */
:root {
    --bg: #0f1117;
    --bg-card: #161822;
    --bg-hover: #1c1f2e;
    --border: #2a2d3e;
    --text: #e1e3ed;
    --text-muted: #8b8fa3;
    --accent: #00bcd4;
    --accent-hover: #26c6da;
    --red: #ef5350;
    --orange: #ff9800;
    --yellow: #ffc107;
    --green: #66bb6a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 20px 0; position: sticky; top: 0; z-index: 10; }
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 1.3em; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; }
.logo span { color: var(--text); }
nav a { margin-left: 20px; font-size: 0.9em; color: var(--text-muted); }
nav a:hover { color: var(--text); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--bg-card) 0%, #0d1b2a 100%); border-bottom: 1px solid var(--border); padding: 40px 0 30px; margin-bottom: 30px; }
.hero h1 { font-size: 1.8em; margin-bottom: 10px; }
.hero p { color: var(--text-muted); font-size: 1em; }

/* Article Grid */
.article-grid { display: flex; flex-direction: column; gap: 20px; }

.article-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 24px; transition: background .2s, transform .2s; }
.article-card:hover { background: var(--bg-hover); transform: translateY(-1px); }

.article-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 0.85em; flex-wrap: wrap; }
.severity { padding: 2px 10px; border-radius: 4px; font-weight: 600; font-size: 0.8em; }
.severity-red { background: rgba(239,83,80,0.2); color: var(--red); }
.severity-orange { background: rgba(255,152,0,0.2); color: var(--orange); }
.severity-yellow { background: rgba(255,193,7,0.15); color: var(--yellow); }
.severity-green { background: rgba(102,187,106,0.2); color: var(--green); }
.date { color: var(--text-muted); }

.article-card h2 { font-size: 1.15em; margin-bottom: 8px; }
.article-card h2 a { color: var(--text); }
.article-card h2 a:hover { color: var(--accent); }
.article-card p { color: var(--text-muted); font-size: 0.92em; margin-bottom: 12px; }
.article-card .sources { font-size: 0.82em; color: var(--text-muted); }
.article-card .sources a { color: var(--accent); }

/* Full Article */
.article-full { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 30px; margin-bottom: 20px; }
.article-full h1 { font-size: 1.6em; margin-bottom: 15px; line-height: 1.3; }
.article-full .content { font-size: 1em; line-height: 1.8; color: var(--text); }
.article-full .content p { margin-bottom: 15px; }
.article-full .content ul { margin: 10px 0 15px 20px; }
.article-full .content li { margin-bottom: 5px; }
.article-full .sources-block { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--border); }
.article-full .sources-block h3 { font-size: 0.9em; color: var(--text-muted); margin-bottom: 8px; }
.article-full .sources-block a { display: inline-block; margin-right: 15px; }

/* Pages */
.page { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 30px; }
.page h1 { font-size: 1.5em; margin-bottom: 15px; }
.page p { color: var(--text-muted); margin-bottom: 12px; }

/* Tags */
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.tag { font-size: 0.75em; padding: 2px 8px; border-radius: 3px; background: rgba(0,188,212,0.1); color: var(--accent); border: 1px solid rgba(0,188,212,0.2); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 25px 0; margin-top: 40px; text-align: center; color: var(--text-muted); font-size: 0.85em; }

/* Responsive */
@media (max-width: 640px) {
    header .container { flex-direction: column; text-align: center; }
    nav a { margin: 0 10px; }
    .hero h1 { font-size: 1.4em; }
}
