/* ============
   GLOBAL STYLES
   ============ */

/* Gradient background for the entire page */

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, 'Noto Sans', Arial, sans-serif;
  font-style: normal;
  font-size: 1.1em;
  color: #fff;
  background: linear-gradient(to bottom, #080C11, #273B54); /* dark blue to light blue */
  line-height: 1.6;
}

h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: 2.5em;
  font-weight: 900;
  border-bottom: 2px solid #fff;
  padding-bottom: 0.4rem;
  margin-bottom: 3rem;
}

h2 {
  margin-top: 2rem;
  font-size: 1.75rem;
}

.underlined-header {
    border-bottom: 2px solid #fff;
}

ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

p {
  margin: 0.75rem 0;
}

/* ============
   HEADER
   ============ */

header {
  display: flex;
  justify-content: space-between; /* logo left, nav right */
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid #080C11;
  background-color: #080C11;
  position: sticky;
  top: 0;
  z-index: 10;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

header .logo img {
  height: 32px;
  width: auto;
}

/* nav stays on right side */
header nav {
  display: flex;
  align-items: center;
  gap: 3rem; /* space between Home and Group links */
}

/* push user info / login button to the right of Home/Group */
header nav .user-info,
header nav .login-button {
  margin-left: auto; /* pushes these elements to the far right */
  display: inline-flex;
  align-items: center;
  gap: 0.6rem; /* space between avatar, username, and logout button */
}

header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

header nav a:hover {
  text-decoration: underline;
}

/* ============
   FOOTER
   ============ */
footer {
  margin-top: 3rem;
  padding: 1rem;
  border-top: 1px solid #ddd;
  color: #fff;
  font-size: 0.9rem;
  text-align: center;
}

footer a {
  color: #fff;
  margin: 0 0.75rem;
}

footer a:hover {
  text-decoration: underline;
}

/* ============
   MAIN CONTENT
   ============ */
main {
  padding: 2rem 1rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

section {
  margin-bottom: 4rem;
  text-align: left;
}

.meta {
  color: #666;
  font-size: 0.95em;
  margin-bottom: 1rem;
}

/* ============
   BUTTONS
   ============ */
.game-links {
  margin: 1.5rem 0;
}

.game-links a {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  background-color: #5c5c5c;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}

.game-links a:hover {
  background-color: #444;
}

.community-links {
  display: flex;           /* place buttons in a row */
  gap: 1rem;               /* space between buttons */
  justify-content: left; /* center buttons horizontally */
  flex-wrap: wrap;         /* wrap if screen too small */
}

.community-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: #5865F2; /* Discord blurple */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 1rem;      /* compact padding */
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 225px;        /* shrink to fit content + padding */
  justify-content: center;
}

.community-links a:hover {
  background-color: #4752C4;
  transform: translateY(-2px);
}

.discord-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: currentColor;
}

.login-section {
  text-align: center;
  margin-top: 4rem;
}

.discord-login-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: #5865F2;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.discord-login-button:hover {
  background-color: #4752C4;
  transform: translateY(-2px);
}

.oauth-success {
  text-align: center;
  padding: 10vh 2rem;
}

.oauth-success h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.oauth-success p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #eee;
}

.roblox-link-btn {
  background-color: #00A2FF;
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.6rem;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.roblox-link-btn:hover {
  background-color: #0088cc;
}

.user-info {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logout-button,
.login-button {
  background-color: #5865F2;
  color: white;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

.logout-button:hover,
.login-button:hover {
  background-color: #4752C4;
}

/* ============
   IMAGES
   ============ */

.user-info .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #5865F2; /* Discord blurple border */
}

.main-logo {
  display: block;
  margin: 1.5rem auto; /* centers the logo and adds space above/below */
  max-width: 300px; /* adjust size as needed */
  height: auto;
}

.oauth-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 1rem auto; /* centers it */
  border: 2px solid #5865F2;
}

/* ============
   RESPONSIVE DESIGN
   ============ */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 0.5rem;
  }

  header nav a {
    margin-left: 0.75rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  .game-links a {
    width: 90%;
    margin: 0.4rem auto;
  }

  main {
    text-align: left;
  }
}

.mistie-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem; /* space between image and text */
  margin-top: 1rem;
}

.mistie-container img {
  max-width: 225px;
  height: 225px;              /* ensure square shape for circle */
  border-radius: 50%;         /* circular frame */
  object-fit: cover;          /* crop neatly inside the circle */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3); /* subtle shadow */
  flex-shrink: 0;             /* prevent image from shrinking */
  margin-top: 0.5rem;
}

.mistie-text {
  flex: 1; /* text takes remaining space */
}


/* Responsive: stack on small screens */
@media (max-width: 600px) {
  .mistie-container {
    flex-direction: column;
    align-items: center;
  }

  .mistie-container img {
    margin-bottom: 1rem;
  }

  .mistie-text {
    text-align: left;
  }
}
