/* ===== GLOBAL ===== */
body {
  margin: 0;
  padding: 0;
  background: #c7eaff;
  font-family: 'Press Start 2P', sans-serif;
}

/* ===== SIDEBAR (C: wit + gele knoppen) ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 190px;
  height: 100%;
  background: #ffffff;
  border-right: 4px solid #000;
  box-shadow: 6px 0 #000;
  padding-top: 20px;
  z-index: 999;
}

.side-title {
  text-align: center;
  font-size: 16px;
  margin-bottom: 20px;
  text-shadow: 3px 3px #000;
}

.side-link {
  display: block;
  padding: 12px 16px;
  margin: 10px;
  background: #ffd447;
  border: 3px solid #000;
  border-radius: 8px;
  text-decoration: none;
  color: #000;
  font-size: 12px;
  box-shadow: 4px 4px #000;
  transition: 0.1s;
}

.side-link:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px #000;
}

.side-link.active {
  background: #ff9f47;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 190px;
  right: 0;
  height: 60px;
  background: #ffd447;
  border-bottom: 4px solid #000;
  box-shadow: 0 6px #000;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 20px;
  z-index: 900;
}

#navUser {
  font-weight: bold;
  margin-right: 20px;
}

.nav-btn {
  padding: 10px 16px;
  border: 3px solid #000;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 4px 4px #000;
  transition: 0.1s;
}

.nav-btn:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px #000;
}

/* ===== PAGE CONTENT SHIFT ===== */
.page,
.main {
  margin-left: 210px;
  padding-top: 80px;
  padding-right: 20px;
}

/* ===== COLLECTION ===== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
}

.duck-card {
  background: #ffeaa7;
  border: 2px solid #000;
  padding: 4px;
  text-align: center;
  border-radius: 6px;
}

.duck-card img {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}

.duck-rarity.common { color: #2d3436; }
.duck-rarity.uncommon { color: #0984e3; }
.duck-rarity.rare { color: #6c5ce7; }
.duck-rarity.legendary { color: #fdcb6e; }

/* ===== MARKET ===== */
.market-title {
  text-align: center;
  font-size: 28px;
  margin: 20px 0;
  text-shadow: 3px 3px #000;
}

.market {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.jar-offer {
  background: #fff;
  border: 4px solid #000;
  padding: 16px;
  border-radius: 12px;
  width: 220px;
  text-align: center;
  box-shadow: 6px 6px #000;
}

.jar-img {
  width: 120px;
  height: 120px;
  image-rendering: pixelated;
}

.jar-offer button {
  margin-top: 10px;
  padding: 10px 14px;
  border: 3px solid #000;
  background: #ffd447;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
}

/* ===== OPEN JAR ===== */
.open-title {
  text-align: center;
  font-size: 28px;
  margin: 20px 0;
  text-shadow: 3px 3px #000;
}

.open-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.jar-select select {
  padding: 10px;
  border: 3px solid #000;
  border-radius: 8px;
}

.jar-select button {
  padding: 10px 16px;
  border: 3px solid #000;
  background: #ffd447;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-left: 10px;
}

/* OPEN ANIMATION */
.open-animation {
  position: relative;
  height: 260px;
  margin-top: 30px;
}

.jar-img-big {
  width: 180px;
  image-rendering: pixelated;
}

.duck-result {
  width: 140px;
  position: absolute;
  top: 60px;
  left: calc(50% - 70px);
  opacity: 0;
  transform: scale(0.5);
  transition: 0.4s;
  image-rendering: pixelated;
}

.shine {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  top: 30px;
  left: calc(50% - 100px);
  opacity: 0;
  transition: 0.3s;
}

/* ===== STATS ===== */
.stats-title {
  text-align: center;
  font-size: 28px;
  margin: 20px 0;
  text-shadow: 3px 3px #000;
}

.stats-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.stat-card {
  background: #fff;
  border: 4px solid #000;
  padding: 20px;
  width: 220px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 6px 6px #000;
}

/* ===== LEADERBOARD ===== */
.lb-title {
  text-align: center;
  font-size: 28px;
  margin: 20px 0;
  text-shadow: 3px 3px #000;
}

.lb-container {
  max-width: 800px;
  margin: 0 auto;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 4px solid #000;
  box-shadow: 6px 6px #000;
}

.lb-table th,
.lb-table td {
  border: 3px solid #000;
  padding: 10px;
  text-align: center;
  font-size: 14px;
}

.lb-table th {
  background: #ffd447;
}

/* ===== PROFILE ===== */
.profile-title {
  text-align: center;
  font-size: 28px;
  margin: 20px 0;
  text-shadow: 3px 3px #000;
}

.profile-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-card {
  background: #fff;
  border: 4px solid #000;
  padding: 20px;
  width: 240px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 6px 6px #000;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  image-rendering: pixelated;
  border: 4px solid #000;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* ===== CHAT ===== */
.fullscreen-chat {
  position: fixed;
  top: 70px;
  left: 210px;
  right: 0;
  bottom: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background: #c7eaff;
}

.fullscreen-chat .chat-box {
  flex: 1;
  background: #fff;
  border: 4px solid #000;
  border-radius: 12px;
  box-shadow: 6px 6px #000;
  overflow-y: auto;
  padding: 10px;
  font-size: 15px;
}

.fullscreen-chat .chat-input-area {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.fullscreen-chat .chat-input-area input {
  flex: 1;
  padding: 12px;
  border: 3px solid #000;
  border-radius: 8px;
  font-size: 15px;
}

.fullscreen-chat .chat-input-area button {
  padding: 12px 20px;
  border: 3px solid #000;
  background: #ffd447;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.auth-box {
  position: absolute;
  top: 50%;
  left: calc(50% + 100px);
  transform: translate(-50%, -50%);
  width: 300px;
  background: #fff;
  border: 4px solid #000;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 6px 6px #000;
  text-align: center;
}

.auth-box input {
  width: 90%;
  padding: 10px;
  margin: 8px 0;
  border: 3px solid #000;
  border-radius: 8px;
}

.auth-box button {
  width: 100%;
  padding: 12px;
  background: #ffd447;
  border: 3px solid #000;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.switch {
  margin-top: 10px;
  cursor: pointer;
  text-decoration: underline;
}
