/*
 * Research Section Styling
 * Verschuift van Commercial Kaizar (ruby red, dramatic power) naar Research Kaizar (cyber blue/purple, analytical exploration)
 */

:root {
  /* Research-specifieke kleuren - analytisch, exploratief, wetenschappelijk */
  --cyber-blue: #5b9bd5;              /* primary research accent - analytical blue */
  --cyber-purple: #8b7ef6;            /* secondary accent - exploratory purple */
  --cyber-blue-soft: rgba(91, 155, 213, 0.18);
  --cyber-purple-soft: rgba(139, 126, 246, 0.12);
  --cyber-blue-dim: rgba(91, 155, 213, 0.04);
  --purple-subtle: rgba(139, 92, 246, 0.03);
  --purple-glow: rgba(167, 139, 250, 0.05);
  --data-flow: rgba(91, 155, 213, 0.08);
}

/* Animations */
@keyframes scan-line {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(300vh); opacity: 0; }
}

@keyframes data-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}

/* Body background - analytische blue/purple exploratie i.p.v. ruby red drama */
body {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      var(--cyber-blue-dim) 39px,
      var(--cyber-blue-dim) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      var(--purple-subtle) 39px,
      var(--purple-subtle) 40px
    ),
    /* Research exploratie gradients - blue/purple focus */
    radial-gradient(ellipse at 20% 30%, var(--cyber-blue-dim) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 15%, var(--purple-subtle) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, var(--purple-glow) 0%, transparent 50%),
    radial-gradient(ellipse at top, #0a0e1a 0%, #050608 45%, #020304 100%);
  background-attachment: fixed;
}

/* Scan line met subtiel paars accent */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--purple-subtle) 45%,
    rgba(91, 155, 213, 0.015) 50%,
    var(--purple-subtle) 55%,
    transparent 100%
  );
  pointer-events: none;
  animation: scan-line 16s linear infinite;
  z-index: 9999;
  opacity: 0.4;
}

/* Grid overlay met subtiel blue/purple mix */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--purple-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--cyber-blue-dim) 1px, transparent 1px);
  background-size: 120px 120px;
  pointer-events: none;
  opacity: 0.3;
  z-index: 0;
}

/* Page container */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  position: relative;
  z-index: 1;
}

header {
  margin-bottom: 2.5rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--cyber-blue);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 0.5rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.subtitle {
  max-width: 640px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Grid layout voor research overview */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: flex-start;
}

@media (max-width: 800px) {
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Card styling - analytical blue/purple i.p.v. dramatic ruby red */
.card {
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 19px,
      var(--cyber-blue-dim) 19px,
      var(--cyber-blue-dim) 20px
    ),
    radial-gradient(circle at top left, var(--cyber-blue-soft) 0%, transparent 60%),
    radial-gradient(circle at bottom right, var(--purple-subtle), transparent 65%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent 50%),
    rgba(10, 11, 16, 0.9);
  border-radius: 18px;
  padding: 1.4rem 1.5rem 1.3rem;
  border: 1px solid var(--cyber-blue-dim);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 4px 16px rgba(0, 0, 0, 0.5),
    0 12px 40px rgba(0, 0, 0, 0.7),
    inset 0 0 20px var(--data-flow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(150%);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--cyber-blue-soft);
  box-shadow:
    0 0 0 1px var(--cyber-blue-dim),
    0 6px 20px rgba(0, 0, 0, 0.55),
    0 16px 48px rgba(0, 0, 0, 0.8),
    inset 0 0 25px var(--data-flow),
    inset 0 0 40px var(--purple-glow);
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top right, var(--cyber-blue-dim), transparent 50%),
    radial-gradient(circle at bottom left, var(--purple-glow) 0%, transparent 55%);
  opacity: 0.6;
  pointer-events: none;
  animation: data-flow 12s linear infinite;
}

.card::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--cyber-blue-dim) 0%,
    transparent 50%
  );
  border-radius: 0 18px 0 0;
  pointer-events: none;
  opacity: 0.4;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.4;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.card-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyber-blue);
  margin-bottom: 0.65rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
  line-height: 1.6;
}

.meta-line {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--cyber-blue);
  margin-right: 0.4rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.3rem 0 0.6rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.22rem 0.7rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: rgba(245, 245, 245, 0.75);
  background:
    linear-gradient(135deg, var(--cyber-blue-dim), transparent),
    rgba(5, 6, 8, 0.85);
  white-space: nowrap;
  font-weight: 450;
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}

.pill:hover {
  border-color: var(--cyber-blue-dim);
  background:
    linear-gradient(135deg, var(--data-flow), transparent),
    rgba(5, 6, 8, 0.9);
  color: rgba(245, 245, 245, 0.95);
}

/* Button styling - analytical blue i.p.v. dramatic red */
.card a.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--cyber-blue-soft);
  background:
    radial-gradient(circle at top, var(--data-flow), transparent 70%),
    var(--cyber-blue-dim);
  color: #f8f8f8;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow:
    0 0 0 1px var(--cyber-blue-dim),
    0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card a.btn:hover {
  transform: translateY(-1px);
  border-color: var(--cyber-blue-soft);
  background:
    radial-gradient(circle at top, var(--cyber-blue-soft), transparent 70%),
    var(--data-flow);
  box-shadow:
    0 0 0 1px var(--cyber-blue-soft),
    0 3px 10px rgba(0, 0, 0, 0.45),
    0 6px 20px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.card a.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.card a.btn span.icon {
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* Override main site .btn-primary voor research - cyber blue i.p.v. ruby red */
.btn-primary {
  border-color: var(--cyber-blue-soft) !important;
  background:
    linear-gradient(145deg, var(--data-flow), transparent 60%),
    var(--cyber-blue-dim) !important;
  box-shadow:
    0 0 0 1px var(--cyber-blue-dim),
    0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.btn-primary:hover {
  border-color: var(--cyber-blue-soft) !important;
  background:
    linear-gradient(145deg, var(--cyber-blue-soft), var(--data-flow) 60%, transparent 80%) !important;
  box-shadow:
    0 0 0 1px var(--cyber-blue-soft),
    0 6px 16px rgba(0, 0, 0, 0.5),
    0 0 20px var(--data-flow) !important;
}

/* Side card styling - iets lichter voor betere leesbaarheid */
.side-card {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.04), transparent 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 45%),
    rgba(12, 14, 20, 0.88);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.25rem 1.35rem 1.1rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 8px 24px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-card:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 3px 10px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.045);
}

.side-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.side-text {
  font-size: 0.9rem;
  color: rgba(207, 205, 197, 0.85);
  line-height: 1.6;
  margin-bottom: 0.9rem;
}

.side-text a {
  color: var(--cyber-blue);
  text-decoration: none;
  transition: color 0.16s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
}

.side-text a:hover {
  color: var(--cyber-purple);
  border-bottom-color: var(--cyber-blue-soft);
}

.side-meta {
  font-size: 0.8rem;
  color: rgba(207, 205, 197, 0.85);
  margin: 0.2rem 0;
  line-height: 1.6;
}

.side-meta a {
  color: var(--cyber-blue);
  text-decoration: none;
  transition: color 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-meta a:hover {
  color: var(--cyber-purple);
}

/* Footer styling */
footer {
  margin-top: 2.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 1rem;
  position: relative;
  background: linear-gradient(
    to top,
    rgba(3, 4, 8, 0.2),
    transparent 100%
  );
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyber-blue-dim) 50%, transparent);
  opacity: 0.5;
}

footer a {
  color: var(--cyber-blue-soft);
  text-decoration: none;
  transition: color 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}

footer a:hover {
  color: var(--cyber-blue);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.footer-row > div:first-child {
  flex: 0 1 auto;
  min-width: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

@media (max-width: 800px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Back link styling */
.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--cyber-blue);
}
