/* =====================================
   KIDVERSE – FINAL CORE.CSS (LOCKED)
   NFTRaja Green Glass + 3D Gradient UI
===================================== */

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

html,body{
  height:100%;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:radial-gradient(circle at top,#0b1f17,#050807);
  color:#eafff6;
  overflow-x:hidden;
}

/* ===== HEADER ===== */
.app-header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:56px;
  background:rgba(0,255,150,0.05);
  backdrop-filter:blur(14px);
  display:flex;
  align-items:center;
  padding:0 16px;
  z-index:1000;
  border-bottom:1px solid rgba(0,255,150,0.15);
}

.menu-btn{
  font-size:22px;
  cursor:pointer;
  margin-right:12px;
}

.app-header h2{
  font-size:16px;
  font-weight:600;
  color:#d8fff2;
}

/* ===== CONTAINER ===== */
.container{
  padding:70px 8px 70px;
  max-width:1200px;
  margin:auto;
}

/* ===== HERO ===== */
.hero-card{
  background:rgba(0,255,150,0.05);
  backdrop-filter:blur(20px);
  border:1px solid rgba(0,255,150,0.15);
  padding:18px;
  border-radius:16px;
  margin-bottom:10px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.7),
    0 0 20px rgba(0,255,150,0.08);
}

.hero-card h1{
  font-size:18px;
  margin-bottom:8px;
}

.hero-card p{
  font-size:14px;
  color:#b7f7d5;
  line-height:1.4;
}

/* ===== GRID ===== */
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:8px;
}

/* ===== CARD ===== */
.card{
  background:rgba(0,255,150,0.04);
  backdrop-filter:blur(18px);
  border:1px solid rgba(0,255,150,0.15);

  padding:14px;
  border-radius:15px;
  position:relative;

  box-shadow:
    0 8px 20px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);

  transition:all 0.25s ease;
}

.card:hover{
  transform:translateY(-4px) scale(1.01);
  box-shadow:
    0 14px 35px rgba(0,0,0,0.9),
    0 0 20px rgba(0,255,150,0.25);
}

.card h3{
  font-size:14px;
  margin-bottom:6px;
}

.card p{
  font-size:12.5px;
  color:#a7eecb;
  margin-bottom:10px;
  line-height:1.4;
}

/* ===== BUTTON (STATIC COLORFUL GRADIENT – PERFORMANCE SAFE) ===== */
.btn{
  display:inline-block;
  padding:7px 12px;
  font-size:12px;
  border-radius:8px;
  text-decoration:none;
  border:none;
  color:#fff;

  background:linear-gradient(
    135deg,
    #00ff9c,
    #22c55e,
    #3b82f6,
    #6366f1,
    #a855f7
  );

  box-shadow:
    0 4px 12px rgba(0,255,150,0.35),
    0 0 10px rgba(99,102,241,0.15);

  transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover{
  transform:translateY(-2px);

  box-shadow:
    0 6px 16px rgba(0,255,150,0.5),
    0 0 14px rgba(168,85,247,0.25);
}

/* ===== DRAWER ===== */
.drawer{
  position:fixed;
  top:0;
  left:-260px;
  width:250px;
  height:100%;
  padding:20px 12px;

  background:rgba(0,255,150,0.08);
  backdrop-filter:blur(22px);

  border-right:1px solid rgba(0,255,150,0.2);
  box-shadow:10px 0 30px rgba(0,0,0,0.8);

  transition:0.3s ease;
  z-index:1200;
}

.drawer.active{
  left:0;
}

/* BACK BUTTON */
.drawer-back{
  font-size:13px;
  margin-bottom:10px;
  cursor:pointer;
  color:#9fffdc;
}

.drawer-back:hover{
  color:#00ff9c;
}

.drawer h3{
  font-size:13px;
  margin-bottom:10px;
  color:#9bead0;
}

.drawer a{
  display:block;
  padding:8px 10px;
  margin-bottom:6px;
  font-size:13px;
  border-radius:10px;
  text-decoration:none;

  color:#eafff6;
  background:rgba(0,255,150,0.05);
  border:1px solid rgba(0,255,150,0.15);

  transition:0.25s ease;
}

.drawer a:hover{
  background:linear-gradient(135deg,#00ff9c,#00c97a);
  color:#022c22;
  transform:translateX(4px);
}

/* DRAWER SCROLL FIX */
.drawer{
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

/* BODY LOCK */
body.drawer-open{
  overflow:hidden;
  height:100%;
}

/* ===== OVERLAY ===== */
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.7);
  backdrop-filter:blur(5px);
  opacity:0;
  visibility:hidden;
  transition:0.3s;
  z-index:1100;
}

.overlay.active{
  opacity:1;
  visibility:visible;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  height:56px;

  background:rgba(0,255,150,0.05);
  backdrop-filter:blur(14px);

  display:flex;
  justify-content:space-around;
  align-items:center;

  border-top:1px solid rgba(0,255,150,0.15);
  z-index:1000;
}

.bottom-nav a{
  font-size:12px;
  text-decoration:none;
  color:#caffea;
  text-align:center;
  transition:0.2s ease;
}

.bottom-nav a:hover{
  color:#00ff9c;
}

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .grid{
    grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  }
}
