/* ===== Custom Minecraft Font ===== */
@font-face {
  font-family: 'Minecraft';
  src: url('minecraft.ttf') format('truetype');
}

/* ===== Global Styles ===== */
html {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  font-family: 'Minecraft', sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  background-color: #0a0a0a;
  color: #fff;
}

/* ===== Sticky Header ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 2rem;
  background-color: #1a1a1a;
  border-bottom: 2px solid #b10000;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


header h1 {
  color: #b10000;
  font-size: 1.5rem;
  margin: 0;
  white-space: nowrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 1rem;
  line-height: 56px;
  font-size: 1.32rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff0000;
}

/* ===== Sticky Footer ===== */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1a1a;
  border-top: 2px solid #b10000;
  color: #fff;
}

/* ===== Scroll Container ===== */
.sections-container {
  padding: 0;
}

/* ===== Sections ===== */
.snap-section {
  min-height: 100vh;
  padding: 85px 20px 51px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

/* Layout wrapper inside each section */
.section-scroll-area {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
}

/* ===== Section Backgrounds ===== */
.hero {
  position: relative;
  width: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 70%, #0a0a0a 100%),
              url('https://cdn.discordapp.com/discovery-splashes/1287998374888603690/e386cb2bf34c2aec12c645ea138db20b.jpg?size=512') no-repeat center center;
  background-size: cover;
  text-align: center;
  justify-content: center;
}

.hero .section-scroll-area { justify-content: center; }

.about { background: linear-gradient(to bottom, #0a0a0a, #1a0000); }
.about p { text-align: center; line-height: 2; }
.events { background: linear-gradient(to bottom, #1a0000, #3a0000); }
.videos { background: linear-gradient(to bottom, #3a0000, #1a0000); }
.socials { background: linear-gradient(to bottom, #1a0000, #0a0a0a); }
.partners { background-color: #0a0a0a; padding-bottom: calc(63px + 3.17rem); }

.partners .section-scroll-area {
  flex: 0 0 auto;
}

.partners-inquiry {
  text-align: center;
  color: #aaa;
  font-size: 1rem;
  width: 90%;
  max-width: 600px;
  margin-top: auto;
  margin-bottom: 0;
}

/* ===== Section Titles & Text ===== */
.snap-section h2 {
  font-size: 3.6rem;
  color: #fff;
  margin-bottom: 1rem;
}

.snap-section p {
  font-size: 1.2rem;
  color: #fff;
  max-width: 800px;
  width: 100%;
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.hero h2 { color: #b10000; font-size: 4rem; }
.hero p { font-size: 1.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  margin: 1rem 0.5rem;
  background-color: #b10000;
  color: #fff;
  font-size: 1.25rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.3s, transform 0.3s;
}

.btn:hover {
  background-color: #ff0000;
  transform: scale(1.05);
}

/* ===== Event Cards ===== */
.event-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.event-card {
  background-color: #1a0000;
  border: 2px solid #b10000;
  border-radius: 12px;
  padding: 1.5rem 3rem 1rem;
  width: fit-content;
  transition: transform 0.3s, box-shadow 0.3s;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px #b10000;
}

.event-card h3 { color: #ff0000; font-size: 2.25rem; margin: 0; text-wrap: balance; text-align: center; }
.event-card p { font-size: 1.73rem; color: #fff; text-align: center; margin: 0.5rem 0 0; }

/* ===== Event Calendar ===== */
.event-calendar {
  width: 100%;
  max-width: 990px;
  margin: 1.5rem auto;
  background: #080808;
  border: 2px solid #b10000;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  background: #1a0000;
}

.cal-title {
  font-size: 1.2rem;
  color: #fff;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.cal-nav {
  background: none;
  border: none;
  color: #ff0000;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.4rem;
  transition: color 0.2s;
}

.cal-nav:hover { color: #fff; }

.cal-day-names {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #2a0000;
  border-top: 1px solid #2a0000;
  flex-shrink: 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  gap: 1px;
  background: #2a0000;
  border-top: 1px solid #2a0000;
  flex: 1;
}

.cal-day-name {
  background: #110000;
  color: #b10000;
  text-align: center;
  padding: 0.45rem 0;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-cell {
  background: #0d0d0d;
  padding: 0.4rem 0.3rem;
  position: relative;
}

.cal-cell.empty { background: #080808; }

.cal-cell.today { outline: 1px solid #b10000; outline-offset: -2px; }

.cal-cell.has-event { background: #1a0000; }

.cal-cell.has-event:hover { background: #250000; }

.cal-day-num {
  display: block;
  font-size: 0.85rem;
  color: #ccc;
}

.cal-cell.today .cal-day-num { color: #ff4444; font-weight: bold; }

.cal-event-dot {
  display: block;
  width: 5px;
  height: 5px;
  background: #ff0000;
  border-radius: 50%;
  margin: 3px 0 2px;
}

.cal-event-label {
  font-size: 0.995rem;
  color: #ff8888;
  line-height: 1.3;
  word-break: break-word;
  white-space: normal;
  text-align: center;
}


/* ===== Auto-Scrolling Strips ===== */
.events {
  padding-bottom: 0;
}

.auto-scroll-wrapper {
  width: 95%;
  height: 300px;
  overflow: hidden;
  margin: 1rem auto 0;
  position: relative;
  padding: 15px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.auto-scroll-track {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  height: 100%;
  transform: translateX(0);
  box-sizing: border-box;
}

.auto-scroll-track img {
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
  border: 2px solid #b10000;
  border-radius: 10px;
  transition: transform 0.3s;
}

.auto-scroll-track img:hover { box-shadow: 0 0 15px #b10000; }

/* ===== Partner Logo ===== */
.partner-logo {
  max-width: 200px;
  margin-top: 1rem;
}

/* ===== Event Main Row (calendar + cards) ===== */
.event-main-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  width: 90%;
  max-width: 1800px;
  margin: 2rem auto 0;
}

.event-main-row .event-calendar {
  flex: 1 1 630px;
  max-width: 990px;
  min-height: 675px;
  margin: 0;
}

.event-main-row .event-cards {
  flex: 0 1 810px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-content: start;
  gap: 1.5rem;
}

.event-main-row .event-card {
  box-sizing: border-box;
  padding: 1.8rem 1.8rem 1.5rem;
  width: auto;
}

.event-card-img {
  width: 100%;
  display: block;
  margin-top: 1.1rem;
  border-radius: 8px;
  object-fit: cover;
  max-height: 195px;
}


/* ===== Discord Card ===== */
.discord-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 330px;
  height: 500px;
  background: linear-gradient(135deg, #1a0000, #000);
  border: 2px solid #b10000;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.discord-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #b10000;
}

.dc-content {
  text-align: center;
  padding: 1rem;
}

.dc-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #ff0000;
}

.dc-content p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.dc-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #b10000;
  border-radius: 6px;
  transition: background 0.3s;
}

.dc-button:hover { background-color: #ff0000; }

/* ===== Social Media Widgets ===== */
.social-widgets {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap; /* stacks on smaller screens */
}

/* TikTok card */
.tiktok-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 330px;
  height: 500px;
  background: linear-gradient(135deg, #1a0000, #000);
  border: 2px solid #b10000;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tiktok-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #b10000;
}

.tt-content {
  text-align: center;
  padding: 1rem;
}

.tt-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #ff0000;
}

.tt-content p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.tt-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #b10000;
  border-radius: 6px;
  transition: background 0.3s;
}

.tt-button:hover { background-color: #ff0000; }

/* YouTube card */
.youtube-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 330px;
  height: 500px;
  background: linear-gradient(135deg, #1a0000, #000);
  border: 2px solid #b10000;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s, box-shadow 0.3s;
}

.youtube-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #b10000;
}

.yt-content {
  text-align: center;
  padding: 1rem;
}

.yt-content h3 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #ff0000;
}

.yt-content p {
  margin: 0.3rem 0;
  font-size: 1rem;
}

.yt-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  background-color: #b10000;
  border-radius: 6px;
  transition: background 0.3s;
}

.yt-button:hover { background-color: #ff0000; }

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 100;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 80vw;
  max-height: 80vh;
  border: 2px solid #b10000;
  border-radius: 10px;
  object-fit: contain;
  cursor: default;
  box-shadow: 0 0 40px rgba(177, 0, 0, 0.4);
}

/* ===== Video Display ===== */
.video-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.video-display .video-thumb {
  width: 728px;
  height: 410px;
  max-width: 90vw;
  max-height: 50vh;
}

/* ===== Video Thumbnails ===== */
.video-thumb {
  position: relative;
  height: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #b10000;
  cursor: pointer;
  transition: box-shadow 0.3s, transform 0.3s;
  box-sizing: border-box;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-thumb:hover {
  box-shadow: 0 0 15px #b10000;
  transform: scale(1.03);
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s;
}

.video-thumb:hover .play-overlay { opacity: 1; }

/* ===== Coming Soon Box ===== */
.coming-soon-box {
  display: none;
  width: 300px;
  height: 180px;
  align-items: center;
  justify-content: center;
  border: 2px solid #b10000;
  border-radius: 12px;
  color: #fff;
  font-size: 1.4rem;
  background: linear-gradient(135deg, #1a0000, #000);
  margin: 2rem auto;
}

/* ===== Video Lightbox ===== */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.video-lightbox.active { display: flex; }

.video-lightbox-inner {
  width: 80vw;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  cursor: default;
}

.video-lightbox-inner iframe {
  width: 100%;
  height: 100%;
  border: 2px solid #b10000;
  border-radius: 8px;
}

/* ===== Smooth Scroll ===== */
html { scroll-behavior: smooth; }

/* ===== Responsive — Tablet ===== */
@media (max-width: 900px) {
  header h1 { font-size: 1.2rem; }
  .logo-container .logo { height: 30px; }
  nav a { margin-left: 0.6rem; font-size: 0.85rem; }
  .snap-section h2 { font-size: 2.6rem; }

  /* Events — stack calendar above cards */
  .event-main-row { flex-direction: column; align-items: center; gap: 1.5rem; }
  .event-main-row .event-calendar,
  .event-main-row .event-cards { width: 95%; flex: none; }
  .event-main-row .event-calendar { min-height: auto; }
  .event-main-row .event-cards { grid-template-columns: repeat(2, 1fr); }
  .event-card { box-sizing: border-box; padding: 1.2rem 1rem 1rem; }
  .event-card h3 { font-size: 1.6rem; }
  .event-card p { font-size: 1.2rem; }
  .event-card-img { max-height: 150px; }
  .cal-event-label { font-size: 0.8rem; }

  .social-widgets { flex-direction: column; align-items: center; }
  .tiktok-card, .youtube-card, .discord-card { width: 90%; }
  .auto-scroll-wrapper { height: 220px; }
  .btn { font-size: 1.1rem; }
}

/* ===== Responsive — Mobile ===== */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 0.6rem 1rem;
    gap: 0.3rem;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-bottom: 0.4rem;
  }

  nav a {
    line-height: normal;
    margin: 0.2rem 0.3rem;
    font-size: 0.7rem;
  }

  .snap-section {
    padding: 120px 15px 10px;
    min-height: 100vh;
  }

  .partners {
    padding-bottom: calc(63px + 3.17rem);
  }

  .events,
  .socials {
    height: 100vh;
    overflow: hidden;
  }

  .events .section-scroll-area,
  .socials .section-scroll-area {
    overflow-y: auto;
    min-height: 0;
  }

  .snap-section h2 { font-size: 1.8rem; }
  .snap-section p { font-size: 1rem; margin-bottom: 1rem; }
  .hero h2 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn {
    width: 75%;
    text-align: center;
    margin: 0.3rem 0;
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  .auto-scroll-wrapper { height: 150px; }

  /* Events — single column, compact calendar */
  .event-main-row { width: 98%; margin: 1rem auto 0; gap: 1rem; }
  .event-main-row .event-calendar,
  .event-main-row .event-cards { width: 100%; }
  .event-main-row .event-calendar { min-height: auto; }
  .event-main-row .event-cards { grid-template-columns: 1fr; }
  .event-card { width: 100%; box-sizing: border-box; padding: 1rem; }
  .event-card h3 { font-size: 1.2rem; }
  .event-card p { font-size: 1rem; }
  .event-card-img { max-height: 120px; }
  .cal-title { font-size: 1rem; }
  .cal-day-name { font-size: 0.6rem; padding: 0.3rem 0; }
  .cal-day-num { font-size: 0.72rem; }
  .cal-event-label { font-size: 0.6rem; }
  .cal-event-dot { width: 4px; height: 4px; }


  .tiktok-card, .youtube-card, .discord-card { width: 95%; height: 400px; }
  .yt-content h3, .tt-content h3, .dc-content h3 { font-size: 1.3rem; }

  footer { font-size: 0.8rem; }
}