/* General Page Styles */
:root {
  --font-display: 'Valorant', 'Rajdhani', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Rajdhani', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-accent: 'Valorant', 'Rajdhani', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Tungsten', 'Rajdhani', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-text: 'DINNext', 'Rajdhani', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg: #111;             /* base background */
  --bg-accent: #ff4655;   /* valorant red */
  --txt: #ece8e1;         /* off-white text */
  --border: #ff4655;      /* border color */
  --spin-button-width: 300px;
}

@font-face {
  font-family: 'Valorant';
  src: url('assets/fonts/valorant.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DINNext';
  src: url('assets/fonts/din-next.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'FFMark';
  src: url('assets/fonts/ff-mark.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tungsten';
  src: url('assets/fonts/tungsten-bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html,
body {
  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: var(--font-body);
  text-align: center;
  /* Subtle Valorant-style gradient background */
  background:
    radial-gradient(circle at top left, rgba(255, 70, 85, 0.18), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 70, 85, 0.12), transparent 55%),
    radial-gradient(circle at top right, rgba(236, 232, 225, 0.08), transparent 50%),
    var(--bg);
  background-size: 160% 160%, 180% 180%, 140% 140%, auto;
  background-position:
    0% 0%,
    100% 100%,
    50% 0%,
    center;
  animation: va-app-bg-shift 16s ease-in-out infinite alternate;

  color: var(--txt);
  margin: 0;
  display: flex;
  flex-direction: column;
}

body.team-feed-visible {
  overflow-y: hidden;
}

@keyframes va-app-bg-shift {
  0% {
    background-position:
      0% 0%,
      100% 100%,
      50% 0%,
      center;
    background-size:
      145% 145%,
      165% 165%,
      125% 125%,
      auto;
  }
  50% {
    background-position:
      20% 10%,
      80% 90%,
      55% 5%,
      center;
    background-size:
      185% 185%,
      205% 205%,
      155% 155%,
      auto;
  }
  100% {
    background-position:
      40% 20%,
      60% 80%,
      60% 10%,
      center;
    background-size:
      145% 145%,
      165% 165%,
      125% 125%,
      auto;
  }
}

/* Three-column main layout */
.main-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(0, 72px);
  gap: 20px;
  width: 100%;
  min-height: 100vh;
  align-items: flex-start;
  height: auto;
}

.main-col-left,
.main-col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 20px;
  height: 100%;
  position: relative; /* Added for absolute positioning of children */
}

.main-col-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0; /* Prevents flexbox overflow */
  height: 100%;
}

.site-faq {
  max-width: 760px;
  margin: 10vh auto 40px;
  padding: 0 20px;
  color: var(--txt, #ece8e1);
  font-family: var(--font-body);
}

.faq-title {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: #fff;
}

.site-faq details {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 18px;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
}

.site-faq summary {
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.site-faq p {
  margin-top: 10px;
  line-height: 1.5;
  font-size: 16px;
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;

  padding: 10px 20px;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
}

.site-footer-disclaimer {
  max-width: 500px;
  line-height: 1.3;
  align-content: center;
}

#appMain {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-height: 100vh;
  box-sizing: border-box;
  padding: 72px 12px 80px; /* Added bottom padding for footer */
}

#siteIntro {
  max-width: 720px;
  margin: 24px auto 16px;
  padding: 0 16px;
  text-align: center;
}

#siteIntro h1 {
  margin: 0 0 8px;
  font-size: 1.6rem;
  font-weight: 700;
}

#siteIntro p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

label, p, span {
  font-family: var(--font-text);
}

button span {
  font-family: inherit; /* buttons can override this if needed */
}

@media (max-width: 650px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto; /* ✅ allow vertical scrolling on mobile */
  }

  #appMain {
    height: auto;
    padding: 60px 8px 12px; /* a bit tighter padding around content */
  }

  .main-layout {
    grid-template-columns: 1fr;
    align-items: flex-end;
    gap: 0;

    /* 👇 THIS is what you need */
    height: auto;       /* allow content below (FAQ) to extend */
    margin-bottom: 10vh;
    min-height: 80vh;
  }

  .main-col {
    height: unset;
  }

  .main-layout {
    grid-template-columns: 1fr;
    align-items: flex-end;
    gap: 0;
  }
  .main-col-right {
    display: none;
  }
  .main-col-left {
    order: 2;
    justify-content: flex-end;
  }
  .main-col-center {
    order: 1;
    justify-content: flex-end;
  }
  .role-btn { width: 56px; height: 56px; }

  .site-footer {
    font-size: 0.5rem;
  }

  .main-col-left,
  .main-col-right {
    gap: unset;
    padding-right: 20px;
  }

  .site-faq {
    margin: 10vh auto 40px;
    padding: 0 12px;
  }

  .faq-title {
    font-size: 22px;
    line-height: 1.2;
  }

  .site-faq summary {
    font-size: 16px;
  }

  .site-faq p {
    font-size: 14px;
  }
}