/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}
body {
  background: #0f0f0f;
  color: #ffffff;
  padding-bottom: 70px;
}
button {
  all: unset;
  background: #ff9800;
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s;
}
button:hover {
  background: #e68900;
}
h2, h3 {
  margin-bottom: 8px;
}
p {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.4;
}

/* Top Bar */
.top-bar {
  background: #1c1c1c;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  border-bottom: 1px solid #333;
}

/* Toggle Button */
.category-toggle {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 10px;
  background: #121212;
}
.category {
  background: #2a2a2a;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  color: #fff;
  border: 1px solid #444;
}
.category.active {
  background: #ff9800;
  color: #000;
}

/* News Card (Swiper) */
.swiper-container {
  padding: 16px;
}
.swiper-slide {
  background: #1c1c1c;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.swiper-slide h3 {
  font-size: 16px;
  color: #fff;
}
.swiper-slide p {
  color: #ccc;
}
.swiper-slide button {
  margin-top: 10px;
  align-self: flex-start;
}

/* Empire Page */
#empire-page {
  padding: 20px;
}
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.card-item {
  background: #1c1c1c;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.card-item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}
.card-item p {
  font-size: 13px;
  color: #ccc;
}
.card-item button {
  margin-top: 6px;
  font-size: 13px;
}

/* Streak Section */
#streak-section {
  margin: 20px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}
#streak-status {
  margin-bottom: 10px;
  font-size: 14px;
}
.claim-button {
  padding: 10px 20px;
  background: #ff9800;
  color: #000;
  border-radius: 12px;
  font-weight: bold;
  font-size: 14px;
}

/* Footer Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #1c1c1c;
  border-top: 1px solid #333;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.bottom-nav button {
  background: none;
  color: #ccc;
  font-size: 18px;
}
.bottom-nav button.active {
  color: #ff9800;
  font-weight: bold;
}
#puzzle-options button {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 12px;
  color: #fff;
  border: 1px solid #444;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
#puzzle-options button:hover {
  background: #3a3a3a;
}
.empire-progress {
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: #444;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 0 4px #000;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #4caf50, #00c853);
  transition: width 0.5s ease;
}