* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Orbitron', sans-serif;
  color: #ffffff;
  background-color: transparent; /* Deep space blue #0b0f2f*/
  overflow-x: hidden;
  position: relative;
}
body {
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top, #0c0f25, #111);
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #070b23;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Logo (left) */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0ff;
}

.logo a {
  color: #0ff;
  text-decoration: none;
}

/* Center nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 7px;
}

.nav-links a {
  color: whitesmoke;
  text-decoration: none;
  font-size: 17px;
}

.nav-links a:hover {
  color: #0ff;
}

/* Right actions: login, signup, profile */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.signup-btn {
  background-color: #0ff;
  color: #000;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.nav-actions-links {
  color: whitesmoke;
  font-size: 17px;
}

.nav-actions a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions a:hover {
  color: #0ff;
}

.signup-btn:hover {
  background-color: #00c9c9;
}

.hamburger {
  display: none; /* hide by default */
}

@media (max-width: 800px) {
  .hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: #0ff;
    z-index: 1001;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    background-color: #070b23;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;

  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav .nav-links,
  .mobile-nav .nav-actions {
    display: flex !important; /* force show in mobile dropdown */
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  
  /* Force vertical layout */
  .nav-links,
  .nav-actions {
    position: static;      /* remove absolute from desktop */
    transform: none;       /* remove translateX from desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a,
  .nav-actions a {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: white;
    text-align: center;
  }
 /* Smaller signup button in mobile */
  .nav-actions .signup-btn {
    width: auto;
    min-width: 120px;
    max-width: 160px;
  }

  .mobile-nav a {
    color: white;
    padding: 0.75rem;
    text-align: center;
  }
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #ffcc00;
  margin-bottom: 30px;
  font-size: 30px;
  text-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
}

.card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.streak-card {
  border: 2px solid #ffcc00;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.8);
}

#streakDisplay {
  font-size: 24px;
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 10px;
}

#monthYear {
  margin: 15px 0;
  font-weight: bold;
  font-size: 18px;
  color: #ffcc00;
}

#weekdays, #calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  justify-content: center;
  margin-top: 10px;
}

#weekdays div {
  color: #ccc;
  font-size: 13px;
}

.day {
  width: 45px;
  height: 45px;
  background: #2b2b2b;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}
.day.active {
  background: linear-gradient(135deg, #ffcc00, #ff6f00);
  color: #000;
  font-weight: bold;
}

.stat-row {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.stat .k {
  font-size: 14px;
  color: #ccc;
}

.stat .v {
  font-size: 18px;
  font-weight: 600;
  color: #ffcc00;
}

.xpbar {
  margin-top: 15px;
}

.bar {
  background: #333;
  height: 12px;
  border-radius: 8px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ffcc00, #ff6f00);
  transition: width 1s;
}

.badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.badge {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s;
}

.badge.locked {
  opacity: 0.4;
}

.badge:hover {
  transform: scale(1.1);
}

#leaderboard {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  text-align: left;
}

#leaderboard li {
  background: rgba(44, 44, 44, 0.9);
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
}

#leaderboard li:nth-child(1) { border-left: 6px solid gold; font-weight: bold; }
#leaderboard li:nth-child(2) { border-left: 6px solid silver; }
#leaderboard li:nth-child(3) { border-left: 6px solid #cd7f32; }

ul#timeline {
  list-style: none;
  padding-left: 0;
  text-align: left;
}

#timeline li {
  background: rgba(255,255,255,0.1);
  padding: 8px;
  margin: 5px 0;
  border-left: 3px solid #ffcc00;
}

/* --- STREAK GRID --- */
.streak-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  justify-content: center;
  margin-top: 15px;
  margin-bottom: 10px;
}

.streak-cell {
  width: 30px;
  height: 30px;
  background: #2b2b2b;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.streak-cell.active {
  background: linear-gradient(135deg, #ffcc00, #ff6f00);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
}

#markToday {
  background: linear-gradient(90deg, #ffcc00, #ff6f00);
  border: none;
  color: #000;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
  transition: all 0.3s ease;
}

#markToday:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.7);
}
