/* =========================================================
   PANDUAN & GLOSARIUM EDUKASI — STYLESHEET
   Portofolio Digital Guru — Diah Pitaloka, S.Pd.I
   ========================================================= */

/* ── Container & Hero ── */
.guide-page {
  background: var(--bg-primary, #0a0f1e);
  color: var(--text-primary, #f1f5f9);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
}

.guide-hero {
  position: relative;
  padding: 120px 20px 50px;
  text-align: center;
  background: radial-gradient(circle at 50% 20%, rgba(13, 148, 136, 0.22) 0%, rgba(10, 15, 30, 0) 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.4);
  color: #2dd4bf;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.guide-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.guide-hero__subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary, #cbd5e1);
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.6;
}

/* ── Tab Switcher (Segmented Control) ── */
.guide-tabs-nav {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px;
  border-radius: 999px;
  gap: 6px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
  justify-content: center;
}

.guide-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-secondary, #94a3b8);
  background: transparent;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.guide-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.guide-tab-btn.active {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 4px 18px rgba(13, 148, 136, 0.45);
}

.guide-tab-btn.active.guide-tab-btn--admin {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-color: rgba(129, 140, 248, 0.5);
  box-shadow: 0 4px 18px rgba(79, 70, 229, 0.45);
}

.guide-tab-btn.active.guide-tab-btn--kamus {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.45);
}

/* ── Content Panes ── */
.guide-container {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

.guide-pane {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.guide-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Guide Section Cards ── */
.guide-section {
  margin-bottom: 40px;
}

.guide-section__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.guide-section__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #2dd4bf;
  flex-shrink: 0;
}

.guide-section__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.guide-section__desc {
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

/* Step list grid */
.guide-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.guide-step-card {
  background: rgba(22, 32, 50, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}

.guide-step-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.guide-step-num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.04);
  line-height: 1;
  pointer-events: none;
}

.guide-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.6;
}

.guide-step-desc strong {
  color: #fff;
}

/* Tip / Alert Callouts */
.guide-callout {
  border-radius: 12px;
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.86rem;
  line-height: 1.55;
}

.guide-callout--tip {
  background: rgba(13, 148, 136, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  color: #a7f3d0;
}

.guide-callout--warn {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

.guide-callout--admin {
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.3);
  color: #c7d2fe;
}

/* ── KAMUS ISTILAH & GLOSARIUM STYLES ── */
.glossary-search-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.glossary-search-input {
  flex: 1;
  min-width: 260px;
  padding: 14px 20px 14px 46px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(45, 212, 191, 0.3);
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  position: relative;
}

.glossary-search-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.glossary-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #2dd4bf;
  pointer-events: none;
  font-size: 1.1rem;
}

.glossary-search-input:focus {
  border-color: #2dd4bf;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.35);
}

.glossary-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.glossary-cat-btn {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.glossary-cat-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.glossary-cat-btn.active {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

/* Glossary Term Encyclopedic Cards */
.glossary-cards-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.glossary-entry-card {
  background: rgba(22, 32, 50, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  padding: 30px;
  transition: all 0.25s ease;
  scroll-margin-top: 100px;
}

.glossary-entry-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(13, 148, 136, 0.2);
}

.glossary-entry-card.highlight-target {
  border-color: #2dd4bf;
  box-shadow: 0 0 35px rgba(45, 212, 191, 0.45);
  animation: pulseTarget 1.5s ease-in-out infinite alternate;
}

@keyframes pulseTarget {
  from { box-shadow: 0 0 20px rgba(45, 212, 191, 0.3); }
  to { box-shadow: 0 0 40px rgba(45, 212, 191, 0.65); }
}

.glossary-entry-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.glossary-entry-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.glossary-entry-word {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.glossary-entry-origin {
  font-size: 0.88rem;
  color: #2dd4bf;
  font-style: italic;
}

.glossary-entry-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(13, 148, 136, 0.18);
  color: #5eead4;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.glossary-entry-badge--arab {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.4);
}

.glossary-entry-badge--pedagogi {
  background: rgba(99, 102, 241, 0.18);
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.4);
}

/* Detail sections inside entry */
.glossary-section-block {
  margin-bottom: 18px;
}

.glossary-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.glossary-text-content {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary, #cbd5e1);
}

.glossary-text-content strong {
  color: #fff;
}

/* Comparison Table */
.glossary-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.88rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glossary-compare-table th {
  background: rgba(15, 23, 42, 0.9);
  color: #f1f5f9;
  padding: 12px 16px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid rgba(45, 212, 191, 0.4);
}

.glossary-compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.5;
}

.glossary-compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

/* Reference links */
.glossary-references {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}

.glossary-ref-link {
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.18s ease;
}

.glossary-ref-link:hover {
  background: rgba(56, 189, 248, 0.2);
  color: #fff;
  border-color: #38bdf8;
}

/* Floating Back to Top Button */
.back-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.9);
  color: #fff;
  border: 1px solid rgba(45, 212, 191, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  z-index: 999;
  text-decoration: none;
}

.back-to-top-btn:hover {
  background: #14b8a6;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.5);
}

@media (max-width: 768px) {
  .guide-hero__title {
    font-size: 1.85rem;
  }
  .guide-tab-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }
  .glossary-entry-card {
    padding: 20px;
  }
}

/* ── Multi-Color Neon Search Highlighter ── */
mark.neon-highlight {
  display: inline;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 4px;
  font-weight: 700;
  color: #ffffff !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  transition: all 0.2s ease;
}

mark.neon-highlight-c1 {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.45), rgba(244, 63, 94, 0.5));
  border: 1px solid rgba(244, 114, 182, 0.7);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.55), inset 0 0 6px rgba(244, 114, 182, 0.3);
}

mark.neon-highlight-c2 {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.45), rgba(59, 130, 246, 0.5));
  border: 1px solid rgba(56, 189, 248, 0.7);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.55), inset 0 0 6px rgba(56, 189, 248, 0.3);
}

mark.neon-highlight-c3 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(234, 179, 8, 0.5));
  border: 1px solid rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55), inset 0 0 6px rgba(251, 191, 36, 0.3);
}

mark.neon-highlight-c4 {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(20, 184, 166, 0.5));
  border: 1px solid rgba(52, 211, 153, 0.7);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.55), inset 0 0 6px rgba(52, 211, 153, 0.3);
}

mark.neon-highlight-c5 {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.45), rgba(139, 92, 246, 0.5));
  border: 1px solid rgba(192, 132, 252, 0.7);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.55), inset 0 0 6px rgba(192, 132, 252, 0.3);
}

/* ── Card Glow Focus on target navigation ── */
@keyframes glowPulseFocusAnim {
  0% {
    box-shadow: 0 0 0 rgba(45, 212, 191, 0);
    border-color: rgba(45, 212, 191, 0.4);
    transform: scale(1);
  }
  25% {
    box-shadow: 0 0 35px rgba(45, 212, 191, 0.9), 0 0 70px rgba(13, 148, 136, 0.65);
    border-color: #2dd4bf;
    transform: scale(1.02);
  }
  60% {
    box-shadow: 0 0 25px rgba(45, 212, 191, 0.65);
    border-color: #2dd4bf;
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 rgba(45, 212, 191, 0);
    border-color: rgba(255, 255, 255, 0.08);
    transform: scale(1);
  }
}

.glow-pulse-focus {
  animation: glowPulseFocusAnim 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  z-index: 10;
  position: relative;
}
