/* ============================================================
   Shared retro/CRT styling for mikerowesoft.net
   Used by index.php, about.php, privacy.php, exif.php
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  min-height: 100vh;
  background: #000;
  background-image:
    radial-gradient(ellipse at 50% 40%, #0a0a2e 0%, #000 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  font-family: "Courier New", Courier, monospace;
  color: #0f0;
  text-align: center;
  padding: 1.5rem 1rem 3rem;
  overflow-x: hidden;
}

/* faint CRT scanlines over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.25) 0px,
    rgba(0, 0, 0, 0.25) 1px,
    transparent 1px,
    transparent 3px
  );
}

a { color: inherit; }

h1 {
  font-size: clamp(1.1rem, 4vw, 2.2rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff0;
  text-shadow: 0 0 8px #ff0, 0 0 24px rgba(255, 255, 0, 0.5);
  animation: flicker 3s infinite;
}

@keyframes flicker {
  0%, 92%, 96%, 100% { opacity: 1; }
  94% { opacity: 0.6; }
}

.visitor-label {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #0ff;
  text-shadow: 0 0 6px #0ff;
}

.counter {
  display: flex;
  gap: 6px;
  padding: 16px 20px;
  background: #111;
  border: 3px solid #444;
  border-radius: 10px;
  box-shadow:
    inset 0 0 20px #000,
    0 0 30px rgba(0, 255, 0, 0.35),
    0 0 80px rgba(0, 255, 0, 0.15);
}

.digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(38px, 9vw, 80px);
  height: clamp(58px, 13.5vw, 120px);
  font-size: clamp(2.2rem, 7.5vw, 4.8rem);
  font-weight: bold;
  color: #0f0;
  background: linear-gradient(180deg, #1a1a1a 0%, #050505 48%, #000 52%, #141414 100%);
  border: 1px solid #333;
  border-radius: 6px;
  text-shadow: 0 0 10px #0f0, 0 0 30px rgba(0, 255, 0, 0.6);
  position: relative;
}

.digit::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.you-are {
  font-size: clamp(0.8rem, 2vw, 1.05rem);
  color: #f0f;
  letter-spacing: 0.2em;
  text-shadow: 0 0 6px #f0f;
}

.badge {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #666;
  letter-spacing: 0.1em;
}

.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Site navigation, shown on every page ---- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav a {
  color: #0ff;
  text-decoration: none;
  text-shadow: 0 0 6px #0ff;
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a.active {
  border-bottom-color: #0ff;
}

/* ---- Generic panel container (guestbook, exif tool, prose pages) ---- */
.panel {
  width: min(680px, 92vw);
  background: #0a0a0a;
  border: 3px solid #333;
  border-radius: 10px;
  padding: 1.6rem;
  box-shadow: inset 0 0 20px #000, 0 0 30px rgba(0, 255, 255, 0.12);
  text-align: left;
}

.panel h2 {
  text-align: center;
  font-size: clamp(1rem, 3vw, 1.4rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #0ff;
  text-shadow: 0 0 8px #0ff;
  margin-bottom: 1rem;
}

/* ---- Prose (About / Privacy pages) ---- */
.prose p {
  color: #d0d0d0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #0f0;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 1.4rem 0 0.6rem;
  text-shadow: 0 0 4px #0f0;
}

.prose ul {
  color: #d0d0d0;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 1rem 1.2rem;
}

.prose a { color: #ff0; text-decoration: underline; }

/* ---- Guestbook ---- */
.gb-notice {
  text-align: center;
  color: #0f0;
  background: #061a06;
  border: 1px solid #0f0;
  border-radius: 6px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.gb-error {
  text-align: center;
  color: #f66;
  background: #1a0606;
  border: 1px solid #f00;
  border-radius: 6px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.gb-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.gb-form input,
.gb-form textarea {
  width: 100%;
  background: #000;
  border: 1px solid #0f0;
  border-radius: 5px;
  color: #0f0;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.6rem;
  resize: vertical;
}

.gb-form input::placeholder,
.gb-form textarea::placeholder {
  color: #0f0;
  opacity: 0.65;
}

.gb-form input:focus,
.gb-form textarea:focus {
  outline: none;
  box-shadow: 0 0 8px #0f0;
}

.gb-website {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

.gb-submit {
  align-self: center;
  background: #000;
  border: 2px solid #ff0;
  color: #ff0;
  font-family: inherit;
  font-weight: bold;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  text-shadow: 0 0 6px #ff0;
}

.gb-submit:hover {
  background: #1a1a00;
  box-shadow: 0 0 12px #ff0;
}

.gb-entries {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.gb-entry {
  border-left: 3px solid #0ff;
  padding: 0.4rem 0 0.4rem 0.7rem;
  background: #050505;
}

.gb-entry .gb-name {
  color: #ff0;
  font-weight: bold;
  text-shadow: 0 0 4px #ff0;
  font-size: 0.9rem;
}

.gb-entry .gb-time {
  color: #555;
  font-size: 0.7rem;
  margin-left: 0.5rem;
}

.gb-entry .gb-message {
  color: #ccc;
  font-size: 0.88rem;
  word-wrap: break-word;
  margin-top: 0.2rem;
}

.gb-empty {
  color: #555;
  text-align: center;
  font-size: 0.85rem;
}

/* ---- EXIF Viewer tool ---- */
.dropzone {
  border: 3px dashed #0f0;
  border-radius: 10px;
  padding: 2.2rem 1rem;
  text-align: center;
  cursor: pointer;
  background: #050505;
  transition: background 0.15s, border-color 0.15s;
}

.dropzone:hover,
.dropzone.dragover {
  background: #061a06;
  border-color: #ff0;
}

.dropzone p {
  color: #0f0;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.dropzone .dz-sub {
  color: #666;
  font-size: 0.75rem;
  margin-top: 0.4rem;
}

.exif-input { display: none; }

.exif-result {
  margin-top: 1.4rem;
  display: none;
}

.exif-result.visible { display: block; }

.exif-preview {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.exif-preview img {
  max-width: 160px;
  max-height: 160px;
  border: 2px solid #333;
  border-radius: 6px;
  object-fit: contain;
  background: #000;
}

.exif-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.exif-table tr {
  border-bottom: 1px solid #222;
}

.exif-table td {
  padding: 0.45rem 0.3rem;
}

.exif-table td:first-child {
  color: #0ff;
  width: 45%;
  letter-spacing: 0.03em;
}

.exif-table td:last-child {
  color: #eee;
  word-break: break-word;
}

.exif-empty-notice {
  color: #999;
  font-size: 0.85rem;
  line-height: 1.6;
  text-align: center;
  padding: 1rem;
}

.exif-privacy-note {
  margin-top: 1rem;
  color: #666;
  font-size: 0.75rem;
  text-align: center;
  letter-spacing: 0.03em;
}

/* ---- Market Scanner ---- */
.scan-meta {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.scan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1.4rem;
}

.scan-table th {
  text-align: left;
  color: #0ff;
  border-bottom: 2px solid #333;
  padding: 0.5rem 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scan-table td {
  padding: 0.5rem 0.4rem;
  border-bottom: 1px solid #222;
  color: #ccc;
}

.scan-table tr.matched td {
  color: #0f0;
  text-shadow: 0 0 4px #0f0;
}

.scan-table tr.matched {
  background: #061a06;
}

.scan-table tr.bearish td {
  color: #f66;
  text-shadow: 0 0 4px #f66;
}

.scan-table tr.bearish {
  background: #1a0606;
}

.scan-empty {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
  padding: 1rem;
}

.scan-errors {
  color: #886;
  font-size: 0.75rem;
  margin-top: 0.6rem;
}

.scan-disclaimer {
  margin-top: 1.2rem;
  padding: 0.8rem;
  border: 1px solid #444;
  border-radius: 6px;
  background: #0a0a0a;
  color: #888;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}
