/* ═══════════════════════════════════════════════════════════════════
   HIKARI ABOUT PREMIUM — blocks + commands + scrollbar
   Uses base.css variables
   ═══════════════════════════════════════════════════════════════════ */

@import url('base.css');

/* About page specific background - same as home */
body {
  background:
    radial-gradient(900px 500px at 18% -8%, rgba(108, 99, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at 92% 18%, rgba(0, 242, 255, 0.08), transparent 60%),
    linear-gradient(rgba(8, 8, 18, 0.55), rgba(10, 10, 15, 0.92)),
    url('https://files.catbox.moe/hgxz9h.png') no-repeat center center fixed;
  background-size: cover;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(10, 10, 15, 0.92)),
    url('https://files.catbox.moe/hgxz9h.png') center/cover no-repeat;
  animation: kenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 75% 18%, rgba(108, 99, 255, 0.28), transparent 60%),
    radial-gradient(900px 600px at 10% 85%, rgba(0, 242, 255, 0.12), transparent 60%);
  pointer-events: none;
}

.about-container {
  position: relative;
  z-index: 2;
  padding: 110px 5% 60px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
  animation: fadeInUp 0.7s var(--ease) both;
}

/* hero intro */
.about-hero {
  text-align: center;
  padding: 10px 0 6px;
  animation: fadeInUp 0.6s var(--ease) 0.06s both;
}

.about-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.about-hero p {
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 3px solid var(--primary);
  box-shadow: 0 0 24px rgba(108, 99, 255, 0.4);
}

.about-stats {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  border-radius: 50px;
  border: 1px solid var(--glass-border);
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}

.stat-chip:hover {
  transform: translateY(-3px) scale(1.02);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

/* timeline */
.timeline-wrap {
  overflow: hidden;
}

.timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--glass-border);
}

.tl-item {
  position: relative;
  padding: 24px 0 24px 28px;
  animation: fadeInUp 0.55s var(--ease) both;
}

.tl-item:nth-child(1) { animation-delay: 0.06s; }
.tl-item:nth-child(2) { animation-delay: 0.10s; }
.tl-item:nth-child(3) { animation-delay: 0.14s; }
.tl-item:nth-child(4) { animation-delay: 0.18s; }

.tl-dot {
  position: absolute;
  left: -34px;
  top: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 0 16px rgba(108, 99, 255, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tl-year {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
}

.tl-item h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.tl-item p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* blocks */
.about-block {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(16px) saturate(1.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.12);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.34s var(--ease), border-color 0.3s, box-shadow 0.3s;
  animation: fadeInUp 0.55s var(--ease) both;
}

.about-block:nth-child(1) { animation-delay: 0.06s; }
.about-block:nth-child(2) { animation-delay: 0.10s; }
.about-block:nth-child(3) { animation-delay: 0.14s; }

.about-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.07) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.about-block::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.about-block:hover {
  transform: translateY(-6px) scale(1.005);
  border-color: rgba(108, 99, 255, 0.38);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.30), 0 0 0 1px rgba(108, 99, 255, 0.10) inset;
}

.about-block:hover::before {
  transform: translateX(120%);
}

.about-block:hover::after {
  opacity: 1;
}

.about-block h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 14px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.about-block h2 i {
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(108, 99, 255, 0.5));
}

.about-block p {
  line-height: 1.75;
  margin-bottom: 12px;
  color: #c9cbe0;
  font-size: 1rem;
}

.about-block ul {
  margin: 10px 0 0 18px;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-block li {
  margin-bottom: 6px;
}

.about-block li::marker {
  color: var(--primary);
}

/* commands */
.commands-title {
  text-align: center;
  margin: 8px 0 22px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.category-box {
  margin-bottom: 32px;
  animation: fadeInUp 0.5s var(--ease) both;
}

.category-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108, 99, 255, 0.12);
  border: 1px solid rgba(108, 99, 255, 0.22);
  color: #c4c2ff;
  border-radius: 999px;
}

.category-title::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

.commands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.cmd-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.32s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.cmd-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 32%, rgba(255, 255, 255, 0.07) 50%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  pointer-events: none;
}

.cmd-box:hover {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(108, 99, 255, 0.38);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(108, 99, 255, 0.10) inset;
}

.cmd-box:hover::before {
  transform: translateX(120%);
}

.cmd-header {
  margin-bottom: 10px;
}

.cmd-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.cmd-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
}

.cmd-footer {
  font-size: 0.82rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  color: #7d80a8;
}

.cmd-alias-label {
  font-weight: 800;
  color: var(--primary);
}

.cmd-box.is-skeleton {
  pointer-events: none;
}

.sk {
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.12) 37%, rgba(255, 255, 255, 0.06) 63%);
  background-size: 400% 100%;
  animation: hkShim 1.2s ease infinite;
}

.sk-title { height: 16px; width: 42%; margin-bottom: 10px; }
.sk-desc { height: 12px; width: 88%; margin-bottom: 14px; }
.sk-foot { height: 10px; width: 30%; }

/* filter */
.hk-filter {
  max-width: 520px;
  margin: 18px auto 22px;
  display: flex;
  gap: 10px;
}

.hk-filter input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  outline: none;
}

.hk-filter input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.loading-text,
.error-text {
  text-align: center;
  padding: 40px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.error-text {
  color: #ff6b6b;
}

@media (max-width: 768px) {
  .about-container {
    padding: 90px 16px 40px;
  }
  .about-block {
    padding: 22px;
    border-radius: 16px;
  }
  .commands-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 16px;
  }
  .tl-dot {
    left: -28px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .tl-item {
    padding-left: 20px;
  }
}