/* =========================================================
   Typography (Google Fonts)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #181824 0, #050509 45%, #020206 100%);
  color: #f5f5f5;
  line-height: 1.6;
}

/* Container */
.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, #050509, #10101a 60%, #090916 100%);
  padding: 1.5rem 0 1.75rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-text {
  flex: 1 1 auto;
}

.site-title {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.site-subtitle {
  font-size: 0.9rem;
  color: #b0b7ff;
  margin-bottom: 0.75rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f5f5f5;
  background: rgba(8, 8, 16, 0.75);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.main-nav a:hover {
  background: rgba(80, 130, 255, 0.18);
  border-color: rgba(120, 180, 255, 0.7);
  transform: translateY(-1px);
}

.main-nav a[aria-current="page"] {
  background: rgba(120, 180, 255, 0.3);
  border-color: rgba(160, 210, 255, 0.9);
}

/* Header image block */
.header-image-wrapper {
  flex: 0 0 260px;
  max-width: 260px;
  background: radial-gradient(circle, #202040 0, #050509 70%);
  padding: 0.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.7);
}

.header-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
}

.header-image-credit {
  font-size: 0.7rem;
  text-align: right;
  color: #b0b7ff;
  margin-top: 0.3rem;
}

/* =========================================================
   Panels / sections
   ========================================================= */
main {
  padding: 2rem 0 3rem;
}

.panel {
  background: rgba(8, 8, 16, 0.9);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  padding: 1.5rem 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
}

.panel h2 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

/* Progress list */
.progress-list {
  display: grid;
  gap: 0.9rem;
}

.progress-item {
  padding: 0.75rem 0.9rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, rgba(120, 180, 255, 0.08), rgba(8, 8, 16, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-title {
  font-weight: 600;
}

.progress-meta {
  font-size: 0.85rem;
  color: #cfd4ff;
}

/* Section header with link */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-link {
  font-size: 0.85rem;
  color: #a7cbff;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

/* =========================================================
   Blog post styles
   ========================================================= */
.post-grid {
  display: grid;
  gap: 1.1rem;
}

.post-card,
.post-row {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, rgba(80, 120, 255, 0.1), rgba(8, 8, 16, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.post-card h3,
.post-row h2 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.post-card h3 a,
.post-row h2 a {
  color: #f5f5f5;
  text-decoration: none;
}

.post-card h3 a:hover,
.post-row h2 a:hover {
  text-decoration: underline;
}

.meta {
  font-size: 0.8rem;
  color: #aab1e6;
  margin-bottom: 0.4rem;
}

.post-card p,
.post-row p {
  font-size: 0.9rem;
  color: #e0e0e0;
}

/* Single post */
.single-post h1 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.single-post .content p {
  margin-bottom: 0.8rem;
}

.single-post .content a {
  color: #a7cbff;
}

/* Blog layout on /blog */
.blog-heading {
  margin-bottom: 1rem;
}

.blog-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem 0 1.5rem;
  background: #050509;
  font-size: 0.85rem;
  color: #b0b7ff;
}

.footer-inner {
  display: flex;
  justify-content: center;
}

/* =========================================================
   Links / global
   ========================================================= */
a {
  color: #a7cbff;
}

a:hover {
  color: #d1e4ff;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-image-wrapper {
    align-self: stretch;
    max-width: 100%;
  }

  .panel {
    padding: 1.25rem 1.1rem 1.5rem;
  }
}

/* =========================================================
   NYSUS Black Vault — visual effects
   ========================================================= */

.black-vault-item {
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    circle at top left,
    rgba(255, 80, 120, 0.08),
    rgba(8, 8, 16, 0.98)
  );
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 18px rgba(255, 0, 80, 0.25),
    0 16px 40px rgba(0, 0, 0, 0.85);
}

/* Glow strip on the left edge */
.black-vault-item::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 4px;
  height: 180%;
  background: linear-gradient(
    to bottom,
    rgba(255, 0, 80, 0.0),
    rgba(255, 0, 80, 0.8),
    rgba(255, 120, 200, 0.0)
  );
  box-shadow: 0 0 16px rgba(255, 0, 80, 0.7);
  opacity: 0.7;
  animation: vaultScan 4s linear infinite;
}

/* Subtle noise/flicker overlay */
.black-vault-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at 0 0,
    rgba(255, 255, 255, 0.06) 0,
    transparent 40%
  );
  mix-blend-mode: screen;
  opacity: 0.15;
  animation: vaultFlicker 6s ease-in-out infinite;
}

/* Title styling inside Black Vault entries */
.black-vault-item .progress-title {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #ffd6e6;
}

.black-vault-item .progress-meta {
  font-size: 0.85rem;
  color: #f7e9ff;
}

.black-vault-item .progress-meta strong {
  color: #ffb3d1;
}

.black-vault-item .progress-meta em {
  color: #f0dfff;
  font-style: normal;
  opacity: 0.9;
}

/* Severity / classification color variants */
.black-vault-critical {
  border-color: rgba(255, 80, 120, 0.9);
  box-shadow:
    0 0 22px rgba(255, 40, 80, 0.55),
    0 18px 45px rgba(0, 0, 0, 0.9);
}

.black-vault-restricted {
  border-color: rgba(255, 180, 80, 0.9);
  box-shadow:
    0 0 18px rgba(255, 150, 40, 0.45),
    0 16px 40px rgba(0, 0, 0, 0.9);
}

.black-vault-stable {
  border-color: rgba(80, 240, 210, 0.9);
  box-shadow:
    0 0 18px rgba(80, 240, 210, 0.45),
    0 16px 40px rgba(0, 0, 0, 0.9);
}

/* Scan line animation */
@keyframes vaultScan {
  0% {
    transform: translateY(-20%);
    opacity: 0.3;
  }
  50% {
    transform: translateY(20%);
    opacity: 0.9;
  }
  100% {
    transform: translateY(80%);
    opacity: 0.2;
  }
}

/* Subtle flicker / breathing effect */
@keyframes vaultFlicker {
  0%   { opacity: 0.18; }
  25%  { opacity: 0.26; }
  50%  { opacity: 0.14; }
  75%  { opacity: 0.24; }
  100% { opacity: 0.18; }
}

/* Special heading styling for Black Vault section */
h2.black-vault-heading {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: #ffb3d1;
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}
