/*
Theme Name: Mechanotheist Console
Theme URI: https://mechanotheist.com/
Author: OpenAI
Author URI: https://openai.com/
Description: A green-screen interactive console resume WordPress theme for Mechanotheist.com. Built for clean, indexable resume endpoints, technical SEO, structured data, and a crawlable no-JavaScript fallback.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mechanotheist-console
Tags: blog, portfolio, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, accessibility-ready
*/

:root {
  --mech-black: #020603;
  --mech-black-2: #061108;
  --mech-green: #35ff66;
  --mech-green-soft: #9cffb1;
  --mech-green-dim: #1fb64a;
  --mech-amber: #ffe86b;
  --mech-cyan: #75ffe7;
  --mech-red: #ff5f5f;
  --mech-text: #d7ffe0;
  --mech-muted: #83b98d;
  --mech-panel: rgba(3, 14, 6, 0.9);
  --mech-panel-strong: rgba(0, 10, 3, 0.96);
  --mech-border: rgba(53, 255, 102, 0.26);
  --mech-border-bright: rgba(53, 255, 102, 0.65);
  --mech-shadow: 0 0 26px rgba(53, 255, 102, 0.22), 0 28px 80px rgba(0, 0, 0, 0.58);
  --mech-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Monaco, monospace;
  --mech-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mech-max: 1180px;
  --mech-radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--mech-text);
  font-family: var(--mech-mono);
  font-size: 16px;
  line-height: 1.72;
  background:
    radial-gradient(circle at 20% 0%, rgba(53, 255, 102, 0.18), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(117, 255, 231, 0.08), transparent 26%),
    linear-gradient(135deg, #010301 0%, #031307 48%, #000 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body:before,
body:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body:before {
  z-index: -2;
  background-image:
    linear-gradient(rgba(53, 255, 102, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 255, 102, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 86%);
}

body:after {
  z-index: 9999;
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0.04) 1px, transparent 1px, transparent 4px),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.18) 74%, rgba(0,0,0,0.48) 100%);
  mix-blend-mode: screen;
  opacity: 0.32;
}

img, svg, video { max-width: 100%; height: auto; }

a {
  color: var(--mech-green-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

a:hover, a:focus-visible { color: #fff; }

button, input, textarea, select { font: inherit; }
button, input[type="submit"] { cursor: pointer; }

p { margin: 0 0 1rem; }

h1, h2, h3, h4, h5, h6 {
  color: #f1fff4;
  font-family: var(--mech-mono);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 0.9rem;
  text-shadow: 0 0 16px rgba(53, 255, 102, 0.25);
}

h1 { font-size: clamp(2.8rem, 8vw, 6.85rem); }
h2 { font-size: clamp(2rem, 5vw, 4.1rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 2rem); }
h4 { font-size: 1rem; letter-spacing: -0.02em; }

hr {
  border: 0;
  border-top: 1px solid var(--mech-border);
  margin: 2rem 0;
}

blockquote {
  margin: 2rem 0;
  padding: 1.2rem 1.4rem;
  border-left: 4px solid var(--mech-green);
  background: rgba(53, 255, 102, 0.08);
  box-shadow: inset 0 0 24px rgba(53, 255, 102, 0.08);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 10000;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.skip-link:focus { left: 1rem; }

.mech-site {
  width: min(var(--mech-max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--mech-border);
  background: rgba(0, 8, 2, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.2rem;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}

.logo-glyph {
  width: 44px;
  height: 44px;
  border: 1px solid var(--mech-border-bright);
  display: grid;
  place-items: center;
  color: var(--mech-green);
  background: radial-gradient(circle, rgba(53,255,102,0.15), rgba(0,0,0,0.8));
  box-shadow: 0 0 24px rgba(53, 255, 102, 0.18), inset 0 0 18px rgba(53, 255, 102, 0.08);
  border-radius: 50%;
  font-weight: 800;
}

.brand-text { display: grid; gap: 0.12rem; }
.site-title {
  display: block;
  color: #f5fff7;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-tagline {
  display: block;
  color: var(--mech-muted);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  color: var(--mech-green-soft);
  background: rgba(53, 255, 102, 0.08);
  border: 1px solid var(--mech-border);
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
}

.primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.45rem 0.82rem;
  text-decoration: none;
  color: var(--mech-text);
  font-size: 0.88rem;
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible,
.primary-navigation .current-menu-item > a {
  color: #fff;
  border-color: var(--mech-border);
  background: rgba(53, 255, 102, 0.08);
}

.site-main { padding: clamp(2rem, 5vw, 4.2rem) 0; }

.terminal-shell,
.mech-panel,
.post-card,
.widget,
.comment-body,
.search-form-panel {
  border: 1px solid var(--mech-border);
  background: linear-gradient(180deg, rgba(1, 13, 4, 0.96), rgba(2, 20, 7, 0.88));
  border-radius: var(--mech-radius);
  box-shadow: var(--mech-shadow);
}

.terminal-shell { overflow: hidden; position: relative; }

.terminal-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(53, 255, 102, 0.12), transparent 36%);
}

.terminal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--mech-border);
  background: rgba(0, 0, 0, 0.32);
  padding: 0.9rem 1rem;
  color: var(--mech-muted);
  font-size: 0.82rem;
  position: relative;
}

.terminal-lights { display: flex; gap: 0.45rem; }
.terminal-light {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: var(--mech-green);
  box-shadow: 0 0 12px rgba(53, 255, 102, 0.6);
}
.terminal-light:nth-child(2) { background: var(--mech-amber); box-shadow: 0 0 12px rgba(255,232,107,0.44); }
.terminal-light:nth-child(3) { background: var(--mech-red); box-shadow: 0 0 12px rgba(255,95,95,0.44); }

.terminal-body { padding: clamp(1.2rem, 4vw, 2.1rem); position: relative; }

.prompt-line,
.console-line {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  color: var(--mech-green-soft);
  word-break: break-word;
}

.prompt-mark { color: var(--mech-green); font-weight: 800; }
.console-muted { color: var(--mech-muted); }
.console-accent { color: var(--mech-cyan); }
.console-warning { color: var(--mech-amber); }
.console-error { color: var(--mech-red); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(300px, 0.76fr);
  gap: clamp(1.1rem, 4vw, 2rem);
  align-items: stretch;
}

.hero-title span {
  display: block;
}

.hero-title .glitch {
  color: var(--mech-green);
  text-shadow: 0 0 12px rgba(53, 255, 102, 0.65), 1px 0 0 rgba(117, 255, 231, 0.5), -1px 0 0 rgba(255, 95, 95, 0.3);
}

.hero-lede {
  max-width: 760px;
  color: #ddffe5;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.hero-actions,
.command-grid,
.endpoint-grid,
.card-grid,
.meta-pills,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.mech-button,
button.mech-button,
input[type="submit"],
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--mech-border-bright);
  background: rgba(53, 255, 102, 0.12);
  color: #f7fff8;
  text-decoration: none;
  box-shadow: inset 0 0 18px rgba(53, 255, 102, 0.08), 0 0 18px rgba(53, 255, 102, 0.12);
}

.mech-button:hover,
.mech-button:focus-visible,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
  background: rgba(53, 255, 102, 0.2);
  color: #fff;
}

.mech-button.secondary {
  border-color: var(--mech-border);
  background: rgba(255,255,255,0.03);
  color: var(--mech-green-soft);
}

.mech-panel { padding: clamp(1.1rem, 3vw, 1.65rem); }

.system-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-box {
  border: 1px solid rgba(53, 255, 102, 0.18);
  background: rgba(0, 0, 0, 0.22);
  padding: 1rem;
  border-radius: 14px;
}

.stat-value {
  display: block;
  color: var(--mech-green);
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
}

.stat-label { display: block; color: var(--mech-muted); font-size: 0.78rem; margin-top: 0.4rem; }

.section {
  margin-top: clamp(2rem, 6vw, 4.8rem);
}

.section-kicker {
  color: var(--mech-green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 0 0 0.7rem;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-header p { max-width: 680px; color: var(--mech-muted); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.endpoint-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.command-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.endpoint-card,
.skill-card,
.project-card,
.cert-card,
.experience-card {
  border: 1px solid rgba(53, 255, 102, 0.18);
  border-radius: var(--mech-radius);
  background: rgba(0, 0, 0, 0.25);
  padding: 1.15rem;
}

.endpoint-card { text-decoration: none; color: var(--mech-text); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.endpoint-card:hover, .endpoint-card:focus-visible { border-color: var(--mech-border-bright); background: rgba(53,255,102,0.09); transform: translateY(-2px); color: #fff; }
.endpoint-path { color: var(--mech-green); font-size: 0.8rem; word-break: break-word; }

.skill-card ul,
.cert-list,
.experience-card ul,
.project-card ul,
.clean-list,
.widget ul {
  margin: 0;
  padding-left: 1.1rem;
}

.skill-card li,
.cert-list li,
.experience-card li,
.project-card li,
.clean-list li {
  margin: 0.34rem 0;
}

.timeline { display: grid; gap: 1rem; position: relative; }
.timeline .experience-card { position: relative; }
.meta-pills { margin: 0.7rem 0 1rem; }
.meta-pill {
  display: inline-flex;
  border: 1px solid rgba(53, 255, 102, 0.2);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  color: var(--mech-muted);
  font-size: 0.78rem;
  background: rgba(53,255,102,0.045);
}

.console-form {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border-top: 1px solid var(--mech-border);
  padding-top: 1rem;
}

.console-form label { color: var(--mech-green); font-weight: 800; }
.console-input,
.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  border: 1px solid rgba(53, 255, 102, 0.26);
  background: rgba(0, 0, 0, 0.42);
  border-radius: 12px;
  color: #f4fff6;
  padding: 0.72rem 0.85rem;
  outline: none;
}
.console-input:focus,
.search-field:focus,
textarea:focus,
input:focus {
  border-color: var(--mech-border-bright);
  box-shadow: 0 0 0 3px rgba(53, 255, 102, 0.12);
}

.console-output { display: grid; gap: 0.5rem; min-height: 152px; }
.console-output a { color: var(--mech-cyan); }

.breadcrumbs {
  margin-bottom: 1.2rem;
  color: var(--mech-muted);
  font-size: 0.86rem;
}
.breadcrumbs a { color: var(--mech-green-soft); }

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.4rem;
  align-items: start;
}

.post-card {
  padding: clamp(1.1rem, 3vw, 1.7rem);
  margin-bottom: 1.2rem;
}
.entry-meta,
.entry-footer,
.post-navigation,
.comments-area,
.no-results {
  color: var(--mech-muted);
}
.entry-content { color: var(--mech-text); }
.entry-content a { word-break: break-word; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.entry-content th, .entry-content td { border: 1px solid var(--mech-border); padding: 0.65rem; }
.entry-content pre { overflow: auto; border: 1px solid var(--mech-border); background: #000; padding: 1rem; border-radius: 12px; }

.sidebar { display: grid; gap: 1rem; }
.widget { padding: 1rem; }
.widget-title { font-size: 1rem; letter-spacing: -0.02em; }

.pagination,
.nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1.5rem; }
.page-numbers,
.nav-links a,
.nav-links span {
  border: 1px solid var(--mech-border);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--mech-green-soft);
  text-decoration: none;
}
.page-numbers.current,
.nav-links a:hover { background: rgba(53,255,102,0.09); color: #fff; }

.site-footer {
  border-top: 1px solid var(--mech-border);
  background: rgba(0, 0, 0, 0.42);
  padding: 2rem 0;
  color: var(--mech-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1rem;
  align-items: start;
}
.footer-links a { border: 1px solid var(--mech-border); border-radius: 999px; padding: 0.35rem 0.65rem; text-decoration: none; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .content-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .endpoint-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: inline-flex; }
  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    display: none;
    border: 1px solid var(--mech-border);
    border-radius: 16px;
    background: rgba(0, 8, 2, 0.98);
    padding: 0.75rem;
    box-shadow: var(--mech-shadow);
  }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: grid; }
  .primary-navigation a { width: 100%; }
  .hero-grid,
  .endpoint-grid,
  .card-grid,
  .command-grid,
  .system-stats { grid-template-columns: 1fr; }
  .console-form { flex-direction: column; align-items: stretch; }
  .section-header { display: block; }
  .site-tagline { display: none; }
}

@media print {
  body { background: #fff !important; color: #000 !important; font-family: Georgia, serif; }
  body:before, body:after, .site-header, .site-footer, .console-form, .hero-actions, .nav-toggle { display: none !important; }
  .mech-site { width: 100%; }
  .terminal-shell, .mech-panel, .post-card, .card, .endpoint-card, .skill-card, .project-card, .cert-card, .experience-card { box-shadow: none !important; border-color: #999 !important; background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .section { page-break-inside: avoid; }
}
