/* HFR style.css  v1.2.2  –  2025-01-28 */
/* File: /assets/css/style.css */
/* Description: FIXED dropdown gap issue - now clickable */

:root{
  --orange:#FF6600; --dark:#1A1A1A; --light:#222; --white:#fff; --grey:#ccc;
  --discord:#5865F2; --twitch:#9146FF; --youtube:#FF0000;
  --cap:1250px;
  font-family:'Lato',sans-serif;
}

/* ---------- shared container ---------- */
.container{max-width:var(--cap);margin:0 auto;padding:0 1rem}

/* ---------- fonts ---------- */
@font-face{
  font-family:'CornDemo';
  src:url('../fonts/CornDemo.ttf') format('truetype');
  font-display:swap;
}
h1,h2,h3,h4{font-family:'CornDemo','Lato',sans-serif;color:var(--white)}
body{margin:0;background:var(--light);color:var(--grey);line-height:1.5}

/* ================================================= NAV */
.site-nav{background:var(--dark);position:sticky;top:0;z-index:1000}
.nav-container{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;max-width:var(--cap);margin:0 auto}
.brand img{height:80px}

/* Mobile logo size fix */
@media (max-width: 768px) {
  .brand img {
    height: 50px;
  }
  
  .nav-container {
    padding: 0.5rem;
  }
}

.main-nav a{margin:0 .75rem;color:var(--white);text-decoration:none;transition:color .2s}
.main-nav a:hover{color:var(--orange)}
.button-join{padding:.4rem .9rem;background:var(--orange);border-radius:4px}

/* ================================================= RACING DROPDOWN - GAP FIXED */
.nav-dropdown {
  position: relative;
  display: inline-block;
  margin: 0 .75rem;
}

.nav-dropdown-toggle {
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
  cursor: pointer;
  padding: 0.5rem 0;
  background: none;
  border: none;
  font-size: inherit;
  font-family: inherit;
}

.nav-dropdown-toggle:hover {
  color: var(--orange);
}

.dropdown-arrow {
  font-size: 0.7rem;
  margin-left: 0.3rem;
  transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu - NO GAP */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark);
  border: 1px solid #444;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  min-width: 150px;
  z-index: 1000;
  display: none !important;
  margin-top: -2px;
  padding-top: 10px;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block !important;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid #333;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
  margin: 0;
}

.nav-dropdown-menu a:first-child {
  border-radius: 6px 6px 0 0;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.nav-dropdown-menu a:hover {
  background-color: #333;
  color: var(--orange);
}

/* ================================================= MOBILE MENU */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 0.5rem;
  margin-left: auto;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
  display: flex;
  align-items: center;
}

.close-menu {
  display: none;
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
}

.menu-overlay.open {
  display: block;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active {
    z-index: 1001;
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--dark);
    padding: 1rem 0;
    gap: 0;
    z-index: 1000;
    align-items: stretch;
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .main-nav.open {
    right: 0;
  }

  .close-menu {
    display: block;
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    margin: 0;
    width: auto;
    line-height: 1;
  }

  .close-menu:hover {
    color: var(--orange);
  }

  .main-nav a {
    margin: 0;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #333;
    display: block;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .vote-link {
    color: #FF6600 !important;
    font-weight: bold;
  }

  /* Mobile Dropdown */
  .nav-dropdown {
    margin: 0;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #333;
  }

  .nav-dropdown:last-child {
    border-bottom: none;
  }

  .nav-dropdown-toggle {
    margin: 0;
    padding: 0.75rem 1.5rem;
    border-bottom: none;
    text-align: left;
    cursor: pointer;
  }

  .nav-dropdown-toggle:hover {
    background-color: rgba(255, 102, 0, 0.1);
  }

  .dropdown-arrow {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    background: #111;
    border: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    top: auto;
  }

  .nav-dropdown-menu.visible {
    display: flex;
    flex-direction: column;
  }

  .nav-dropdown-menu a {
    padding: 0.5rem 1.5rem 0.5rem 3rem;
    margin: 0;
    border-bottom: 1px solid #333;
    font-size: 0.95rem;
    text-align: left;
  }

  .nav-dropdown-menu a:last-child {
    border-bottom: none;
  }
}

/* ================================================= HERO - RESPONSIVE TEXT */
#hero {
  height: 70vh;
  position: relative;
  overflow: hidden;
  background: #000;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: background-image 1s;
  will-change: transform;
  z-index: 1;
  transform-origin: center center;
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  background: linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.6));
}

#hero h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0;
  text-shadow: 0 3px 6px rgba(0,0,0,.8);
}

#tagline {
  margin: .5rem 0 1.5rem;
  font-size: clamp(0.9rem, 2.5vw, 1.4rem);
  color: var(--orange);
  text-shadow: 0 2px 5px rgba(0,0,0,.8);
  transition: opacity 1s;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.btn.primary {
  background: var(--orange);
  color: var(--white);
}
.btn.outline {
  border: 2px solid var(--orange);
  color: var(--orange);
}
.btn:hover {
  opacity: .9;
}

/* ================================================= STATS */
.stats-strip{background:var(--dark);padding:2.5rem 0;text-align:center}
.stats-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:0}
.stats-grid .stat{flex:0 0 auto;width:calc(100% / var(--stat-cols, 3));padding:1.5rem 1rem;box-sizing:border-box;border-left:1px solid rgba(255,255,255,0.08)}
.stats-grid .stat:first-child{border-left:none}
@media(max-width:900px){.stats-grid .stat{width:50%;border-left:none;border-top:1px solid rgba(255,255,255,0.08)}.stats-grid .stat:nth-child(odd){border-left:none}.stats-grid .stat:nth-child(even){border-left:1px solid rgba(255,255,255,0.08)}}
@media(max-width:500px){.stats-grid .stat{width:100%;border-left:none!important}}
.stat{color:var(--white)}
.stat .icon{font-size:2rem;display:block;margin-bottom:.4rem}
.stat strong{display:block;font-size:2.2rem;font-weight:800;color:var(--orange);letter-spacing:-0.5px}
.stat em{font-size:.75rem;color:var(--grey);text-transform:uppercase;letter-spacing:1.5px;font-style:normal}

/* ================================================= UPCOMING */
.upcoming{padding:2rem 0;text-align:center}
.events-wrap{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;margin-top:1.5rem}
.event-card{
  background:var(--light);padding:1.2rem 1.4rem;border:2px solid var(--orange);border-radius:8px;
  min-width:260px;max-width:300px;transition:.2s;box-shadow:0 0 0 rgba(0,0,0,0)
}
.event-card:hover{transform:translateY(-6px);box-shadow:0 6px 16px rgba(0,0,0,.45)}
.event-card h4{margin:.25rem 0 .5rem;color:var(--white);font-size:1rem;letter-spacing:.5px}
.event-card p{margin:0;font-size:.9rem}
.event-card time{font-size:.8rem;color:var(--grey)}
.badge{padding:.15rem .55rem;border-radius:3px;font-size:.7rem;color:#fff;display:inline-block;margin-bottom:.4rem}
.badge.League{background:#FF6600;color:#000}
.badge.Hosted{background:#6a5acd;color:#fff}
.badge.Endurance{background:#00CED1;color:#000}
.view-more{display:inline-block;margin-top:1rem;color:var(--orange);font-weight:700;text-decoration:none}
.view-more:hover{text-decoration:underline}

/* ================================================= PAGE HERO (shared inner-page header) */
.page-hero{
  text-align:center;
  padding:3rem 1rem 2rem;
}
.page-hero h1{
  font-family:'CornDemo','Lato',sans-serif;
  color:var(--white);
  font-size:2rem;
  margin:0 0 .4rem;
}
.page-hero p{
  color:var(--grey);
  font-size:1.1rem;
  max-width:600px;
  margin:0 auto;
}
@media(max-width:600px){
  .page-hero{padding:2rem 1rem 1.5rem}
  .page-hero h1{font-size:1.75rem}
}

/* ================================================= FOOTER */
footer{background:#111;color:var(--grey);padding:2rem 0}
.footer-inner{display:flex;gap:3rem;flex-wrap:wrap;justify-content:space-between}
footer img{height:38px}
footer a{color:var(--grey);font-size:.9rem;transition:color .2s;text-decoration:none;display:inline-flex;align-items:center}
footer a:hover{color:var(--orange)}
.social svg{width:20px;height:20px;fill:currentColor}
.social-icon.discord:hover{color:var(--discord)}
.social-icon.twitch:hover {color:var(--twitch)}
.social-icon.youtube:hover{color:var(--youtube)}
.social a{margin-right:1rem}

.footer-brand{max-width:320px}
.footer-links{display:flex;gap:3rem;flex-wrap:wrap}
.footer-links > div{display:flex;flex-direction: column;gap:.35rem} /* stacked links */
.footer-links h4{color:var(--white);margin:0 0 .5rem}

footer hr{border:none;border-top:1px solid #333;margin:2rem auto;width:100%}
.copyright{text-align:center;font-size:.8rem;color:var(--grey)}