/* ===============================
   FONTS
================================ */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600&family=Questrial&display=swap');

/* ===============================
   BASE THEME VARIABLES
================================ */
:root {
  /* Fonts */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Questrial', sans-serif;

  /* Colors */
  --accent-color: #ff871e;
  --primary-color: #1E90FF;

  /* Light Theme */
  --bg-color: #ffffff;
  --text-color: #000000;
  --card-bg: #f5f5f5;
  --nav-bg: #000000;
  --nav-text: #ffffff;
}

/* DARK MODE (system preference) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #0e0e0e;
    --text-color: #f5f5f5;
    --card-bg: #1a1a1a;
    --nav-bg: #ffffff;
    --nav-text: #000000;
  }
}

/* USER OVERRIDES */
/* Light */
[data-theme="light"] {
  --bg-color: #ffffff;
  --text-color: #000000;
  --card-bg: #f5f5f5;
  --nav-bg: #000000;
  --nav-text: #ffffff;
}

/* Dark */
[data-theme="dark"] {
  --bg-color: #0e0e0e;
  --text-color: #f5f5f5;
  --card-bg: #1a1a1a;
  --nav-bg: #ffffff;
  --nav-text: #000000;
}

/* Default light mode image */
.theme-icon {
  content: url('/leagues/images/social-media/tiktok.svg');
}

/* Dark mode: swap to white version */
html[data-theme="dark"] .theme-icon {
  content: url('/leagues/images/social-media/tiktok-white.svg');
}

/* ===============================
   GLOBAL STYLES
================================ */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

main {
  flex: 1; /* Take up all remaining space between header and footer */
}

body.with-hero {
  /*background-image:
    linear-gradient(to bottom, rgba(30, 144, 255, 0.9), rgba(30, 144, 255, 0)),
    url('/leagues/images/CFB26-hero.png');*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* ===============================
   HEADER / NAVBAR
================================ */
.top {
  position: relative;
  height: 2px;
  background: linear-gradient(141deg, #1e90ff 10%, #1583b3 30%, #c7eeff 50%, #ff871e 70%, #b35f15 90%);
}
.top-bottom {
  position: relative;
  height: 1px;
  background: linear-gradient(141deg, #1e90ff 10%, #1583b3 30%, #c7eeff 50%, #ff871e 70%, #b35f15 90%);
}

.site-header {
  /*background-color: var(--nav-bg);*/
  /*color: var(--nav-text);*/
  background-color: #000000;
  color: #FFFFFF;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none; /* Keep clean */
  padding: 0.5rem 0; /* reduce vertical padding from 1rem to 0.5rem */
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  /*background-color: var(--nav-bg);*/
  /*color: var(--nav-text);*/
  background-color: #000000;
  color: #FFFFFF;
  padding: 1rem 0;
  position: sticky;
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  top: 0;
  z-index: 1000;
  box-shadow: none; /* Keep clean */
  padding: 0.5rem 0; /* reduce vertical padding from 1rem to 0.5rem */
}

/* Logo */
.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem; /* down from 1.5rem */
  color: var(--accent-color);
  cursor: pointer;
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem; /* a bit tighter spacing */
  align-items: center;
  margin: 0;
  padding: 0;
  text-transform: uppercase;
}

.nav-links a {
  /*color: var(--nav-text);*/
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  font-size: 0.9rem; /* slightly smaller */
  line-height: 1.4;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--accent-color);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme toggle button */
.btn-theme-toggle {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--nav-text);
  transition: color 0.2s ease;
}

.btn-theme-toggle:hover {
  color: var(--accent-color);
}

/* Login button */
.btn-login {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-login:hover,
.btn-login:focus {
  background-color: #cc6e16;
}

/* Hamburger menu button */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 25px;
  height: 18px;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background-color: var(--nav-text);
  border-radius: 2px;
}
.username-header {
  font-family: "Oswald";
  font-weight: normal;
  text-decoration: none;
  color: inherit;
}
/* ===============================
   MAIN / HERO
================================ */
main.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  /*background: linear-gradient(to right, var(--nav-bg), var(--primary-color));*/
  color: var(--white);
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/*.hero {
  position: relative;
  height: 100vh; 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
}*/
.hero {
  height: 100vh;            /* Full viewport height */
  display: flex;
  flex-direction: column;
  justify-content: center;  /* Vertically center content */
  align-items: center;      /* Horizontally center content */
  position: relative;
  z-index: 10;              /* Make sure it’s above the video */
  padding: 1rem;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background-color: #0c7ae0;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    background-color: var(--nav-bg);
    position: absolute;
    top: 60px;
    right: 0;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1001;
  }
  .nav-toggle {
    display: flex;
  }
}

.discord-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #5865F2; /* Discord blurple */
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 10px rgba(88, 101, 242, 0.3);
}
/* ===============================
   DISCORD
================================ */
.discord-login-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1); /* Makes logo white */
}

.discord-login-btn:hover {
  background-color: #4752C4;
}

/* Ensure avatar container aligns items horizontally and vertically */
.user-info {
  display: flex;
  align-items: center;
  gap: 8px; /* space between avatar and username */
}

/* Force avatar size and shape */
.user-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  border: 1px solid #FFFFFF; /* Accent color border */
  /*border: 1px solid var(--bg-color); /* Accent color border */
  box-sizing: border-box;    /* Ensure border included in size */
}

/* ===============================
   YOUTUBE BACKGROUND
================================ */

.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none; /* prevent interaction with iframe */
}

.video-background iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100vw;
  min-height: 100vh;
  width: 177.78vh; /* aspect ratio width for 100vh height */
  height: 56.25vw; /* aspect ratio height for 100vw width */
}

@media (max-aspect-ratio: 16/9) {
  .video-foreground {
    width: 100vw;
    height: 56.25vw; /* 100vw * (9 / 16) */
  }
}
 
.video-foreground iframe {
  width: 100%;
  height: 100%;
  pointer-events: none; /* Optional: prevent interactions */
}

/* ===============================
   SCROLL MAIN PAGE
================================ */
.scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: white;
  text-decoration: none;
  animation: bounce 2s infinite;
  z-index: 10;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
/* ===============================
   SOCIAL ICONS / HERO INDEX
================================ */
.icon-white path {
  /*fill: white;*/
  filter: brightness(0) invert(1); /* ensures white icon */
  transition: filter 0.3s ease, transform 0.3s ease;
}
.icon-white:hover {
  filter: brightness(0) invert(0.4) sepia(1) saturate(5) hue-rotate(180deg); /* approx DodgerBlue */
  transform: translateY(5px);
}

.hero-content {
  text-align: center;
}

.social-links-container {
  margin-top: 1.5rem;
}

.social-links-container a {
  margin: 0 20px;
  color: white;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-links-container a:hover {
  color: #1DA1F2; /* Twitter blue hover */
}

.video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6); /* adjust opacity here */
  z-index: 1;
}

.game-covers {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.game-cover {
  height: 180px; /* fixed height */
  width: auto; /* maintain aspect ratio */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.game-cover:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(30,144,255,0.7); /* DodgerBlue shadow */
}

/* ===============================
   ACCOUNT SELECTOR
================================ */
.account-select-btn {
    background-color: #1e90ff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.account-select-btn:hover {
    background-color: #1c86ee;
    transform: translateY(-1px);
}

.account-select-btn:active {
    transform: translateY(0);
    background-color: #1a7fd6;
}

/* ===============================
   INPUT FORMS
================================ */
/* Form container */
.readonly {
  background-color: #f1f1f1;
  color: #888;
  cursor: not-allowed;
}
main.container {
  /*max-width: 480px;*/
  max-width: 1200px;
  margin: 2rem auto;
  /*background: var(--card-bg);*/
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  font-family: var(--font-body);
}

/* Headings */
h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
}

/* Flash message */
.flash-message {
  background-color: #e6ffed;
  border: 1px solid #a3dca6;
  color: #3a7d44;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(58, 125, 68, 0.2);
}

/* Form layout */
form.profile-form {
  display: flex;
  flex-direction: column;
  /*gap: 1.4rem;*/
  gap: 0.8rem;
}

/* Labels */
label {
  font-weight: 600;
  color: var(--text-color);
  /*margin-bottom: 0.4rem;*/
  margin-bottom: -0.75rem; /* was 0.4rem */
  /*margin-bottom: 0.25rem; /* was 0.4rem */
  display: block;
  /*font-size: 1.05rem;*/
  font-size: -0.75rem;
}

/* Inputs & textarea & select */
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.8px solid #ccc;
  border-radius: 12px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.05);
  appearance: none; /* for select */
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Remove default arrow on select (some browsers) */
select::-ms-expand {
  display: none;
}

/* Focus states */
input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(30, 144, 255, 0.5);
  background-color: var(--bg-color);
}

/* Placeholder text */
textarea::placeholder {
  font-style: italic;
  color: #999;
}

/* Textarea specific */
textarea {
  resize: vertical;
  min-height: 110px;
}

/* Select arrow styling */
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-color) 50%),
    linear-gradient(135deg, var(--text-color) 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 25px) 1em;
  background-size: 5px 5px, 5px 5px, 1px 1px;
  background-repeat: no-repeat;
  padding-right: 2.75rem; /* space for arrow */
  cursor: pointer;
}

/* Submit button */
button.btn {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 0.85rem 0;
  font-size: 1.15rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.25s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

button.btn:hover,
button.btn:focus {
  background-color: #1769d1;
  box-shadow: 0 6px 18px rgba(23, 105, 209, 0.6);
  outline: none;
}

/* Responsive tweaks if needed */
@media (max-width: 480px) {
  main.container {
    padding: 1.5rem 1.75rem;
  }
}

.social-input-wrapper {
  position: relative;
  width: 100%;
}

.social-input-wrapper svg,
.social-input-wrapper img {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  pointer-events: none;
  fill: var(--primary-color); /* if inline SVG */
}

.social-input-wrapper input[type="text"],
.social-input-wrapper input[type="url"] {
  padding-left: 44px; /* or maybe increase to 50px if needed */
}

.profile-form {
  display: grid;
  gap: 1rem;
}


