/* ═══════════════════════════════════════════
   RiskiBits.net — Clean Security Blog
   ═══════════════════════════════════════════ */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --accent: #dc2626;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }

/* ── LAYOUT ── */
.container { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── HEADER ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}
header .container-wide {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--accent); }
nav { display: flex; gap: 32px; }
nav a { color: var(--text-light); font-weight: 500; font-size: 15px; }
nav a:hover { color: var(--primary); text-decoration: none; }

/* ── HERO ── */
.hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
  color: white;
}
.hero h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 32px;
}
.hero .cta {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.2s;
}
.hero .cta:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

/* ── ARTICLES LIST ── */
.articles { padding: 60px 0; }
.articles h2 {
  font-size: 28px;
  margin-bottom: 32px;
  color: var(--text);
}
.article-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.article-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: var(--primary);
}
.article-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--primary); text-decoration: none; }
.article-card .meta {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 12px;
}
.article-card .excerpt {
  color: var(--text-light);
  font-size: 16px;
}
.tag {
  display: inline-block;
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--text-light);
  margin-right: 8px;
}

/* ── ARTICLE PAGE ── */
.article-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 {
  font-size: 40px;
  line-height: 1.3;
  margin-bottom: 16px;
}
.article-header .meta {
  color: var(--text-light);
  font-size: 15px;
}
.article-content {
  padding: 48px 0;
}
.article-content h2 {
  font-size: 28px;
  margin: 48px 0 20px;
  color: var(--text);
}
.article-content h3 {
  font-size: 22px;
  margin: 36px 0 16px;
  color: var(--text);
}
.article-content p {
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 20px 0;
  padding-left: 28px;
}
.article-content li {
  margin-bottom: 10px;
}
.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  background: var(--bg-alt);
  margin: 28px 0;
  font-style: italic;
}
.article-content code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 15px;
  color: var(--accent);
}
.article-content pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 24px 0;
}
.article-content pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ── CTA BOX ── */
.cta-box {
  background: linear-gradient(135deg, #1e3a5f, #2563eb);
  color: white;
  padding: 40px;
  border-radius: 12px;
  margin: 48px 0;
  text-align: center;
}
.cta-box h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.cta-box p {
  opacity: 0.9;
  margin-bottom: 24px;
}
.cta-box .btn {
  display: inline-block;
  background: white;
  color: var(--primary-dark);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
}
.cta-box .btn:hover { text-decoration: none; opacity: 0.95; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}
footer a { color: var(--text-light); }

/* ── ABOUT ── */
.about-section {
  padding: 60px 0;
}
.about-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
}
.about-section p {
  margin-bottom: 16px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 17px; }
  .article-header h1 { font-size: 28px; }
  nav { gap: 20px; }
  nav a { font-size: 14px; }
}
@media (max-width: 480px) {
  nav { display: none; }
  .hero { padding: 50px 0; }
}
