/* =========================
   Base / Layout
   ========================= */

body {
  margin: 0;
  background: black;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.content {
  max-width: 900px;
  width: 100%;
  padding: 30px;
  box-sizing: border-box;
}

/* =========================
   Typography / Elements
   ========================= */

h1 {
  margin-bottom: 32px;
  letter-spacing: 0.06em;
}

h2 {
  margin-top: 34px;
  margin-bottom: 10px;
}

p {
  line-height: 1.5;
}

a {
  color: #4ea3ff;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  max-height: 70vh;
  margin: 30px 0;
  border-radius: 8px;
}

button {
  background: #222;
  color: white;
  border: 1px solid #555;
  padding: 10px 16px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
}

button:hover {
  background: #333;
}

.action-btn {
  margin-top: 12px;
  margin-bottom: 192px;
}


/* =========================
   Environment Indicator
   ========================= */

.status-strip {
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
  padding: 0px 0;
  margin: 12px 0 12px;
}

.envbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 6px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.env-text {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ddd;
  opacity: 0.80;
}

.env-sep {
  color: #444;
  font-weight: 400;
}

.env-right {
  margin-left: auto;
  text-align: right;
}

.env-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid #333;
  background: #0b0b0b;
  color: #ddd;
  opacity: 0.85;
}

/* =========================
   ENV color states
   ========================= */

.env-prod {
  color: #b84a4a;
}

.env-sandbox {
  color: #5f8f5f;
}

.env-legacy {
  color: #6f7f9f;
}

.env-undocumented {
  color: #888888;
}

.env-critical {
  color: #8f2f2f;
}

.env-unknown {
  color: #c97a3a;
}


/* =========================
   Tabs
   ========================= */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin: 42px 0 128px;
}

.tab {
  background: #111;
  border: 1px solid #333;
  color: #ddd;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;

  font-size: 20px;
  white-space: nowrap;
  box-sizing: border-box;
}


.tab:hover {
  background: #1a1a1a;
}

.tab.active {
  background: #222;
  border-color: #555;
  color: #fff;
}

/* Panels */
.tab-panel {
  display: none;
  margin-top: 32px;
}

.tab-panel.active {
  display: block;
}

/* Small helper text */
.hint {
  color: #aaa;
  font-size: 12px;
  margin-top: 12px;
  line-height: 1.45;
}

.hint code {
  color: #ddd;
}

/* =========================
   Operational Excellence Stats
   ========================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px auto;
  width: 100%;
}

.stat {
  border: 1px solid #333;
  background: #0b0b0b;
  border-radius: 8px;
  padding: 14px;
  text-align: left;
}

.stat-label {
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  margin: 8px 0 6px;
}

.stat-sub {
  color: #bbb;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 800px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Incident Card
   ========================= */

.card {
  border: 1px solid #333;
  background: #0b0b0b;
  padding: 16px;
  margin: 18px auto;
  text-align: left;
  border-radius: 8px;
}

.card-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 6px;
}

.card-meta {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 10px;
}

.card-body {
  white-space: pre-wrap;
  margin: 0;
  color: #eaeaea;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

/* Incident severity states */
.card.sev-1 {
  border-color: #b84a4a;
}

.card.sev-2 {
  border-color: #c97a3a;
}

.card.sev-3 {
  border-color: #c9b23a;
}

.card.sev-4 {
  border-color: #555;
}


/* =========================
   Middle-Out Calculator
   ========================= */

.mo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

@media (max-width: 800px) {
  .mo-grid {
    grid-template-columns: 1fr;
  }
}

.mo-field {
  display: block;
  text-align: left;
}

.mo-label {
  display: block;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mo-row {
  display: flex;
  gap: 10px;
}

.mo-input,
.mo-select {
  width: 100%;
  background: #0b0b0b;
  color: #eaeaea;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  box-sizing: border-box;
}

.mo-select {
  cursor: pointer;
}

.mo-input:focus,
.mo-select:focus {
  outline: none;
  border-color: #555;
}



/* =========================
   Wisdom
   ========================= */

.wisdom {
  border: 1px solid #333;
  background: #0b0b0b;
  border-radius: 8px;
  padding: 16px;
  margin: 18px auto;
}

.wisdom-quote {
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
  color: #eaeaea;
}

/* =========================
   About
   ========================= */

.profile-pic {
  max-width: 220px;
  border-radius: 50%;
  margin: 16px auto;
  display: block;
}

.home-photo {
  max-width: 420px;
  width: 100%;
  max-height: none;
  margin: 18px auto 16px;
  display: block;
}


/* =========================
   Gallery / Evidence
   ========================= */

.gallery-placeholder {
  border: 1px dashed #333;
  background: #0b0b0b;
  border-radius: 8px;
  padding: 18px;
  margin: 16px auto;
  text-align: center;
  color: #bbb;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 6px;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-item {
  border: 1px solid #333;
  background: #0b0b0b;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.gallery-item:hover {
  border-color: #555;
}

.gallery-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* =========================
   Lightbox
   ========================= */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-inner {
  max-width: 1100px;
  width: 100%;
  border: 1px solid #333;
  background: #0b0b0b;
  border-radius: 10px;
  padding: 14px;
  box-sizing: border-box;
}

.lightbox-close {
  float: right;
  margin: 0 0 10px 0;
}

#lightboxImg {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.lightbox-caption {
  color: #bbb;
  font-size: 12px;
  margin-top: 10px;
  text-align: left;
}

/* =========================
   Footer / Version
   ========================= */

.site-footer {
  margin-top: 64px;
  padding: 24px 0 12px;
  border-top: 1px solid #222;
  color: #888;
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-version {
  color: #bbb;
  font-weight: 700;
}

.site-sep {
  margin: 0 8px;
  color: #444;
}

.site-meta {
  color: #888;
}

/* Legacy link helper (if used anywhere) */
.footer-link {
  margin-top: 30px;
}
