/* shared retro nostalgic stylesheet */

:root {
  --retro-bg: #f5ebe0;
  --retro-card: #ffffff;
  --retro-text: #000000;
  --retro-border: #000000;
  --retro-blue: #3a86c8;
  --retro-navy: #000080;
  --retro-pink: #ff70a6;
  --retro-orange: #ff595e;
  --retro-yellow: #ffca3a;
  --retro-green: #8ac926;
  --retro-grey: #dfdfdf;
  --retro-shadow: 4px 4px 0px #000000;
  --font-display: 'Space Grotesk', 'Instrument Sans', -apple-system, sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;
}

body {
  background-color: var(--retro-bg);
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  color: var(--retro-text);
  font-family: var(--font-display);
  font-size: 18px;
}

/* Windows 95/98 Window box */
.retro-window {
  background: var(--retro-card);
  border: 3px solid var(--retro-border);
  box-shadow: var(--retro-shadow);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
}

.retro-titlebar {
  background: var(--retro-navy);
  color: #ffffff;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  border-bottom: 3px solid var(--retro-border);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.retro-titlebar.orange {
  background: var(--retro-orange);
  color: #000000;
}

.retro-titlebar.pink {
  background: var(--retro-pink);
  color: #000000;
}

.retro-titlebar.green {
  background: var(--retro-green);
  color: #000000;
}

.retro-titlebar.grey {
  background: var(--retro-grey);
  color: #000000;
}

.retro-window-controls {
  display: flex;
  gap: 4px;
  align-items: center;
}

.retro-control-btn {
  width: 22px;
  height: 22px;
  background: var(--retro-grey);
  border: 2px solid var(--retro-border);
  font-size: 12px;
  font-weight: 900;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 1px 1px 0px #ffffff inset;
  line-height: 1;
}

.retro-control-btn:active {
  box-shadow: 1px 1px 0px #000000 inset;
  transform: translate(1px, 1px);
}

.retro-window-body {
  padding: 1.5rem;
  flex: 1;
}

/* Retro Buttons */
.retro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--retro-yellow);
  color: #000000;
  border: 3px solid var(--retro-border);
  box-shadow: var(--retro-shadow);
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.1s ease;
  border-radius: 4px;
  font-family: var(--font-display);
}

.retro-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #000000;
}

.retro-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

.retro-btn.blue {
  background-color: var(--retro-blue);
  color: #ffffff;
}

.retro-btn.pink {
  background-color: var(--retro-pink);
  color: #000000;
}

.retro-btn.green {
  background-color: var(--retro-green);
  color: #000000;
}

.retro-btn.grey {
  background-color: var(--retro-grey);
  color: #000000;
}

.retro-btn.outline {
  background-color: #ffffff;
  color: #000000;
}

.retro-btn-small {
  padding: 6px 12px;
  font-size: 0.95rem;
  border: 2px solid var(--retro-border);
  box-shadow: 2px 2px 0px #000000;
}

.retro-btn-small:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000000;
}

.retro-btn-small:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #000000;
}

/* Retro Form inputs */
.retro-input {
  width: 100%;
  font-size: 1.1rem;
  padding: 12px 16px;
  border: 3px solid var(--retro-border);
  background-color: #ffffff;
  color: #000000;
  border-radius: 4px;
  font-family: inherit;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.08) inset;
}

.retro-input:focus {
  outline: none;
  border-color: var(--retro-blue);
  box-shadow: 0 0 0 3px rgba(58, 134, 200, 0.25);
}

/* Retro Badges */
.retro-badge {
  display: inline-flex;
  align-items: center;
  background-color: var(--retro-grey);
  border: 2px solid var(--retro-border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #000000;
}

.retro-badge.blue { background-color: var(--retro-blue); color: #ffffff; }
.retro-badge.pink { background-color: var(--retro-pink); }
.retro-badge.yellow { background-color: var(--retro-yellow); }
.retro-badge.green { background-color: var(--retro-green); }
.retro-badge.orange { background-color: var(--retro-orange); }

/* Typography helper */
.retro-h1, .retro-h2, .retro-h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #000000;
}

.retro-text-muted {
  color: var(--text-muted);
}

/* Embedded in Iframe Support */
.in-iframe .topbar {
  display: none !important;
}
.in-iframe .shell {
  padding-top: 10px !important;
}

