/* Shared reset + custom properties for all designs */
:root {
  --bg: #1a1a2e;
  --bg-light: #22223a;
  --gold: #e0d060;
  --gold-dim: #e0d06040;
  --orange: #F26207;
  --text: #eee;
  --text-dim: #888;
  --text-muted: #555;
  --green: #4ade80;
  --mono: 'Courier New', monospace;
  --max-w: 800px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
.hidden { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  min-height: 100vh;
}

/* Demo shell styles */
#demo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0d0d1a;
  border-bottom: 1px solid #333;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
}

#demo-bar label {
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

#design-select {
  background: #1a1a2e;
  color: var(--gold);
  border: 1px solid #444;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 13px;
  border-radius: 3px;
  cursor: pointer;
  min-width: 0;
  flex: 1;
  max-width: 320px;
}

#design-select:hover {
  border-color: var(--gold);
}

#demo-reset {
  background: none;
  border: 1px solid #444;
  color: #888;
  padding: 5px 12px;
  font-family: var(--mono);
  font-size: 11px;
  border-radius: 3px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#demo-reset:hover {
  border-color: var(--gold);
  color: var(--gold);
}

#design-root {
  margin-top: 48px;
  min-height: calc(100vh - 48px);
  position: relative;
}

@media (max-width: 480px) {
  #demo-bar { padding: 6px 10px; gap: 8px; }
  #demo-bar label { display: none; }
  #design-select { font-size: 12px; padding: 5px 8px; max-width: none; }
  #demo-reset { font-size: 10px; padding: 4px 8px; }
}

/* ─── Contact widget (shared across all variants) ─── */
.contact-section { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 28px 0 8px; }
.about-teacher-link { display: inline-flex; align-items: center; gap: 9px; color: #888; font-size: 11px; letter-spacing: 1px; text-decoration: none; transition: color 0.2s; font-family: 'Courier New', monospace; }
.about-teacher-link:hover { color: #e0d060; }
.contact-btn { background: none; border: 1px solid #e0d06066; color: #e0d060aa; font-family: 'Courier New', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 18px; border-radius: 3px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.contact-btn:hover { border-color: #e0d060; color: #e0d060; }
.contact-overlay { display: none; position: fixed; inset: 0; background: rgba(10,10,20,0.88); z-index: 9999; align-items: center; justify-content: center; }
.contact-overlay.open { display: flex; }
.contact-modal { background: #1e1e30; border: 1px solid #333; border-radius: 8px; padding: 32px 28px 24px; width: 90%; max-width: 420px; position: relative; font-family: 'Courier New', monospace; }
.contact-modal h3 { font-size: 16px; color: #fff; margin-bottom: 6px; }
.contact-modal p { font-size: 12px; color: #666; margin-bottom: 20px; }
.contact-modal input, .contact-modal textarea { width: 100%; background: #12121e; border: 1px solid #333; color: #eee; font-family: 'Courier New', monospace; font-size: 13px; padding: 10px 12px; border-radius: 3px; margin-bottom: 10px; outline: none; resize: vertical; display: block; }
.contact-modal textarea { min-height: 100px; }
.contact-modal input:focus, .contact-modal textarea:focus { border-color: #e0d060; }
.contact-send-btn { width: 100%; background: #e0d060; color: #1a1a2e; border: none; font-family: 'Courier New', monospace; font-size: 13px; font-weight: 700; padding: 12px; border-radius: 3px; cursor: pointer; transition: background 0.2s; }
.contact-send-btn:hover:not(:disabled) { background: #f0e070; }
.contact-send-btn:disabled { opacity: 0.6; cursor: default; }
.contact-close-btn { position: absolute; top: 12px; right: 16px; background: none; border: none; color: #555; font-size: 22px; cursor: pointer; line-height: 1; font-family: 'Courier New', monospace; }
.contact-close-btn:hover { color: #eee; }
.contact-status-msg { font-size: 12px; margin-top: 10px; text-align: center; font-family: 'Courier New', monospace; }

/* Orange glow border for the Replit product button — shared across all variants */
.product-btn[data-product="replit"] {
  border-color: #F26207;
  border-width: 1.5px;
  box-shadow: 0 0 10px #F2620730, inset 0 0 6px #F2620710;
}
.product-btn[data-product="replit"]:hover {
  border-color: #F26207;
  border-width: 2px;
  background: #F2620710;
  box-shadow: 0 0 22px #F2620760, 0 0 6px #F2620740, inset 0 0 14px #F2620718;
}
