
/* style.css */

:root {

  --bg: #07111f;
  --bg-secondary: #0b1728;

  --card: #0f1c2e;

  --text: #f1f5f9;
  --muted: #94a3b8;

  --primary: #22c55e;
  --primary-dark: #16a34a;

  --danger: #ef4444;
  --warning: #f59e0b;

  --border: #163047;

  --radius: 18px;

  --shadow:
    0 20px 50px rgba(0,0,0,0.45);

}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
p,
span,
li,
a,
.meta,
.card p,
.hero p,
.featured p,
.sidebar-box li {

  color: var(--text) !important;
}

.article-content * {
  color: var(--text) !important;
  background-color: inherit !important;
}

body {

  font-family: 'Inter', sans-serif;

  background:
    radial-gradient(circle at top left,
      rgba(34,197,94,0.08),
      transparent 30%),

    radial-gradient(circle at bottom right,
      rgba(59,130,246,0.08),
      transparent 30%),

    var(--bg);

  color: var(--text) !important;

  line-height: 1.8;
}

body::before {

  content: "";

  position: fixed;

  inset: 0;

  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(34,197,94,0.03) 1px,
      transparent 1px
    );

  background-size: 100% 3px;

  opacity: 0.15;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {

  width: min(1180px, 92%);

  margin: auto;
}

/* HEADER */

.site-header {

  position: sticky;

  top: 0;

  z-index: 1000;

  background: rgba(7,17,31,0.92);

  backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

.site-header .container {

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 1rem 0;
}

.logo {

  font-size: 1.4rem;

  font-weight: 800;

  color: var(--primary);

  display: flex;

  align-items: center;

  gap: 0.7rem;
}

nav {

  display: flex;

  gap: 1.5rem;

  flex-wrap: wrap;
}

nav a {

  color: var(--muted);

  transition: 0.25s;
}

nav a:hover {
  color: var(--primary);
}

/* HERO */

.hero {

  text-align: center;

  padding: 6rem 0 4rem;
}

.hero-badge {

  display: inline-block;

  margin-bottom: 1.5rem;

  padding: 0.5rem 1rem;

  border-radius: 999px;

  background: rgba(34,197,94,0.12);

  border: 1px solid rgba(34,197,94,0.25);

  color: #4ade80;

  font-size: 0.8rem;

  letter-spacing: 1px;
}

.hero h1 {

  font-size: clamp(2.5rem, 6vw, 5rem);

  line-height: 1.1;

  margin-bottom: 1rem;

  font-weight: 800;
}

.hero p {

  color: var(--muted);

  font-size: 1.15rem;

  max-width: 800px;

  margin: auto;
}

/* STATS */

.stats {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

  gap: 1.5rem;

  margin-bottom: 4rem;
}

.stat-box {

  background: rgba(15,28,46,0.9);

  border: 1px solid var(--border);

  padding: 2rem;

  border-radius: var(--radius);

  text-align: center;

  backdrop-filter: blur(10px);
}

.stat-box span {

  display: block;

  font-size: 2rem;

  font-weight: 800;

  color: var(--primary);

  margin-bottom: 0.5rem;
}

/* FEATURED */

.featured {

  margin-bottom: 4rem;
}

.featured-content {

  background:
    linear-gradient(
      135deg,
      rgba(34,197,94,0.12),
      rgba(59,130,246,0.12)
    );

  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 3rem;
}

.featured-badge {

  display: inline-block;

  margin-bottom: 1rem;

  color: #4ade80;

  font-size: 0.85rem;

  letter-spacing: 1px;
}

.featured h2 {

  font-size: clamp(2rem, 5vw, 3rem);

  margin-bottom: 1rem;
}

.featured p {

  color: var(--muted);

  max-width: 700px;
}

/* GRID */

.articles-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 2rem;

  padding-bottom: 5rem;
}

/* CARD */

.card {

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease;

  box-shadow: var(--shadow);
}

.card:hover {

  transform: translateY(-8px);

  border-color: var(--primary);

  box-shadow:
    0 0 20px rgba(34,197,94,0.15),
    0 20px 40px rgba(0,0,0,0.45);
}

.card img {

  width: 100%;

  height: 240px;

  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.security-tags {

  display: flex;

  gap: 0.5rem;

  flex-wrap: wrap;

  margin-bottom: 1rem;
}

.security-tags span {

  background: rgba(34,197,94,0.12);

  color: #4ade80;

  padding: 0.35rem 0.7rem;

  border-radius: 999px;

  font-size: 0.75rem;

  border: 1px solid rgba(34,197,94,0.25);
}

.category {

  display: inline-block;

  margin-bottom: 1rem;

  padding: 0.4rem 0.8rem;

  border-radius: 999px;

  font-size: 0.82rem;

  background: rgba(59,130,246,0.15);

  color: #60a5fa;
}

.card h3 {

  font-size: 1.4rem;

  margin-bottom: 1rem;

  line-height: 1.3;
}

.card h3 a:hover {
  color: var(--primary);
}

.card p {

  color: var(--muted);

  margin-bottom: 1.2rem;
}

.meta {

  display: flex;

  flex-wrap: wrap;

  gap: 1rem;

  color: var(--muted);

  font-size: 0.9rem;
}

/* ARTICLE */

.article-page {

  padding: 3rem 0 5rem;
}

.article-layout {

  display: grid;

  grid-template-columns: 1fr 320px;

  gap: 2rem;
}

.article {

  position: relative;

  background: var(--bg-secondary);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: var(--shadow);
}

.article::before {

  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background:
    linear-gradient(
      90deg,
      #22c55e,
      #3b82f6,
      #22c55e
    );
}

.article-image {

  width: 100%;

  height: 480px;

  object-fit: cover;
}

.article-header {

  padding: 2.5rem 2.5rem 1rem;
}

.article-header h1 {

  font-size: clamp(2rem, 5vw, 3.5rem);

  line-height: 1.1;

  margin: 1rem 0;

  font-weight: 800;
}

.threat-level {

  display: inline-block;

  padding: 0.5rem 1rem;

  border-radius: 999px;

  font-weight: 700;

  margin-bottom: 1.5rem;
}

.threat-level.medium {

  background: rgba(245,158,11,0.15);

  color: #fbbf24;
}

.article-content {

  padding: 0 2.5rem 3rem;

  font-size: 1.15rem;

  line-height: 2;
}

.article-content h2,
.article-content h3 {

  margin-top: 2.5rem;

  margin-bottom: 1rem;

  color: white;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content a {
  color: var(--primary);
}

.article-content ul,
.article-content ol {

  padding-left: 1.5rem;

  margin-bottom: 1.5rem;
}

.article-content code {

  background: #1e293b;

  color: #4ade80;

  padding: 2px 6px;

  border-radius: 6px;

  font-size: 0.95rem;
}

.article-content pre {

  background: #020b14;

  border: 1px solid #163047;

  padding: 1.5rem;

  border-radius: 14px;

  overflow-x: auto;

  margin: 2rem 0;

  color: #4ade80;

  box-shadow:
    inset 0 0 30px rgba(34,197,94,0.05);
}

.article-content pre code {

  background: transparent;

  padding: 0;

  color: #cbd5e1;
}

blockquote {

  margin: 2rem 0;

  padding-left: 1rem;

  border-left: 4px solid var(--primary);

  color: var(--muted);

  font-style: italic;
}

/* SIDEBAR */

.sidebar {

  position: sticky;

  top: 100px;

  height: fit-content;
}

.sidebar-box {

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: var(--radius);

  padding: 1.5rem;

  margin-bottom: 1.5rem;
}

.sidebar-box h3 {

  margin-bottom: 1rem;

  color: white;
}

.sidebar-box ul {

  list-style: none;
}

.sidebar-box li {

  padding: 0.7rem 0;

  border-bottom: 1px solid rgba(255,255,255,0.05);

  color: var(--muted);
}

/* FOOTER */

.site-footer {

  border-top: 1px solid var(--border);

  background: #020617;

  padding: 2rem 0;

  text-align: center;

  color: var(--muted);
}

/* MOBILE */

@media (max-width: 900px) {

  .article-layout {

    grid-template-columns: 1fr;
  }

  .sidebar {

    position: relative;

    top: auto;
  }

}

@media (max-width: 768px) {

  .site-header .container {

    flex-direction: column;

    gap: 1rem;
  }

  nav {

    justify-content: center;
  }

  .article-image {
    height: 260px;
  }

  .article-header,
  .article-content {

    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

}

