/*
Theme Name: Identity Sentinel (Simplified)
Theme URI: https://identity-sentinel.com
Author: Identity-Sentinel / Optimus Prime
Description: A simplified, clean IAM + AI Security theme with focus on featured series, subscribe, and about.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: identity-sentinel
*/

:root {
  --bg-main: #050711;
  --bg-alt: #0b1020;
  --accent-1: #4a1e78;
  --accent-2: #e0257e;
  --accent-3: #12c6cc;
  --text-main: #f5f5f7;
  --text-muted: #a4a8b8;
  --card-bg: #0f1628;
  --border-subtle: rgba(255,255,255,0.06);
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.6);
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #172554 0, #020617 52%, #000 100%);
}

a {
  color: var(--accent-3);
  text-decoration: none;
}
a:hover { color: var(--accent-2); }

.site-header {
  padding: 1.4rem 6vw 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.site-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.site-logo {
  width: 52px; height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #22d3ee 0, #4c1d95 40%, #020617 100%);
  box-shadow: 0 0 28px rgba(34,211,238,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.site-logo img { width: 44px; height: auto; display: block; }

.site-title-wrap { display: flex; flex-direction: column; }
.site-title {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}
.site-tagline {
  margin: 0.06rem 0 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-size: 0.8rem;
}
.site-nav a {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  text-decoration: none;
  transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
}
.site-nav a:hover {
  color: #f9fafb;
  text-shadow:
    0 0 8px rgba(236, 72, 153, 0.85),
    0 0 16px rgba(56, 189, 248, 0.75);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  padding: 3rem 6vw 2.4rem;
  border-bottom: 1px solid rgba(148,163,184,0.18);
}
.hero-inner {
  max-width: 960px;
  margin: 0 auto;
}
.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 0.9rem;
}
.hero-title {
  font-size: clamp(2.1rem, 3vw + 1rem, 3rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
}
.hero-title span.highlight {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.6rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.btn-primary,
.btn-outline {
  border-radius: 999px;
  padding: 0.8rem 1.5rem;
  font-size: 0.86rem;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: #f9fafb;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  transform: translateY(-1px);
}
.btn-outline {
  background: rgba(15,23,42,0.6);
  border-color: rgba(148,163,184,0.45);
  color: var(--text-main);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.3rem;
}
.hero-tag {
  font-size: 0.75rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  color: var(--text-muted);
}

/* Main sections */

.section {
  padding: 2.2rem 6vw;
}
.section-narrow {
  padding: 2.2rem 6vw 1.8rem;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.section-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-3);
}
.section-title {
  font-size: 1.4rem;
  margin: 0.2rem 0 0;
}
.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* About + Featured Series */

.about-series-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.about-card {
  background: linear-gradient(145deg, rgba(24,24,27,0.96), #020617);
  border-radius: 22px;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px rgba(0,0,0,0.55);
}
.about-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.7rem;
}
.about-card strong { color: #e5e7eb; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}
.series-card {
  background: radial-gradient(circle at top, rgba(15,23,42,0.97) 0, #020617 82%);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.series-card-link {
  display: block;
  height: 100%;
  color: inherit;
}
.series-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1f2937, #020617);
  overflow: hidden;
}
.series-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.series-body {
  padding: 0.85rem 0.95rem 0.95rem;
}
.series-kicker {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-3);
  margin-bottom: 0.28rem;
}
.series-title {
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}
.series-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}
.series-link {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Subscribe strip */

.subscribe-strip {
  background: radial-gradient(circle at top, rgba(15,23,42,0.98) 0, #020617 80%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.subscribe-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.4rem 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}
.subscribe-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.subscribe-text strong { color: #e5e7eb; }

/* Latest posts */

.latest-list article h3 a {
  color: #e5e7eb;
}
.latest-list article h3 {
  font-size: 0.96rem;
}

/* Single post layout */

.single-hero {
  padding: 2.4rem 6vw 0.6rem;
}
.single-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.single-hero-image {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0,0,0,0.6);
  margin-bottom: 1.5rem;
}
.single-hero-image img { width: 100%; height: auto; display: block; }

.single-title {
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
  line-height: 1.1;
  margin: 0 0 0.5rem;
}
.single-meta {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.single-meta span + span::before {
  content: "•";
  margin: 0 0.35rem;
}

.single-main {
  padding: 0.5rem 6vw 3rem;
}
.single-main-inner {
  max-width: 820px;
  margin: 0 auto;
  font-size: 0.98rem;
  line-height: 1.7;
}
.single-main-inner p {
  margin: 0 0 0.6em;
  color: #e5e7eb;
}
.single-main-inner p + p {
  margin-top: 0.2em;
}
.single-main-inner ul,
.single-main-inner ol {
  margin: 0.3em 0 0.9em 1.4em;
  padding-left: 0;
}
.single-main-inner li { margin: 0.1em 0; }
.single-main-inner h2,
.single-main-inner h3,
.single-main-inner h4 {
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}
.single-main-inner blockquote {
  margin: 1rem 0;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--accent-3);
  background: radial-gradient(circle at top left, rgba(15,23,42,0.98), #020617);
  color: var(--text-main);
}
.single-main-inner code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
  background: rgba(15,23,42,0.9);
  padding: 0.06rem 0.3rem;
  border-radius: 4px;
}
.single-bottom-meta {
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148,163,184,0.25);
  padding: 1.3rem 6vw 2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

/* Generic content */
.main-content {
  padding: 2.5rem 6vw 3rem;
}
.main-content h1 { font-size: 1.8rem; margin-bottom: 0.8rem; }

/* Responsive */

@media (max-width: 960px) {
  .about-series-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .series-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .site-header {
    padding-inline: 4vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }
  .hero,
  .section,
  .section-narrow,
  .single-hero,
  .single-main,
  .main-content,
  .site-footer {
    padding-inline: 4vw;
  }
}


/* Custom override: hide primary nav in header */
.site-nav {
  display: none !important;
}


/* Topic tiles row under Featured Series */
.topic-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  margin-top: 1.4rem;
}

.topic-tile {
  flex: 1 1 220px;
  background: radial-gradient(circle at top left, #1b2140, #050816);
  border-radius: 1.5rem;
  padding: 1.6rem 1.8rem;
  text-decoration: none;
  color: #f9fafb;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.3);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.topic-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.7);
  border-color: rgba(244, 114, 182, 0.8);
}

.topic-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.45rem;
}

.topic-title {
  font-size: 1.25rem;
  margin: 0 0 0.4rem 0;
}

.topic-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #e5e7eb;
  margin: 0;
}

@media (max-width: 768px) {
  .topic-tiles {
    flex-direction: column;
  }
}


/* Simple page layout for About & Subscribe */
.page-wrap-narrow {
  padding: 3rem 6vw 4rem;
}
.page-inner {
  max-width: 840px;
  margin: 0 auto;
}
.page-header {
  margin-bottom: 2.5rem;
}
.page-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 0.55rem;
}
.page-title {
  font-size: 2.2rem;
  margin: 0 0 0.6rem;
}
.page-intro {
  max-width: 46rem;
  font-size: 0.98rem;
  color: var(--text-muted);
}
.about-section,
.subscribe-section,
.social-section {
  margin-bottom: 2.2rem;
}
.about-section h2,
.subscribe-section h2,
.social-section h2 {
  font-size: 1.3rem;
  margin: 0 0 0.6rem;
}
.about-section p,
.subscribe-section p,
.social-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.subscribe-card {
  max-width: 480px;
  padding: 1.5rem 1.25rem;
  background: #111529;
  border-radius: 16px;
  box-shadow: 0 14px 45px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(159, 167, 255, 0.22);
}
.field-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.field-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #3a3f6d;
  background: #050716;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 0.9rem;
}
.field-help {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #8f94c9;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-linkedin {
  background: #0a66c2;
  color: #ffffff;
}
.btn-tiktok {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  background: rgba(5, 7, 22, 0.6);
}

.page-footnote {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(159, 167, 255, 0.18);
  padding-top: 1rem;
}
.page-footnote p {
  margin: 0;
  font-size: 0.8rem;
  color: #8f94c9;
}

@media (max-width: 768px) {
  .page-wrap-narrow {
    padding: 2.4rem 1.6rem 3rem;
  }
  .page-title {
    font-size: 1.9rem;
  }
}


/* Subscribe Page Layout */
.subscribe-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.2rem;
}

.subscribe-main {
  flex: 1 1 260px;
}

.subscribe-notes {
  flex: 1 1 220px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.subscribe-notes h2 {
  font-size: 1rem;
  color: var(--text-main);
  margin: 0 0 0.6rem;
}

.subscribe-notes ul {
  margin: 0 0 0.9rem 1.1rem;
  padding: 0;
}

.subscribe-notes li {
  margin-bottom: 0.3rem;
}

.subscribe-disclaimer {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* Mailchimp Glow Form */
.mc-identity-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 18px;
  background:
    radial-gradient(circle at top, rgba(18,198,204,0.16), transparent 55%),
    var(--bg-alt);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 18px 45px rgba(0,0,0,0.7),
    0 0 24px rgba(18,198,204,0.35);
}

.mc-identity-wrap .mc-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #f5f5f7;
}

.mc-identity-wrap .mc-subcopy {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  color: #a4a8b8;
}

.mc-identity-wrap .mc-field-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.mc-identity-wrap label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a4a8b8;
}

.mc-identity-wrap input[type="email"] {
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.5);
  background: rgba(5,7,17,0.9);
  color: #f5f5f7;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mc-identity-wrap input[type="email"]:focus {
  border-color: var(--accent-3);
  background: rgba(5,7,17,1);
  box-shadow:
    0 0 0 1px rgba(18,198,204,0.6),
    0 0 14px rgba(236,37,126,0.55);
}

.mc-identity-wrap .mc-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}

.mc-identity-wrap .mc-button {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: radial-gradient(circle at 0 0, var(--accent-2), var(--accent-3));
  color: #f9fafb;
  box-shadow:
    0 0 12px rgba(236,37,126,0.8),
    0 0 22px rgba(18,198,204,0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.mc-identity-wrap .mc-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow:
    0 0 16px rgba(236,37,126,0.95),
    0 0 30px rgba(18,198,204,0.9);
}

.mc-identity-wrap .mc-footnote {
  margin: 0;
  font-size: 0.78rem;
  color: #7d8094;
}

.mc-identity-wrap .mc-responses {
  min-height: 1.1rem;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.mc-identity-wrap .mc-responses .response {
  color: #fca5a5;
}

@media (max-width: 768px) {
  .subscribe-layout {
    flex-direction: column;
  }
}
