/* Modern Cyberpunk / Deep Space High-Tech Theme */
:root {
  --bg-dark: #070a13;
  --bg-card: rgba(15, 23, 42, 0.75);
  --border-cyan: rgba(56, 189, 248, 0.25);
  --border-glow: rgba(56, 189, 248, 0.6);
  --accent-cyan: #38bdf8;
  --accent-purple: #c084fc;
  --accent-blue: #818cf8;
  --accent-green: #34d399;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --code-bg: #030712;
  --code-text: #e2e8f0;
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
  --radius: 14px;
}

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

body.cyber-theme {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Background Cyber Grid Lines */
.cyber-bg-grid {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
header {
  position: sticky; top: 0;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
  z-index: 100;
}

.nav-wrapper {
  display: flex; justify-content: space-between; align-items: center; height: 68px;
}

.logo { font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; }
.logo-icon { color: var(--accent-cyan); text-shadow: 0 0 10px var(--accent-cyan); }
.logo-text { letter-spacing: 0.5px; }
.logo-divider { color: var(--border-cyan); font-weight: 300; }
.logo-badge {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: monospace;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
}

nav ul { display: flex; list-style: none; gap: 24px; }
nav a {
  text-decoration: none; color: var(--text-muted); font-size: 0.95rem; font-weight: 500;
  transition: all 0.2s;
}
nav a:hover { color: var(--accent-cyan); text-shadow: 0 0 8px var(--accent-cyan); }

/* Breadcrumb */
.breadcrumb {
  padding: 20px 0 0; font-size: 0.85rem; color: var(--text-muted); font-family: monospace;
}
.breadcrumb a { color: var(--accent-cyan); text-decoration: none; }

/* Hero Section */
.hero { padding: 56px 0 40px; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
  font-size: 0.85rem; font-weight: 600; font-family: monospace;
  padding: 6px 18px; border-radius: 9999px; margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.pulse-dot {
  width: 8px; height: 8px; background: var(--accent-cyan);
  border-radius: 50%; box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.4; }
}

.hero-title {
  font-size: 2.75rem; font-weight: 900; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 18px;
}

.gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.hero-sub {
  font-size: 1.1rem; color: var(--text-muted); max-width: 700px; margin: 0 auto 32px;
}

/* Search Box */
.search-box {
  position: relative; max-width: 640px; margin: 0 auto;
}
.search-box input {
  width: 100%;
  padding: 16px 20px; padding-right: 100px;
  font-size: 0.95rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-cyan);
  color: var(--text-main);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  outline: none; transition: all 0.2s;
}
.search-box input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}
.search-kbd {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: rgba(56, 189, 248, 0.1); border: 1px solid var(--border-cyan);
  color: var(--text-muted); font-family: monospace; font-size: 0.75rem;
  padding: 4px 8px; border-radius: 4px;
}

/* Category Filter */
.category-filter {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-cyan);
  color: var(--text-muted);
  font-family: monospace; font-size: 0.85rem; font-weight: 500;
  padding: 8px 18px; border-radius: 9999px; cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-cyan);
  color: #070a13; font-weight: 700;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* Section Header */
.section-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px;
}
.section-title { font-size: 1.5rem; font-weight: 800; }
.title-tech { color: var(--accent-cyan); margin-right: 6px; }
.tech-tag { font-family: monospace; color: var(--text-muted); font-size: 0.8rem; }

/* Cyber Card Styling */
.cyber-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}
.cyber-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-bottom: 56px;
}

.resource-card {
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
}

.card-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.card-tag {
  font-family: monospace; font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 4px;
}
.tag-cyan { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.tag-purple { background: rgba(192, 132, 252, 0.15); color: #c084fc; border: 1px solid rgba(192, 132, 252, 0.3); }
.tag-blue { background: rgba(129, 140, 248, 0.15); color: #818cf8; border: 1px solid rgba(129, 140, 248, 0.3); }
.tag-green { background: rgba(52, 211, 153, 0.15); color: #34d399; border: 1px solid rgba(52, 211, 153, 0.3); }

.card-date { font-family: monospace; font-size: 0.75rem; color: #64748b; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; color: var(--text-main); }
.card-desc { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.55; }

.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(56, 189, 248, 0.15); padding-top: 16px;
}
.card-stat { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
.dot-online { width: 6px; height: 6px; background: var(--accent-green); border-radius: 50%; display: inline-block; }

.card-btn {
  text-decoration: none; font-size: 0.85rem; font-weight: 700; padding: 8px 16px; border-radius: 6px;
  transition: all 0.2s; font-family: monospace;
}
.card-btn.primary {
  background: var(--accent-cyan); color: #070a13; box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
}
.card-btn.primary:hover {
  background: #7dd3fc; box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}
.card-btn.secondary {
  background: rgba(56, 189, 248, 0.1); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3);
}
.card-btn.secondary:hover {
  background: rgba(56, 189, 248, 0.25);
}

/* Level 2 Grid & Steps */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.card { padding: 24px; }
.step-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.step-item { display: flex; gap: 18px; padding: 20px; align-items: flex-start; }
.step-number {
  background: rgba(56, 189, 248, 0.15); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: monospace; font-weight: 800; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-content h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.step-content p { font-size: 0.92rem; color: var(--text-muted); }

/* Prompts Box */
.prompt-card { padding: 22px; margin-bottom: 20px; }
.prompt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.prompt-title { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.copy-btn {
  background: rgba(56, 189, 248, 0.12); color: var(--accent-cyan); border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px; border-radius: 6px; font-weight: 700; font-family: monospace; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
}
.copy-btn:hover { background: var(--accent-cyan); color: #070a13; }
.prompt-box {
  background: var(--code-bg); color: var(--code-text); border: 1px solid rgba(255,255,255,0.08);
  padding: 18px; border-radius: 8px; font-family: SFMono-Regular, Consolas, monospace; font-size: 0.88rem;
  white-space: pre-wrap; line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex; padding: 12px 26px; font-weight: 700; border-radius: 8px; text-decoration: none;
  font-family: monospace; transition: all 0.2s;
}
.btn-primary { background: var(--accent-cyan); color: #070a13; box-shadow: 0 0 15px rgba(56, 189, 248, 0.35); }
.btn-primary:hover { background: #7dd3fc; box-shadow: 0 0 25px rgba(56, 189, 248, 0.5); }
.btn-secondary { background: rgba(15, 23, 42, 0.8); color: var(--text-main); border: 1px solid var(--border-cyan); }
.btn-secondary:hover { border-color: var(--accent-cyan); }
.hero-buttons { display: flex; justify-content: center; gap: 16px; margin-bottom: 24px; }

/* Cyber CTA */
.cyber-cta {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(3, 7, 18, 0.95) 100%);
  border: 1px solid var(--border-glow); box-shadow: 0 0 35px rgba(56, 189, 248, 0.15);
  border-radius: 20px; padding: 40px 36px; display: flex; justify-content: space-between; align-items: center; gap: 32px;
  margin: 48px 0 64px;
}
.cta-badge {
  display: inline-block; font-family: monospace; font-size: 0.75rem; color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px; border-radius: 4px; margin-bottom: 12px;
}
.cta-info h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.cta-info p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 18px; max-width: 560px; }
.cta-features { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; color: #cbd5e1; }
.check-icon { color: var(--accent-cyan); font-weight: 800; }

.cyber-qr {
  background: #0f172a; border: 1px solid var(--border-cyan);
  padding: 18px; border-radius: 14px; text-align: center; color: var(--text-main); width: 180px; flex-shrink: 0;
}
.qr-placeholder {
  width: 140px; height: 140px; background: #030712; border: 1px dashed var(--border-cyan);
  border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.75rem; color: var(--text-muted); margin: 0 auto 10px; font-family: monospace;
}
.qr-text { font-size: 0.8rem; font-weight: 700; color: var(--text-main); }

footer {
  border-top: 1px solid rgba(56, 189, 248, 0.15); padding: 36px 0; text-align: center; color: var(--text-muted); font-size: 0.85rem; font-family: monospace;
}

#toast {
  position: fixed; bottom: 28px; right: 28px; background: #10b981; color: white;
  padding: 12px 22px; border-radius: 8px; font-weight: 700; font-family: monospace; opacity: 0; transition: all 0.3s;
  pointer-events: none; z-index: 1000; box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
#toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .cyber-cta { flex-direction: column; text-align: center; gap: 24px; padding: 28px 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .hero-title { font-size: 2rem; }
}
