/* =====================================
   ERAJA – FINAL CORE.CSS (LOCKED)
   Compact App Layout | 3D Cards
===================================== */

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

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f1117;
  color: #f5f7fa;
  overflow-x: hidden;
}

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

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

.app-header h2 {
  font-size: 18px;
  font-weight: 600;
}

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

/* ===== HERO CARD ===== */
.hero-card {
  background: linear-gradient(135deg, #1d2333, #11151f);
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

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

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

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

.mode-grid {
  margin-top: 10px;
}

/* ===== CARD ===== */
.card {
  background: linear-gradient(145deg, #1a1f2b, #121622);
  padding: 14px;
  border-radius: 14px;
  box-shadow: 
    0 6px 15px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

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

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

/* ===== BUTTON ===== */
.btn {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5c7cff, #3b4ef8);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* ===== BADGES ===== */
.meta-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.badge {
  background: #242a3a;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 11px;
  color: #d0d6e5;
}

/* ===== DRAWER (UPGRADED – PREMIUM VISIBILITY) ===== */
.drawer {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  padding: 60px 16px 20px;
  background: linear-gradient(180deg, #111827, #0b1220);
  box-shadow: 8px 0 30px rgba(0,0,0,0.6);
  border-right: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  transition: left 0.35s ease;
  z-index: 1200;
}

.drawer.active {
  left: 0;
}

.drawer h3 {
  font-size: 14px;
  margin-bottom: 14px;
  color: #aab2c5;
  letter-spacing: 0.5px;
}

.drawer a {
  display: block;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #e4e8f1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
  transition: 0.25s ease;
}

.drawer a:hover {
  background: linear-gradient(90deg, #4f46e5, #2563eb);
  transform: translateX(4px);
  border-color: transparent;
}

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

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

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 56px;
  background: #151923;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
  z-index: 1000;
}

.bottom-nav a {
  font-size: 13px;
  text-decoration: none;
  color: #cbd3e1;
  text-align: center;
}

.bottom-nav a:hover {
  color: #5c7cff;
}

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