/*
Theme Name: MSCR 2026
Theme URI: https://mscr.techogre.com/
Author: kjaTech
Description: 2026 cybersecurity research theme for the Malaysian Society for Cryptology Research.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: mscr-2026
*/

:root {
  --bg: #070b13;
  --bg-2: #0c1322;
  --ink: #121826;
  --text: #f7fafc;
  --muted: #96a3b8;
  --muted-dark: #5f6f86;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: #dce3ed;
  --cyan: #35d2c8;
  --blue: #3967ff;
  --violet: #7a5cff;
  --gold: #f4bc4f;
  --red: #ff685f;
  --green: #78e08f;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 18px;
  top: -48px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--cyan);
  color: #00181a;
  border-radius: 999px;
  font-weight: 800;
}

.skip-link:focus {
  top: 18px;
}

.wrap {
  width: min(var(--max), calc(100% - 42px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 19, 0.78);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 42px));
  min-height: 82px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 245px;
  text-decoration: none;
}

.brand img {
  width: 72px;
  border-radius: 6px;
}

.brand strong {
  display: block;
  color: var(--white);
  font-size: 1rem;
  line-height: 1.05;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  background: rgba(53, 210, 200, 0.12);
  color: var(--white);
}

.site-nav .nav-cta > a,
.nav-cta {
  background: linear-gradient(135deg, var(--cyan), #9af6ef);
  color: #032125 !important;
  box-shadow: 0 12px 30px rgba(53, 210, 200, 0.22);
}

.hero {
  position: relative;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  background:
    radial-gradient(circle at 74% 18%, rgba(57, 103, 255, 0.28), transparent 34%),
    radial-gradient(circle at 18% 18%, rgba(53, 210, 200, 0.18), transparent 30%),
    linear-gradient(135deg, #070b13, #101a2d 58%, #07101b);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 19, 0.96), rgba(7, 11, 19, 0.68), rgba(7, 11, 19, 0.2)),
    var(--hero-image) center / cover no-repeat;
  opacity: 0.72;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.65;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 44px;
  min-height: calc(100svh - 82px);
  padding: 88px 0 46px;
}

.eyebrow {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(53, 210, 200, 0.34);
  border-radius: 999px;
  background: rgba(53, 210, 200, 0.12);
  color: #b8fffa;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 940px;
  margin: 22px 0 22px;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 7.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 780px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 850;
  text-decoration: none;
}

.button--primary,
.wp-block-button__link {
  background: linear-gradient(135deg, var(--cyan), #9af6ef);
  color: #022428;
}

.button--primary:hover,
.wp-block-button__link:hover {
  filter: brightness(1.06);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

.signal-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(9, 16, 29, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-dot {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #b8fffa;
  font-size: 0.8rem;
  font-weight: 850;
}

.status-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.signal-panel__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.signal-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.065);
}

.signal-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.signal-row strong {
  color: var(--white);
  font-size: 0.95rem;
}

.metrics {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 42px));
  margin: -28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.metric {
  padding: 22px;
  background: rgba(10, 17, 31, 0.88);
}

.metric strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-weight: 750;
}

.section {
  padding: 94px 0;
}

.section--light {
  background: var(--paper);
  color: var(--ink);
}

.section--deep {
  background:
    radial-gradient(circle at 18% 12%, rgba(53, 210, 200, 0.12), transparent 30%),
    linear-gradient(180deg, #0a111f, #070b13);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(290px, 0.46fr);
  align-items: end;
  gap: 34px;
  margin-bottom: 36px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section--light .kicker {
  color: #057d86;
}

h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.05;
}

h2 {
  max-width: 900px;
  font-size: clamp(2rem, 4vw, 4.25rem);
}

h3 {
  font-size: 1.28rem;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.section--light .lede,
.section--light .card p,
.section--light .content-card p,
.section--light .content-card li {
  color: var(--muted-dark);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card,
.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.section--light .card,
.section--light .content-card {
  border-color: var(--line-dark);
  background: var(--white);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 210, 200, 0.45);
  background: var(--panel-strong);
}

.card {
  padding: 24px;
}

.card__tag {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(53, 210, 200, 0.13);
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section--light .card__tag {
  color: #057d86;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.image-card {
  overflow: hidden;
  padding: 0;
}

.image-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #121826;
}

.image-card__body {
  padding: 22px;
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.62fr);
  gap: 24px;
  align-items: stretch;
}

.feature-band__visual {
  overflow: hidden;
  border-radius: var(--radius);
  background: #060a12;
  box-shadow: var(--shadow);
}

.feature-band__visual img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
}

.feature-band__copy {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
}

.feature-band__copy p {
  color: var(--muted);
}

.list-links {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.list-links a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  font-weight: 850;
  text-decoration: none;
}

.section--light .list-links a {
  border-color: var(--line-dark);
}

.list-links a::after {
  content: "->";
  color: var(--cyan);
}

.page-hero {
  padding: 92px 0 58px;
  background:
    radial-gradient(circle at 80% 12%, rgba(57, 103, 255, 0.24), transparent 35%),
    linear-gradient(135deg, #070b13, #111d33);
}

.page-hero h1 {
  font-size: clamp(2.55rem, 5.5vw, 5.6rem);
}

.page-hero p {
  max-width: 790px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.13rem;
}

.page-content {
  padding: 72px 0 96px;
  background: var(--paper);
  color: var(--ink);
}

.content-shell {
  max-width: 920px;
}

.content-shell > *:first-child {
  margin-top: 0;
}

.content-shell h2 {
  margin-top: 42px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
}

.content-shell h3 {
  margin-top: 30px;
  color: var(--ink);
}

.content-shell p,
.content-shell li {
  color: #314057;
}

.content-shell a {
  color: #056b74;
  font-weight: 750;
}

.content-shell table {
  width: 100%;
  margin: 26px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.content-shell th,
.content-shell td {
  padding: 14px;
  border: 1px solid var(--line-dark);
  vertical-align: top;
  text-align: left;
}

.content-shell th {
  background: #eaf1f7;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-card {
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--white);
}

.post-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.activity-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.activity-card {
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 46px rgba(18, 24, 38, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.activity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(18, 24, 38, 0.14);
}

.activity-card__image {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.activity-card__image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 240ms ease;
}

.activity-card:hover .activity-card__image img {
  transform: scale(1.045);
}

.activity-card__year {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(7, 11, 19, 0.72);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.activity-card__body {
  padding: 20px;
}

.activity-card__body h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 1.22rem;
}

.activity-card__body p {
  margin: 0;
  color: var(--muted-dark);
}

.site-footer {
  background: #050810;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.8fr 0.7fr;
  gap: 34px;
  padding: 58px 0;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer p,
.site-footer address {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.site-footer a {
  color: #b8fffa;
}

.footer-links {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.site-footer__bottom {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.9rem;
}

@media (max-width: 1020px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .hero__inner,
  .section-head,
  .grid-3,
  .grid-2,
  .activity-gallery,
  .feature-band,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
  }

  .signal-panel {
    max-width: 520px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .wrap,
  .site-header__inner {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 58px;
  }

  .site-nav a {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4.6rem);
  }

  .hero__inner {
    padding-top: 62px;
  }

  .section {
    padding: 68px 0;
  }

  .metrics {
    width: min(var(--max), calc(100% - 28px));
  }

  .metric {
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card {
    transition: none;
  }

  .hero-canvas {
    display: none;
  }
}
