/* =========================================================
   STYLE DESIGN SYSTEM - BUAT WEBSITE PERTAMAMU (NEON ULTRA MODERN)
   Target: RPL16 (Eye-Catching, High-Curiosity, Gamified UI)
   ========================================================= */

:root {
  --primary: #6366f1;
  --primary-glow: rgba(99, 102, 241, 0.4);
  --secondary: #ec4899;
  --secondary-glow: rgba(236, 72, 153, 0.4);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.4);
  --accent: #10b981;
  --warning: #f59e0b;
  --bg-deep: #070913;
  --card-bg: rgba(20, 27, 45, 0.75);
  --card-border: rgba(255, 255, 255, 0.1);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-code: 'Fira Code', 'Consolas', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.7;
  padding-bottom: 80px;
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 20%, rgba(236, 72, 153, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(6, 182, 212, 0.12) 0px, transparent 50%);
  background-attachment: fixed;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.floating-icon {
  display: inline-block;
  animation: float 4s ease-in-out infinite;
}

/* Container */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Section */
header {
  padding: 60px 0 50px;
  text-align: center;
  position: relative;
}

.header-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.badge {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #a5f3fc;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.badge-rpl16 {
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
  color: #fff;
  border: none;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

header h1 {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #c7d2fe 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  header h1 { font-size: 2.3rem; }
}

header p.subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 750px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* CURIOSITY HOOK BANNER ("Rahasia Dunia Web") */
.curiosity-card {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-xl);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.curiosity-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0; width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), transparent 70%);
  pointer-events: none;
}

.curiosity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f472b6;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.curiosity-body p {
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.curiosity-highlight {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: #67e8f9;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

/* LIVE INTERACTIVE PLAYGROUND (CURIOSITY BOOSTER) */
.playground-section {
  background: var(--card-bg);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 45px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.playground-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.playground-title h3 {
  font-size: 1.35rem;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .playground-grid { grid-template-columns: 1fr; }
}

.playground-editor, .playground-preview {
  background: #090d16;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.playground-bar {
  background: #1e293b;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--card-border);
}

.playground-editor textarea {
  width: 100%;
  height: 180px;
  background: transparent;
  border: none;
  color: #38bdf8;
  font-family: var(--font-code);
  font-size: 0.9rem;
  padding: 14px;
  resize: none;
  outline: none;
  line-height: 1.5;
}

.playground-preview-box {
  padding: 20px;
  min-height: 180px;
  background: #ffffff;
  color: #000000;
  overflow-y: auto;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.preset-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-preset:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Rule Banner (3 Mindsets Utama) */
.rules-container {
  margin-bottom: 40px;
}

.rule-box {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid #818cf8;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(99, 102, 241, 0.2);
  backdrop-filter: blur(16px);
}

.rule-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fbbf24;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .rule-grid { grid-template-columns: 1fr; }
}

.rule-card {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.rule-card:hover {
  transform: translateY(-5px);
  border-color: #818cf8;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.rule-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rule-card.fearless h3 { color: #38bdf8; }
.rule-card.google h3 { color: #60a5fa; }
.rule-card.fun h3 { color: #f472b6; }

.rule-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* Pair Programming Banner */
.pair-banner {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  border: 1px solid var(--card-border);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.pair-banner h3 {
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.pair-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

@media (max-width: 600px) {
  .pair-roles { grid-template-columns: 1fr; }
}

.role-item {
  background: rgba(255, 255, 255, 0.04);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.role-item strong {
  color: #67e8f9;
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

/* Interactive Dashboard (Timer & Progress) */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  margin-bottom: 45px;
}

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.timer-card, .progress-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  backdrop-filter: blur(16px);
}

.timer-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.timer-card h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.timer-display {
  font-family: var(--font-code);
  font-size: 3.2rem;
  font-weight: 800;
  color: #38bdf8;
  margin: 4px 0 18px;
  letter-spacing: 2px;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.timer-controls {
  display: flex;
  gap: 10px;
}

.btn {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: white;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
  background: #334155;
  box-shadow: none;
}
.btn-secondary:hover {
  background: #475569;
  box-shadow: none;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.progress-bar-bg {
  background: #1e293b;
  height: 18px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-bar-fill {
  background: linear-gradient(90deg, #10b981, #06b6d4, #8b5cf6, #ec4899);
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.quick-stats {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.quick-stats span strong {
  color: var(--text-main);
}

/* Mission Section */
.mission-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.mission-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(16px);
}

.mission-card:hover {
  border-color: #6366f1;
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.2);
}

.mission-header {
  padding: 22px 30px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mission-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mission-number {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.mission-title h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f1f5f9;
}

.mission-time {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-body {
  padding: 30px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.7);
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.25s ease;
}

.step-item:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
}

.step-checkbox {
  appearance: none;
  width: 26px;
  height: 26px;
  border: 2px solid #64748b;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 3px;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.step-checkbox:checked {
  background-color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.step-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 17px;
  font-weight: bold;
  top: -2px;
  left: 6px;
}

.step-content {
  flex-grow: 1;
}

.step-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.98rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

/* Callout Tips */
.key-tip {
  background: rgba(245, 158, 11, 0.12);
  border-left: 4px solid var(--warning);
  color: #fef08a;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  margin-top: 12px;
  line-height: 1.6;
}

.key-tip-google {
  background: rgba(6, 182, 212, 0.12);
  border-left: 4px solid var(--cyan);
  color: #a5f3fc;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  margin-top: 12px;
  line-height: 1.6;
}

.key-tip-happy {
  background: rgba(236, 72, 153, 0.12);
  border-left: 4px solid var(--secondary);
  color: #fbcfe8;
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  margin-top: 12px;
  line-height: 1.6;
}

/* Code Snippet Box */
.code-box {
  background: #060913;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  margin: 16px 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.code-header {
  background: #1e293b;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: #cbd5e1;
  border-bottom: 1px solid #334155;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #e2e8f0;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.code-body {
  padding: 18px;
  overflow-x: auto;
}

.code-body pre {
  font-family: var(--font-code);
  font-size: 0.94rem;
  color: #e2e8f0;
  line-height: 1.65;
}

/* Cheat Sheet / Explanations */
.cheatsheet-section {
  margin-top: 50px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 35px;
  backdrop-filter: blur(16px);
}

.cheatsheet-section h2 {
  font-size: 1.55rem;
  color: #38bdf8;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.tag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.tag-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  transition: transform 0.2s ease;
}

.tag-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.3);
}

.tag-card code {
  font-family: var(--font-code);
  color: #f472b6;
  font-weight: 700;
  font-size: 1rem;
  background: rgba(244, 114, 182, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
}

.tag-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 70px;
  padding-top: 30px;
  border-top: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

footer p strong {
  color: #60a5fa;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  z-index: 1000;
  max-width: 450px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Canvas Confetti */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
}
