/* ==================== COLORS ==================== */
:root {
  --color-font-light: #44ffe9;
  --color-accent-light: #ffda0a;
  --color-accent: #ddaa03;
  --color-accent-dark: #fac208;
  --color-white: #ffffff;
  --color-smoke: #1b1b1b;
}

/* ==================== BASE STYLES ==================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: clamp(14px, 0.6vw + 12px, 16px); }
html, body { height: 100%; }

body {
  overflow-x: hidden;
  font-family: "Audiowide", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  color: var(--color-white);
  background: #000;
  max-width: 100%;
  display: flex;            /* sticky footer */
  flex-direction: column;   /* sticky footer */
}

main { flex: 1; }           /* sticky footer */

.bg-cover {
  position: fixed;
  top: 0; left: 0;
  width: 100%; min-height: 100%;
  filter: brightness(15%) contrast(90%);
  object-fit: cover;
  z-index: -1;
}

/* ==================== HEADER ==================== */
header {
  display: flex; align-items: center; justify-content: space-evenly;
  background-color: var(--color-smoke);
  width: 100%; height: 5.8rem; transition: background-color 0.3s ease; position: relative;
}

.nav_logo { height: clamp(3rem, 4vw, 4.5rem); z-index: 100; padding-left: 1rem; }

nav { display: flex; justify-content: flex-end; align-items: center; flex: 1; }

.nav-links {
  list-style: none; display: flex; flex-direction: row;
  background-color: var(--color-smoke); align-items: center; width: auto;
}
nav ul li { display: flex; justify-content: space-between; }

.nav-links li a {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 2rem; text-decoration: none; color: var(--color-accent);
  font-weight: bold; font-size: 1.8rem; transition: transform 0.3s ease, color 0.3s ease; position: relative;
}
.nav-links li a:hover { color: var(--color-accent-light); transform: scale(1.2); }

.nav-links li a.active { color: var(--color-accent-light); position: relative; }
.nav-links li a.active::after {
  content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; background: var(--color-accent-light); border-radius: 2px;
}

/* ==================== HAMBURGER ==================== */
.hamburger {
  display: none; position: absolute; top: 1rem; right: 2.5rem;
  flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; z-index: 101; width: 2.7rem; height: 2.1rem; background: transparent; border: 0;
}
.hamburger span { height: 4px; width: 2.7rem; background: var(--color-accent); margin: 3.5px 0; border-radius: 7px; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 12px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(3px, -12px); }

/* ==================== LANDING ==================== */
#landing { display: flex; justify-content: center; align-items: center; margin: 20rem auto 15rem; padding: 1rem 4rem; width: 100%; }

.play_container { display: flex; flex-direction: column; align-items: start; justify-content: center; padding-right: 10rem; gap: 5rem; color: var(--color-accent); }

.play_text { font-size: 6rem; margin-bottom: -3rem; opacity: 0; transform: translateY(-8rem); animation: fadeIn 2s ease forwards; }
.play_p { font-size: 1.8rem; color: var(--color-white); opacity: 0; transform: translateY(-8rem); animation: fadeIn 2s ease forwards; }

@keyframes fadeIn { to { transform: translateY(0rem); opacity: 1; } }

.play_logo { display: flex; width: auto; transition: filter 0.2s ease, transform 0.2s ease; }
.play_container a { font-size: 2rem; text-decoration: none; color: var(--color-accent); }
.play_logo:hover { filter: drop-shadow(5px 5px 15px var(--color-accent-light)); transform: scale(1.02); }
.play_logo:active { filter: drop-shadow(5px 5px 15px var(--color-smoke)); transform: scale(0.95); }

#copy-message { margin-top: -3.5rem; font-size: 1.2rem; color: var(--color-white); text-align: center; transition: color 0.3s ease; }

/* ==================== HERO / COUNTS ==================== */
.hero_img_num_contianer { display: flex; flex-direction: column; align-items: center; }
.main_img { display: flex; align-items: center; justify-content: center; height: 18rem; width: 20rem; animation: bounce 3s ease-in-out infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3rem); } }

.player_count { display: flex; flex-direction: row; justify-content: start; gap: 2rem; padding: 1rem; background-color: rgba(111, 247, 21, 0.02); border-radius: 7px; }
#discordCount, #serverCount { color: var(--color-accent); }
.ser_h, .ser_num, .dis_h, .dis_num { color: var(--color-white); }

/* ==================== WHO WE ARE ==================== */
.who_we_are { display: flex; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; gap: 4rem; padding: 3rem 5rem 2rem; background-color: var(--color-smoke); }
.who_text_container { display: flex; flex-direction: column; align-items: start; justify-content: center; gap: 1.5rem; line-height: 1.8rem; padding: 0 3rem; width: 100%; color: var(--color-white); }
.who_h { font-size: 3rem; padding-bottom: 3rem; line-height: 3rem; }
.who_p { font-size: 1.5rem; }
.who_img_container { display: flex; justify-content: center; width: 100%; }
.who_img { height: 30rem; }
.who_img:hover { transform: translate3d(-10px, -5px, -10px); }

/* ==================== DONOR RANKS ==================== */
.drank_title { padding-top: 3rem; color: var(--color-accent); text-align: center; font-size: 3.5rem; }
.drank_p { padding-top: 1rem; color: var(--color-white); text-align: center; font-size: 1.5rem; width: 50%; margin: 1rem auto; }
.drank_container { display: flex; flex-direction: row; align-items: center; justify-content: space-evenly; margin: 8rem 0; flex-wrap: wrap; gap: 1.2rem; }
.drank { height: 20rem; background-color: rgba(255, 255, 255, 0.1); border-radius: 7px; transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out; }
.drank:hover { transform: scale(1.05); background-color: rgba(255, 255, 255, 0.2); }

/* ==================== VOTE (home showcase) ==================== */
.vote { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10rem; padding: 3rem 3rem; background-color: var(--color-smoke); color: var(--color-white); width: 100%; }
.why_vote { display: flex; flex-direction: column; gap: 2rem; width: 100%; padding-top: 3rem; letter-spacing: 0.2rem; }
.vote_h { font-size: 2.5rem; }
.vote_p { font-size: 1.5rem; }
.vote_worlds { display: flex; align-items: center; justify-content: center; flex-direction: row; gap: 5rem; width: 100%; }
.world_h { padding-bottom: 1rem; color: var(--color-accent); letter-spacing: 0.2rem; }
.vote_pic { height: 8rem; width: 14rem; }
.vote_pic2 { height: 7.7rem; }
.vote_pic, .vote_pic2 { border-radius: 7px; box-shadow: 0.5px 0.5px 10px var(--color-accent-light); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.vote_pic:hover, .vote_pic2:hover { border-radius: 7px; box-shadow: 2px 2px 15px var(--color-accent-light); transform: scale(1.05); }

/* ==================== ISSUES ==================== */
.issue_container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; padding: 5rem 1.5rem; color: var(--color-white); width: 100%;
}
.issue_h2_color { color: var(--color-accent); }

/* 🔧 Discord button – forced styles so it can't regress */
.issue_container .pushable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  min-width: 220px;

  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;

  background: #5865F2;                 /* Discord blurple */
  border-radius: 12px;
  text-decoration: none !important;     /* kill underline overrides */
  box-shadow: 0 6px 0 #23272a, 0 8px 12px rgba(0, 0, 0, 0.4);

  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.issue_container .pushable:hover {
  background: #6d77f7;
  box-shadow: 0 6px 0 #23272a, 0 8px 16px rgba(88, 101, 242, 0.6);
  transform: translateY(-1px);
}
.issue_container .pushable:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #23272a, 0 4px 6px rgba(0, 0, 0, 0.4);
}

/* ==================== FOOTER ==================== */
.foot {
  width: 100%;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding-top: 2.2rem;
  background-color: var(--color-smoke);
  background-image: url(img/bedrock.png);
  filter: brightness(0.6);
  background-size: 8.6rem;

  margin-top: auto;      /* push footer to bottom when content is short */
  min-height: 120px;
  padding-bottom: 2rem;
}
.foot_logo { z-index: 2; height: 3rem; }
.copy_right { z-index: 1; padding: 1rem; color: var(--color-white); }

/* ==================== SUBPAGE: VOTES (cards grid) ==================== */
.subpage-hero { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; justify-content: center; padding: 4rem 1.5rem 2rem; background-color: var(--color-smoke); text-align: center; }
.subpage-title { font-size: 3rem; color: var(--color-accent); }
.subpage-subtitle { font-size: 1.3rem; color: var(--color-white); opacity: 0.9; }

.vote-links { width: 100%; padding: 3rem 2rem 4rem; }
.links-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; max-width: 1200px; margin: 0 auto; }
.vote-card { display: block; text-decoration: none; padding: 1.2rem 1.4rem; border-radius: 10px; background-color: rgba(255,255,255,0.08); box-shadow: 0.5px 0.5px 10px rgba(250,194,8,0.15); transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
.vote-card:hover { transform: translateY(-3px); background-color: rgba(255,255,255,0.12); box-shadow: 2px 2px 16px rgba(250,194,8,0.35); }
.vote-card-title { color: var(--color-accent); font-size: 1.4rem; margin-bottom: 0.4rem; }
.vote-card-url { color: var(--color-white); opacity: 0.9; font-size: 1rem; word-break: break-all; }
.vote-note { max-width: 1200px; margin: 1.5rem auto 0; text-align: center; color: var(--color-white); opacity: 0.8; font-size: 0.95rem; }

/* ==================== ACCESSIBILITY ==================== */
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 1440px) {
  .play_text { font-size: 7rem; } .play_p { font-size: 2rem; }
  .who_img { height: 35rem; } .drank { height: 24rem; }
  .vote_pic, .vote_pic2 { height: 10rem; width: 18rem; }
}

@media (max-width: 1439px) and (min-width: 1024px) {
  .play_text { font-size: 5.5rem; } .play_p { font-size: 1.8rem; }
  .who_img { height: 30rem; } .drank { height: 22rem; }
  .vote_pic, .vote_pic2 { height: 9rem; width: 16rem; }
}

@media (max-width: 1024px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .play_text { font-size: 4.5rem; }
  .who_we_are { flex-direction: column; padding: 3rem 2rem; text-align: center; }
  .drank_container { flex-wrap: wrap; gap: 2rem; }
  .vote { flex-direction: column; gap: 3rem; text-align: center; }
  .links-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 768px) {
  body { -ms-overflow-style: none; scrollbar-width: none; }
  body::-webkit-scrollbar { display: none; }
  .bg-cover { width: 100%; }

  header { width: 100%; justify-content: space-between; padding: 1.2rem; }
  .hamburger { display: flex; }
  header.active .nav_logo { display: none; }

  nav { position: absolute; top: 5rem; left: 0; right: 0; display: block; z-index: 99; }
  nav ul { flex-direction: column; }

  .nav-links {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: center;
    background-color: rgba(27,27,27,0.95); overflow: hidden;
    max-height: 0; opacity: 0; transform: translateY(-15px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease; pointer-events: none;
  }
  .nav-links.active { max-height: 30rem; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links li a { width: 100%; text-align: center; padding: 1rem 2rem; }

  #landing { flex-direction: column; gap: 6rem; margin: 6rem 0; padding-top: 3rem; }
  .play_container { align-items: center; text-align: center; padding: 2rem 1.5rem; gap: 2.5rem; }
  .play_text { font-size: 3.8rem; }
  .play_p, #copy-message { padding-top: 1.5rem; }

  .who_img { height: 22rem; }
  .drank { height: 18rem; }
  .vote_worlds { flex-direction: column; gap: 2.5rem; }

  .links-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 480px) { .links-grid { grid-template-columns: 1fr; } }

@media (max-width: 420px) {
  .play_text { font-size: 3rem; } .play_p { font-size: 1.2rem; }
  .main_img { height: 12rem; width: auto; }
  .who_h { font-size: 2.2rem; line-height: 2.8rem; }
  .who_img { height: 18rem; } .drank { height: 15rem; }
  .vote_pic, .vote_pic2 { width: 12rem; height: auto; }
}

@media (max-width: 360px) {
  .play_text { font-size: 2.5rem; } .play_p { font-size: 1rem; }
  .play_container { gap: 1.5rem; } .vote_h { font-size: 2rem; }
}
