/* =====================================================
   FIRECRASH 2 — ui.css
   UI/UX Upgrade — Claymorphism 2.0
   Developer: ADAMMUKHRIZ
   Version: 0.10.1 BetaRelease
   ===================================================== */

.aurora {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(255,107,53,.18), transparent 60%),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(247,147,30,.14), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255,180,120,.16), transparent 60%);
  pointer-events: none;
  z-index: -1;
  animation: auroraDrift 24s ease-in-out infinite alternate;
}

.grain {
  position: fixed; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,.015) 0, rgba(0,0,0,.015) 1px, transparent 1px, transparent 3px);
  pointer-events: none;
  z-index: -1;
  opacity: .5;
}

.topbar {
  position: relative;
  overflow: hidden;
}
.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shineSweep 8s ease-in-out infinite;
}

.info-btn {
  background: var(--clay-bg);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    3px 3px 8px var(--clay-shadow-dark),
    -3px -3px 8px var(--clay-shadow-light);
  transition: transform .2s ease, box-shadow .2s ease;
}
.info-btn svg { width: 18px; height: 18px; color: var(--accent); }
.info-btn:hover { transform: translateY(-2px); }
.info-btn:active { transform: scale(.94); }

.nav-item {
  position: relative;
  overflow: hidden;
}
.nav-item::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: var(--accent);
  border-radius: 3px;
  transform: translateY(-50%);
  transition: height .25s ease;
}
.nav-item.active::before { height: 60%; }
.nav-item svg { transition: transform .25s ease; }
.nav-item:hover svg { transform: scale(1.18) rotate(-4deg); }

.content { scroll-behavior: smooth; }
.content::-webkit-scrollbar { width: 8px; }
.content::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb {
  background: var(--clay-dark);
  border-radius: 4px;
}

.card {
  transition: transform .25s cubic-bezier(.3,.7,.4,1.3), box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 3px 3px 8px var(--clay-shadow-dark),
    inset -3px -3px 8px var(--clay-shadow-light),
    0 8px 20px rgba(184,168,152,.3);
}

.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,.4) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s ease;
}
.btn:hover::after { transform: translateX(100%); }

.brand-icon { filter: drop-shadow(0 0 6px rgba(255,107,53,.5)); }

.status-dot { position: relative; }
.status-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  opacity: .6;
  animation: pulseRing 2s ease-out infinite;
}

/* === Info popup === */
.info-popup {
  position: fixed;
  inset: 0;
  background: rgba(58,49,41,.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.info-popup.show { opacity: 1; pointer-events: auto; }

.info-card {
  background: var(--clay-light);
  border-radius: 24px;
  width: 100%;
  max-width: 720px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 30px 80px rgba(58,49,41,.4),
    inset 4px 4px 12px var(--clay-shadow-light),
    inset -4px -4px 12px var(--clay-shadow-dark);
  transform: scale(.92) translateY(20px);
  transition: transform .4s cubic-bezier(.3,.7,.4,1.3);
}
.info-popup.show .info-card { transform: scale(1) translateY(0); }

.info-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--clay-dark);
  position: relative;
}
.info-flame {
  width: 38px; height: 38px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(255,107,53,.6));
  animation: flameFlicker 2.4s ease-in-out infinite;
}
.info-header h2 { font-size: 20px; }
.info-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--text-soft);
  background: var(--clay-bg);
  padding: 2px 8px;
  border-radius: 8px;
  margin-top: 2px;
}
.info-close {
  margin-left: auto;
  background: var(--clay-bg);
  border: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 2px 2px 5px var(--clay-shadow-dark),
    inset -2px -2px 5px var(--clay-shadow-light);
  transition: transform .2s ease;
}
.info-close svg { width: 16px; height: 16px; color: var(--text); }
.info-close:hover { transform: rotate(90deg); }

.info-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.info-body::-webkit-scrollbar { width: 6px; }
.info-body::-webkit-scrollbar-thumb { background: var(--clay-dark); border-radius: 3px; }

.info-section {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--clay-dark);
  animation: infoFadeUp .5s ease both;
}
.info-section:last-child { border-bottom: none; }
.info-section h3 {
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.info-section p {
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 6px;
}
.info-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--clay-dark);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}