/* OrcaScale Learn — shared styles */
:root {
  --bg: #050D1A;
  --bg-2: #0a1525;
  --ink: #F5F1E8;
  --muted: #8B9AAB;
  --r1: #FF6B6B;
  --r2: #FF8C42;
  --teal: #00C5C8;
  --gold: #FFD700;
  --paper: #F5F1E8;
  --paper-line: #B8C5D6;
  --grad: linear-gradient(135deg, var(--r1), var(--r2));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg); color: var(--ink);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  min-height: 100vh; overflow-x: hidden;
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'><circle cx='14' cy='14' r='10' fill='%23FF6B6B' stroke='white' stroke-width='2'/></svg>") 14 14, auto;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: inherit; }

/* `hidden` attribute must always win over later `display` rules — see
   docs/hidden-overlay-audit.md. */
[hidden] { display: none !important; }

/* Nav */
.learn-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; background: rgba(5,13,26,0.85);
  backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.learn-logo {
  font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: 0.5px;
  background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.learn-nav-links { display: flex; gap: 28px; align-items: center; }
.learn-nav-links a { color: var(--muted); font-weight: 500; transition: color 0.2s; font-size: 15px; }
.learn-nav-links a:hover { color: var(--ink); }
.learn-nav-cta {
  padding: 10px 20px; border-radius: 100px; background: var(--grad);
  color: white; font-weight: 700; border: none; box-shadow: 0 4px 20px rgba(255,107,107,0.4);
  transition: transform 0.2s;
}
.learn-nav-cta:hover { transform: translateY(-2px); }
.portal-toggle {
  padding: 6px 14px; border-radius: 100px; background: rgba(0,197,200,0.1);
  color: var(--teal); border: 1px solid rgba(0,197,200,0.3); font-size: 13px;
  font-weight: 600; transition: all 0.2s;
}
.portal-toggle:hover { background: rgba(0,197,200,0.2); }

/* Page wrapper */
.learn-page { max-width: 1200px; margin: 0 auto; padding: 48px 32px 96px; }
.learn-h1 { font-family: 'Anton', sans-serif; font-size: clamp(40px, 6vw, 72px); letter-spacing: 0.5px; line-height: 1; margin-bottom: 20px; }
.learn-h1 .grad { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.learn-sub { font-size: 18px; color: var(--muted); margin-bottom: 40px; max-width: 640px; }

/* Cards */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.course-card {
  background: var(--bg-2); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px; padding: 28px; transition: transform 0.25s, border-color 0.25s; display: block;
}
.course-card:hover { transform: translateY(-4px); border-color: rgba(255,140,66,0.4); }
.course-emoji { font-size: 48px; display: block; margin-bottom: 16px; }
.course-card h3 { font-family: 'Anton', sans-serif; font-size: 24px; margin-bottom: 8px; letter-spacing: 0.3px; }
.course-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 16px; }
.course-meta { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.course-meta strong { color: var(--ink); }
.course-price { display: inline-block; padding: 4px 12px; border-radius: 100px; background: rgba(0,197,200,0.15); color: var(--teal); font-weight: 700; font-size: 13px; }

/* Buttons */
.btn-primary {
  display: inline-block; padding: 14px 28px; border-radius: 100px;
  background: var(--grad); color: white; font-weight: 700; border: none;
  box-shadow: 0 6px 24px rgba(255,107,107,0.35); transition: transform 0.2s; font-size: 15px;
  position: relative; overflow: visible;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  display: inline-block; padding: 14px 28px; border-radius: 100px;
  background: transparent; color: var(--ink); font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2); transition: all 0.2s; font-size: 15px;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

/* Eyes button — easter egg */
.btn-eyes { position: relative; }
.btn-eyes .eye {
  position: absolute; top: -14px; width: 18px; height: 18px;
  background: white; border-radius: 50%; opacity: 0; transition: opacity 0.3s;
  pointer-events: none; z-index: 5; border: 2px solid #050D1A;
}
.btn-eyes .eye.left { left: 25%; }
.btn-eyes .eye.right { right: 25%; }
.btn-eyes:hover .eye { opacity: 1; }
.btn-eyes .pupil { position: absolute; top: 4px; left: 4px; width: 6px; height: 6px; background: #050D1A; border-radius: 50%; transition: transform 0.05s; }

/* Curriculum */
.curriculum { background: var(--bg-2); border-radius: 20px; padding: 24px; margin-top: 24px; }
.section-title { font-family: 'Anton', sans-serif; font-size: 18px; color: var(--r2); margin: 16px 0 8px; letter-spacing: 0.5px; }
.section-title:first-child { margin-top: 0; }
.lesson-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 12px; transition: background 0.2s;
  border: 1px solid transparent;
}
.lesson-row:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.06); }
.lesson-row.completed { opacity: 0.55; }
.lesson-row .lesson-title { font-size: 15px; }
.lesson-row .lesson-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.preview-tag { font-size: 10px; padding: 2px 8px; border-radius: 100px; background: rgba(0,197,200,0.15); color: var(--teal); font-weight: 700; letter-spacing: 0.5px; }

/* Watch page */
.watch-grid { display: grid; grid-template-columns: 1fr 320px; gap: 32px; max-width: 1280px; margin: 0 auto; padding: 32px; }
@media (max-width: 900px) { .watch-grid { grid-template-columns: 1fr; padding: 16px; } }
.video-frame {
  background: #000; border-radius: 16px; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); position: relative; overflow: hidden;
}
.video-frame .placeholder { text-align: center; padding: 32px; }
.video-frame .placeholder .big { font-size: 64px; margin-bottom: 12px; }
.lesson-content {
  background: var(--bg-2); border-radius: 16px; padding: 28px; margin-top: 24px;
  white-space: pre-wrap; line-height: 1.7; color: var(--ink);
}
.lesson-content h1 { font-family: 'Anton', sans-serif; font-size: 28px; margin-bottom: 16px; }
.sidebar-curriculum { background: var(--bg-2); border-radius: 16px; padding: 20px; max-height: 80vh; overflow-y: auto; }
.sidebar-lesson {
  display: block; padding: 10px 12px; border-radius: 8px; font-size: 13px;
  color: var(--muted); transition: all 0.15s;
}
.sidebar-lesson:hover { background: rgba(255,255,255,0.05); color: var(--ink); }
.sidebar-lesson.active { background: var(--grad); color: white; font-weight: 600; }
.sidebar-lesson.completed::before { content: '✓ '; color: var(--teal); }

/* Forms */
.form-card { max-width: 460px; margin: 80px auto; background: var(--bg-2); border-radius: 24px; padding: 40px; }
.form-card h2 { font-family: 'Anton', sans-serif; font-size: 32px; margin-bottom: 8px; }
.form-card p { color: var(--muted); margin-bottom: 24px; }
.form-input {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  background: var(--bg); color: var(--ink); border: 1px solid rgba(255,255,255,0.1);
  font-size: 15px; margin-bottom: 16px; outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--r1); }

/* Community */
.post {
  background: var(--bg-2); border-radius: 20px; padding: 24px;
  margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.05);
}
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.avi { width: 40px; height: 40px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 16px; }
.post-meta { font-size: 12px; color: var(--muted); }
.post-name { font-weight: 700; }
.post-body { font-size: 15px; line-height: 1.6; margin-bottom: 12px; white-space: pre-wrap; }
.post-tag { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 100px; background: rgba(255,140,66,0.15); color: var(--r2); font-weight: 600; margin-bottom: 8px; }
.post-actions { display: flex; gap: 8px; }
.react-btn { padding: 6px 14px; border-radius: 100px; background: rgba(255,255,255,0.05); border: 1px solid transparent; color: var(--muted); font-size: 13px; transition: all 0.2s; }
.react-btn:hover { color: var(--ink); border-color: var(--r1); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--bg-2); color: var(--ink); padding: 14px 24px;
  border-radius: 100px; border: 1px solid rgba(255,255,255,0.1);
  z-index: 1000; opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-8px); }

/* Gold glow easter egg */
.gold-glow .learn-nav { box-shadow: 0 0 60px rgba(255,215,0,0.6); border-bottom-color: var(--gold); }
.gold-glow .learn-logo { background: linear-gradient(135deg, var(--gold), #FFA500); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* Confetti container */
.confetti-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* Vibecheck plinko mini */
.vibecheck-pop {
  position: fixed; bottom: 30px; right: 30px; z-index: 9998;
  background: var(--bg-2); border: 2px solid var(--teal); border-radius: 20px;
  padding: 20px; max-width: 280px; box-shadow: 0 20px 60px rgba(0,197,200,0.3);
  animation: vbpop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes vbpop { from { transform: translateY(40px) scale(0.8); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.vibecheck-pop h4 { font-family: 'Anton', sans-serif; font-size: 18px; color: var(--teal); margin-bottom: 6px; }
.vibecheck-pop p { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.vibecheck-pop a { display: inline-block; padding: 8px 16px; border-radius: 100px; background: var(--grad); color: white; font-weight: 700; font-size: 13px; }
.vibecheck-pop .x { position: absolute; top: 8px; right: 12px; color: var(--muted); font-size: 18px; cursor: pointer; }

/* Empty states */
.empty { text-align: center; padding: 80px 20px; color: var(--muted); }
.empty .big { font-size: 64px; margin-bottom: 16px; }

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&family=Caveat:wght@500;700&display=swap');
