/* GLOBAL */
body {
  margin: 0;
  padding: 0;
  background: #000;
  font-family: system-ui, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

.overlay {
  background: rgba(0,0,0,0.75);
  min-height: 100vh;
  padding-bottom: 60px;
  border-left: 4px solid #ff7b00;
  border-right: 4px solid #00c853;
}

/* HEADER */
#compact-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(0,0,0,0.85);
  border-bottom: 2px solid #ff7b00;
  position: sticky;
  top: 0;
  z-index: 9999;
}

#header-logo {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  cursor: pointer;
  object-fit: cover;
  box-shadow: 0 0 12px #ff7b00;
}

/* HEADER TEXT */
#header-text h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: #ff7b00;
  text-shadow: 0 0 10px #ff7b00;
}

#header-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

/* SIDEBAR — FULLY HIDDEN UNTIL CLICKED */
#sidebar {
  position: fixed;
  top: 0;
  left: -350px; /* fully hidden */
  width: 350px;
  height: 100%;
  background: rgba(0,0,0,0.97);
  padding: 30px 20px;
  transition: left 0.35s ease;
  z-index: 999999;
  border-right: 3px solid #00c853;
  box-shadow: 0 0 20px #00c85355;
}

#sidebar.open {
  left: 0;
}

/* SIDEBAR CLOSE BUTTON */
#sidebar-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 32px;
  color: #ff7b00;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0 0 10px #ff7b00;
}

/* SIDEBAR LINKS — RESTYLED */
#sidebar a {
  display: block;
  padding: 16px 0;
  font-size: 20px;
  text-decoration: none;
  font-family: "Trebuchet MS", sans-serif;
  color: #00e676; /* neon green */
  border-bottom: 1px solid #333;
  transition: 0.2s ease;
}

#sidebar a:hover {
  color: #ff7b00;
  text-shadow: 0 0 10px #ff7b00;
}

/* HEADER BUTTONS */
.site-header {
  text-align: center;
  padding: 40px 20px 20px;
}

.header-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  border: 2px solid #ff7b00;
  text-decoration: none;
  transition: 0.2s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.primary {
  background: #ff7b00;
  color: #000;
}

.secondary {
  background: #1a1a1a;
  color: #fff;
  border-color: #00c853;
}

/* INTRO SECTION */
.intro-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.intro-section h2 {
  font-size: 32px;
  font-weight: 900;
  color: #ff7b00;
  text-shadow: 0 0 12px #ff7b00;
  margin-bottom: 20px;
}

.intro-section p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 15px auto;
  opacity: 0.95;
}

/* TRAINING SECTION */
.section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #00c853;
  text-shadow: 0 0 10px #00c853;
}

/* CATEGORY GRID */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* CATEGORY CARDS */
.category-card {
  background: rgba(0,0,0,0.6);
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.25s ease;
  border: 2px solid #444;
}

/* CATEGORY COLORS */
.category-card[data-cat="gear"] {
  border-color: #00c853;
  box-shadow: 0 0 12px #00c85355;
}
.category-card[data-cat="gear"]:hover {
  box-shadow: 0 0 20px #00c853;
}

.category-card[data-cat="throwball"] {
  border-color: #ff7b00;
  box-shadow: 0 0 12px #ff7b0055;
}
.category-card[data-cat="throwball"]:hover {
  box-shadow: 0 0 20px #ff7b00;
}

.category-card[data-cat="styles"] {
  border-color: #4e9cff;
  box-shadow: 0 0 12px #4e9cff55;
}
.category-card[data-cat="styles"]:hover {
  box-shadow: 0 0 20px #4e9cff;
}

.category-card[data-cat="rigging"] {
  border-color: #ff4444;
  box-shadow: 0 0 12px #ff444455;
}
.category-card[data-cat="rigging"]:hover {
  box-shadow: 0 0 20px #ff4444;
}

.category-card[data-cat="knots"] {
  border-color: #c8ff00;
  box-shadow: 0 0 12px #c8ff0055;
}
.category-card[data-cat="knots"]:hover {
  box-shadow: 0 0 20px #c8ff00;
}

.category-card[data-cat="cutting"] {
  border-color: #ff00c8;
  box-shadow: 0 0 12px #ff00c855;
}
.category-card[data-cat="cutting"]:hover {
  box-shadow: 0 0 20px #ff00c8;
}

.category-card[data-cat="business"] {
  border-color: #00e0ff;
  box-shadow: 0 0 12px #00e0ff55;
}
.category-card[data-cat="business"]:hover {
  box-shadow: 0 0 20px #00e0ff;
}

/* CATEGORY IMAGES */
.category-card img {
  width: 100%;
  max-width: 420px;
  margin: 15px auto;
  display: block;
  border-radius: 12px;
  border: 2px solid #222;
}

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 30px 20px;
  opacity: 0.8;
  font-size: 14px;
  border-top: 2px solid #ff7b00;
}

.site-footer a {
  color: #00c853;
  text-decoration: none;
}

#treeLogoBottom {
  display: block;
  margin: 20px auto 10px;
  height: 120px;
  filter: drop-shadow(0 0 12px #ff7b00);
}

/* FLOATING LEAVES */
#leaf-container .leaf {
  position: fixed;
  top: -50px;
  width: 18px;
  height: 18px;
  background: #ff7b00;
  opacity: 0.8;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px #ff7b00);
  animation: fall linear infinite;
  z-index: 1;
}

@keyframes fall {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(120vh) rotate(360deg); }
}

/* SQUIRREL CHAT */
#squirrelChat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#squirrelChatBtn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 12px #ff7b00;
}

#squirrelBubble {
  display: none;
  flex-direction: column;
  background: rgba(0,0,0,0.95);
  border: 2px solid #ff7b00;
  border-radius: 12px;
  padding: 15px;
  width: 260px;
  margin-top: 10px;
  box-shadow: 0 0 12px #ff7b00;
}

#squirrelBubble.open {
  display: flex;
}

#squirrelMessages {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 10px;
  font-size: 14px;
}

#squirrelInput {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: #1a1a1a;
  color: #fff;
  font-size: 14px;
}
