/* style.css – Real World Goblins */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  background: #141414;
  font-family: 'Merriweather', serif;
  color: #e8e0d8;
}

/* Main page background - grotto.png */
body.main-page {
  background: #141414;
  position: relative;
}

body.main-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('imgs/grotto.gif') center/cover no-repeat;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

/* Docs page background */
body.docs-page {
  background: #141414;
  position: relative;
}

body.docs-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../imgs/docs.png') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

/* Gold page background - bank.png */
body.gold-page {
  background: #141414;
  position: relative;
}

body.gold-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../imgs/bank.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

/* Goblins page background */
body.goblins-page {
  background: #141414;
  position: relative;
}

body.goblins-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../imgs/goblins.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

/* FULLSCREEN ENTRANCE */
.entrance-fullscreen {
  position: fixed;
  inset: 0;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.entrance-fullscreen.fade-out {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}

.entrance-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  padding: 2rem;
}

.logo-gif {
  width: 220px;
  height: auto;
  display: block;
  background: transparent;
}

.main-title {
  font-family: 'UnifrakturCook', cursive;
  font-weight: 700;
  font-size: 4rem;
  letter-spacing: 0.06em;
  color: #fed501;
  text-shadow: 0 0 40px rgba(254, 213, 1, 0.15);
  line-height: 1.1;
  text-align: center;
}

.enter-btn {
  font-family: 'New Rocker', cursive;
  background: #141414;
  border: 2px solid #fed501;
  color: #fed501;
  font-size: 2rem;
  padding: 0.6rem 3rem;
  border-radius: 60px 16px 60px 16px;
  cursor: pointer;
  transition: 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-top: 0.6rem;
}

.enter-btn:hover {
  background: #fed501;
  color: #141414;
  transform: scale(1.03);
}

.enter-btn:active {
  transform: scale(0.97);
}

/* FIXED TOP BAR */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.6rem 1.8rem 0.6rem 1.2rem;
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2a2a2a;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.top-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.logo-gif-small {
  width: 64px;
  height: 64px;
  border-radius: 30px 8px 30px 8px;
  background: #1a1a1a;
  display: block;
  flex-shrink: 0;
}

.menu-toggle {
  background: none;
  border: none;
  color: #fed501;
  font-size: 1.8rem;
  padding: 0.2rem 0.8rem;
  border-radius: 12px 4px 12px 4px;
  cursor: pointer;
  font-family: 'New Rocker', cursive;
  background: rgba(0,0,0,0.3);
  margin-left: auto;
  min-width: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.menu-toggle:hover {
  background: rgba(254, 213, 1, 0.1);
}

/* SIDE MENU - positioned on the right */
.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(10px);
  border-left: 1px solid #2a2a2a;
  padding: 2rem 1.5rem;
  transform: translateX(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu .close-menu {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 2.2rem;
  align-self: flex-end;
  cursor: pointer;
  font-family: 'New Rocker', cursive;
  line-height: 1;
  padding: 0 0.4rem;
  margin-bottom: 0.5rem;
}

.side-menu .close-menu:hover {
  color: #fed501;
}

.side-menu a {
  font-family: 'New Rocker', cursive;
  font-size: 1.4rem;
  color: #a0a0a0;
  text-decoration: none;
  border-bottom: 1px solid #2a2a2a;
  padding: 0.6rem 0.2rem;
  transition: color 0.2s, padding-left 0.2s;
  letter-spacing: 1px;
}

.side-menu a:hover {
  color: #fed501;
  padding-left: 0.6rem;
  border-bottom-color: #fed501;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1500;
  display: none;
  backdrop-filter: blur(2px);
}

.menu-overlay.active {
  display: block;
}

/* MAIN CONTENT */
.goblin-card {
  max-width: 860px;
  width: 100%;
  margin: 100px auto 2rem;
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid #2a2a2a;
  border-radius: 3rem 1rem 3rem 1rem;
  padding: 2rem 2rem 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  position: relative;
  z-index: 1;
}

.goblin-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.after-content {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.after-content.visible {
  display: flex;
}

.after-content h2 {
  font-family: 'New Rocker', cursive;
  font-size: 2.2rem;
  color: #fed501;
  border-bottom: 2px dashed #2a2a2a;
  padding-bottom: 0.2rem;
  margin-top: 0.5rem;
}

.after-content h3 {
  font-family: 'New Rocker', cursive;
  font-size: 1.7rem;
  color: #6db26d;
  margin-top: 0.8rem;
}

.after-content h4 {
  font-family: 'New Rocker', cursive;
  font-size: 1.4rem;
  color: #5a9e5a;
}

.after-content h5 {
  font-family: 'New Rocker', cursive;
  font-size: 1.2rem;
  color: #4a8a4a;
}

.after-content p {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #d0c8c0;
  padding: 0.4rem 0;
}

.after-content ol,
.after-content ul {
  font-family: 'Merriweather', serif;
  padding-left: 1.8rem;
  margin: 0.2rem 0 0.8rem;
  color: #c8c0b8;
}

.after-content li {
  margin-bottom: 0.4rem;
}

.after-content ul {
  list-style-type: square;
}

.after-content ol {
  list-style-type: decimal;
}

.after-content .goblin-quote {
  font-family: 'Merriweather', serif;
  font-style: italic;
  background: rgba(0,0,0,0.2);
  padding: 0.8rem 1.2rem;
  border-radius: 30px 8px 30px 8px;
  border-left: 3px solid #6db26d;
  color: #d0c8c0;
  margin: 0.5rem 0;
}

/* Docs page specific */
.docs-content h1 {
  font-family: 'UnifrakturCook', cursive;
  font-size: 3rem;
  color: #fed501;
  margin-bottom: 0.5rem;
  border-bottom: none;
}

.docs-content p {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  line-height: 1.8;
  color: #d0c8c0;
  padding: 0.4rem 0;
}

.docs-content ul, .docs-content ol {
  padding-left: 2rem;
  margin: 0.5rem 0 1rem;
}

.docs-content li {
  margin-bottom: 0.4rem;
}

/* ACCENT COLOR - #6db26d for certain elements */
.side-menu a:focus,
.side-menu a:active {
  color: #6db26d;
}

.enter-btn:focus {
  outline: 2px solid #6db26d;
}

/* RESPONSIVE */
@media (max-width: 780px) {
  .logo-gif-small {
    width: 54px;
    height: 54px;
  }
  .top-bar {
    padding: 0.4rem 1rem;
  }
}

@media (max-width: 600px) {
  .logo-gif-small {
    width: 44px;
    height: 44px;
  }
  .goblin-card {
    padding: 1.2rem;
    margin: 80px 0.5rem 1.5rem;
  }
  .main-title {
    font-size: 2.6rem;
  }
  .logo-gif {
    width: 160px;
  }
  .side-menu {
    width: 100%;
    max-width: 300px;
  }
  .menu-toggle {
    font-size: 1.5rem;
    min-width: 44px;
    min-height: 44px;
    padding: 0.1rem 0.5rem;
  }
  .docs-content h1 {
    font-size: 2.2rem;
  }
  .docs-content h2 {
    font-size: 1.8rem;
  }
  body.main-page::before {
    opacity: 0.15;
  }
}

/* --- WHITELIST CTA BUTTON --- */
.whitelist-cta {
  text-align: center;
  margin: 2rem 0 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.whitelist-cta .cta-btn {
  display: inline-block;
  font-family: 'New Rocker', cursive;
  background: #fed501;
  color: #141414;
  font-size: 1.4rem;
  padding: 0.8rem 3rem;
  border-radius: 60px 16px 60px 16px;
  text-decoration: none;
  transition: 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 3px;
  border: 2px solid #fed501;
  box-shadow: 0 0 30px rgba(254, 213, 1, 0.1);
}

.whitelist-cta .cta-btn:hover {
  background: transparent;
  color: #fed501;
  transform: scale(1.03);
  box-shadow: 0 0 50px rgba(254, 213, 1, 0.2);
}

.whitelist-cta .cta-btn:active {
  transform: scale(0.97);
}

.whitelist-cta .cta-sub {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.6rem;
}

@media (max-width: 600px) {
  .whitelist-cta .cta-btn {
    font-size: 1.1rem;
    padding: 0.6rem 2rem;
  }
}

/* Bazaar page background - bazaar.png */
body.bazaar-page {
  background: #141414;
  position: relative;
}

body.bazaar-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../imgs/bazaar.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

body.grotto-page {
  background: #141414;
  position: relative;
}

body.grotto-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../imgs/grotto.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

body.counting-house-page {
  background: #141414;
  position: relative;
}

body.counting-house-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../imgs/bank.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}

body.kobold-cache-page {
  background: #141414;
  position: relative;
}

body.kobold-cache-page::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../imgs/grotto.png') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
}