/* ==========================================================================
   LENNYCORP AI — Startup Parody Components
   Paperclip Optimizer, ELIZA terminal, pricing, WOPR override, Clippy tip
   ========================================================================== */

/* ---------- Nav override button ---------- */
.wopr-trigger-btn {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #fda4af;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.wopr-trigger-btn:hover {
  background: rgba(244, 63, 94, 0.25);
  color: #fff;
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.4);
}

.wopr-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent-crimson);
  box-shadow: 0 0 8px var(--color-accent-crimson);
  animation: pulse-dot 1.2s infinite;
}

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 28px 0 8px;
  position: relative;
  z-index: 10;
  text-align: center;
}

.logo-strip-label,
.logo-strip-footnote {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-subtle);
}

.logo-strip-footnote {
  text-transform: none;
  letter-spacing: 0.02em;
  font-style: italic;
  margin-top: 12px;
}

.logo-strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 36px;
  margin-top: 16px;
}

.logo-strip-row span {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #475569;
  transition: color var(--transition-fast);
}

.logo-strip-row span:hover {
  color: var(--color-text-muted);
}

/* ---------- Model cards: label tweak ---------- */
.axiom-num {
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

/* ---------- Paperclip optimizer ---------- */
.clip-console {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.clip-counter-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.clip-counter {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  word-break: break-all;
}

.clip-rate {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent-cyan);
  margin-bottom: 20px;
}

.clip-make-btn {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: transform 0.05s ease, box-shadow var(--transition-fast);
  user-select: none;
}

.clip-make-btn:hover { box-shadow: 0 0 28px rgba(56, 189, 248, 0.45); }
.clip-make-btn:active { transform: scale(0.98); }

.clip-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 24px 0;
  font-size: 0.82rem;
}

.clip-stats div {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: #090f1d;
  border: 1px solid #1c2c4c;
  border-radius: var(--radius-sm);
}

.clip-stats span { color: var(--color-text-subtle); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.clip-stats strong { font-family: var(--font-mono); color: #e2e8f0; font-size: 0.95rem; }

.clip-alignment-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.clip-bar {
  height: 8px;
  background: #1e335a;
  border-radius: 4px;
  overflow: hidden;
}

.clip-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #f43f5e, #fbbf24, #34d399);
  background-size: 300% 100%;
  background-position: 100% 0;
  transition: width 0.3s ease;
}

.clip-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.clip-group h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-cyan);
  margin-bottom: 10px;
}

.clip-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.clip-price-row strong { color: #fff; font-family: var(--font-mono); }
.clip-price-btns { display: flex; gap: 6px; }

.clip-btn-sm,
.clip-btn {
  background: rgba(19, 32, 59, 0.8);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clip-btn-sm { width: 36px; height: 36px; font-size: 1.1rem; }

.clip-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.clip-btn:hover:not(:disabled),
.clip-btn-sm:hover:not(:disabled) {
  border-color: var(--color-accent-cyan);
  background: var(--color-surface-hover);
}

.clip-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.clip-btn small {
  display: block;
  color: var(--color-text-subtle);
  font-size: 0.75rem;
  margin-top: 2px;
}

.clip-btn-danger { border-color: rgba(244, 63, 94, 0.4); color: #fda4af; }
.clip-btn-danger:hover { border-color: var(--color-accent-crimson) !important; background: rgba(244, 63, 94, 0.15) !important; }

.clip-empty { font-size: 0.82rem; color: var(--color-text-subtle); font-style: italic; }

.clip-log {
  flex: 1;
  min-height: 120px;
  max-height: 160px;
  overflow-y: auto;
  background: #05080f;
  border: 1px solid #1c2c4c;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #86efac;
  line-height: 1.6;
}

.clip-log .warn { color: #fbbf24; }
.clip-log .bad { color: #f87171; }

.clip-endgame {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 16, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  z-index: 20;
  backdrop-filter: blur(6px);
}

.clip-endgame[hidden] { display: none; }

.clip-endgame h3 { font-size: clamp(1.4rem, 3.5vw, 2rem); color: #fff; margin-bottom: 14px; }
.clip-endgame p { color: var(--color-text-muted); margin-bottom: 12px; }

.clip-endgame-count {
  font-family: var(--font-mono);
  color: var(--color-accent-gold) !important;
  word-break: break-all;
  font-size: 0.85rem;
}

/* ---------- ELIZA terminal ---------- */
.eliza-terminal {
  max-width: 760px;
  margin: 0 auto;
  background: #05080f;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.eliza-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.eliza-dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.eliza-title { margin-left: 10px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-text-subtle); }

.eliza-log {
  height: 280px;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

.eliza-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  line-height: 1.5;
}

.eliza-msg.bot { background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.2); color: #bae6fd; align-self: flex-start; }
.eliza-msg.user { background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.2); color: #fde68a; align-self: flex-end; }

.eliza-input-row {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--color-border);
}

.eliza-input-row .form-input { flex: 1; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.price-card {
  position: relative;
  background: rgba(19, 32, 59, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.price-card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.5); }
.price-featured { border-color: rgba(56, 189, 248, 0.5); background: rgba(19, 32, 59, 0.85); box-shadow: var(--shadow-glow); }

.price-tier { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--color-accent-cyan); font-weight: 700; }
.price-amount { font-size: 2.4rem; font-weight: 800; color: #fff; margin: 8px 0 2px; }
.price-amount span { font-size: 1rem; color: var(--color-text-subtle); font-weight: 500; }
.price-model { font-family: var(--font-mono); font-size: 0.78rem; color: var(--color-accent-gold); margin-bottom: 18px; }

.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.price-card li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.price-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: #34d399;
}

.price-card button { justify-content: center; width: 100%; }

/* ---------- WOPR override overlay ---------- */
.wopr-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  color: #7dd3fc;
  font-family: 'VT323', 'Courier New', var(--font-mono);
  overflow-y: auto;
  animation: woprFadeIn 0.25s ease-out;
}

.wopr-overlay[hidden] { display: none; }

.wopr-overlay::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
}

@keyframes woprFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.wopr-screen {
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.wopr-text {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  text-shadow: 0 0 6px rgba(125, 211, 252, 0.7);
  min-height: 1.5em;
}

.wopr-text .cursor {
  display: inline-block;
  width: 0.6em;
  background: #7dd3fc;
  animation: woprBlink 0.8s steps(1) infinite;
}

@keyframes woprBlink { 50% { opacity: 0; } }

.wopr-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: transparent;
  border: 1px solid rgba(125, 211, 252, 0.5);
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  cursor: pointer;
}

.wopr-close:hover { background: rgba(125, 211, 252, 0.15); }

.wopr-game {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

.wopr-game[hidden] { display: none; }

.wopr-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(300px, 70vw);
  aspect-ratio: 1;
  gap: 4px;
  background: #7dd3fc;
  box-shadow: 0 0 24px rgba(125, 211, 252, 0.4);
}

.wopr-cell {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 700;
  text-shadow: 0 0 10px currentColor;
}

.wopr-cell.x { color: #7dd3fc; }
.wopr-cell.o { color: #fbbf24; }

.wopr-stats {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1.9;
  text-shadow: 0 0 6px rgba(125, 211, 252, 0.6);
}

.wopr-stats span { color: #fff; }

.wopr-history {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
}

.wopr-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 1;
  gap: 1px;
  background: rgba(125, 211, 252, 0.5);
  animation: woprFadeIn 0.2s ease-out;
}

.wopr-mini span {
  background: #000;
  font-size: 8px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
}

.wopr-mini .x { color: #7dd3fc; }
.wopr-mini .o { color: #fbbf24; }

.wopr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.wopr-actions[hidden] { display: none; }

.wopr-btn {
  background: transparent;
  border: 1px solid #7dd3fc;
  color: #7dd3fc;
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: 10px 22px;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(125, 211, 252, 0.6);
}

.wopr-btn:hover { background: #7dd3fc; color: #000; }

body.wopr-active { overflow: hidden; }

/* ---------- Clippy tip ---------- */
.clippy-tip {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 900;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 360px;
  padding: 16px;
  background: #fffbe6;
  color: #1e293b;
  border: 1px solid #e5d58b;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  animation: clippyIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clippy-tip[hidden] { display: none; }

@keyframes clippyIn {
  from { transform: translateY(30px) scale(0.9); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.clippy-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: #64748b;
  animation: clippyWobble 2.4s ease-in-out infinite;
}

@keyframes clippyWobble {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

.clippy-body p { font-size: 0.88rem; line-height: 1.5; margin-bottom: 12px; }
.clippy-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.clippy-actions button { font-size: 0.78rem; padding: 6px 12px; width: auto !important; }
.clippy-actions .btn-secondary { color: #1e293b; background: #fff; border-color: #cbd5e1; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .clip-console { grid-template-columns: 1fr; padding: 22px; }
  .wopr-game { grid-template-columns: 1fr; justify-items: center; }
  .wopr-stats { text-align: center; }
}

@media (max-width: 768px) {
  .wopr-trigger-btn { padding: 7px 10px; }
  .nav-actions .btn-primary { display: none; }
  .clip-btn, .clip-make-btn { width: 100%; }
  .clippy-tip { left: 12px; right: 12px; max-width: none; }
  .eliza-input-row .btn-primary { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .clippy-icon, .wopr-dot { animation: none; }
}
