
/* ================================
    Font Import & Base Styling
=================================*/
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* General body background (all pages) */
body {
    font-family: 'Orbitron', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000; /* solid black */
    color: white;
    text-align: center;
    overflow-x: hidden;
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
  box-sizing: border-box;
}

/* Prefer smoother scrolling but allow users to opt out */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* On small screens, avoid background-attachment: fixed (mobile perf win) */
@media (max-width: 768px) {
  body.home-page,
  body.about-page,
  body.divisions-page,
  body.events-page,
  body.resources-page,
  body.transportation-page,
  body.security-page,
  body.seabees-page {
    background-attachment: scroll;
  }
}

/* ================================
    Hero Section (Home Page)
=================================*/
.hero {
    margin-top: 10px;
    padding: 40px 20px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero h1 {
    font-size: 2.8em;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
    margin-bottom: 15px;
    margin-top: 0;
}

.hero h2 {
    font-size: 2.8em;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2em;
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.85);
    line-height: 1.6;
    font-style: italic;
}

/* ================================
   Navigation Bar Styles
================================= */

/* Base */
nav {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 20, 20, 0);
}

/* Shared container */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 80px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.nav-logo-container {
  display: flex;
  align-items: center;
  margin-right: 50px;
}

.nav-logo {
  height: 70px;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.1);
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav-links li {
  list-style: none;
  position: relative;
}

/* Link + dropdown button shared style */
.nav-links a,
.nav-dropdown-toggle {
  text-decoration: none;
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 500;
  /* Modern browsers */
    -webkit-text-stroke: 0.15px black;
  color: white;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Button behaves like a link */
.nav-dropdown-toggle {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

.nav-links a:hover,
.nav-dropdown-toggle:hover,
.nav-links a:focus-visible,
.nav-dropdown-toggle:focus-visible {
  color: rgb(229, 255, 0);
  text-shadow: 3px 3px 10px rgba(255, 255, 255, 0.8);
  outline: none;
}

/* Desktop dropdown submenu */
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  background: rgba(20, 20, 20, 0.95);
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  min-width: 180px;
  z-index: 1001;
}

.submenu li {
  width: 100%;
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-family: "Orbitron", sans-serif;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease, color 0.2s ease;
}

.submenu li a:hover {
  background-color: #333;
  color: rgb(229, 255, 0);
}

/* Hover/focus open on desktop */
.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  display: block;
}

/* Hamburger toggle */
.mobile-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;

  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;

  color: white;
  font-family: "Orbitron", sans-serif;
  -webkit-appearance: none;
  appearance: none;
}

.mobile-toggle:hover {
  transform: scale(1.1);
}

.menu-toggle-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.nav-title {
  margin: 0;
  color: white;
  font-size: 1rem;
  font-family: "Orbitron", sans-serif;
  font-weight: 600;
}

.hamburger-icon {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
}

/* Desktop vs mobile wrappers */
.nav-desktop {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  background: transparent;
}

.nav-mobile {
  display: none;
}

/* ================================
   Mobile Styles
================================= */
@media (max-width: 1000px) {
  .nav-desktop {
    display: none;
  }

  .nav-mobile {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
  }

  .nav-container {
    padding: 0 15px;
    height: 70px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    justify-content: space-between;
  }

  .nav-logo {
    height: 55px;
    max-width: 100%;
  }

  .nav-mobile .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    padding: 0 15px;
    width: 100%;
  }

  .nav-title {
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .hamburger-icon {
    width: 28px;
    height: 28px;
  }

  /* Mobile menu controlled by [hidden] only */
  .nav-mobile .mobile-menu {
    display: flex;
    flex-direction: column;

    position: absolute;
    top: 60px;
    left: 25%;
    right: 5%;

    padding: 20px;
    text-align: center;

    z-index: 1001;
    background: rgba(20, 20, 20, 0.85);
    border-radius: 10px;
    backdrop-filter: blur(5px);
  }

  .nav-mobile .mobile-menu[hidden] {
    display: none !important;
  }

  .nav-mobile .mobile-menu a {
    color: white;
    text-decoration: none;
    padding: 10px 0;
    font-size: 1.2em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
  }

  .nav-mobile .mobile-menu a:hover {
    color: rgb(229, 255, 0);
    text-shadow: 3px 3px 10px rgba(255, 255, 255, 0.8);
  }

  /* Mobile submenu containers */
  .mobile-submenu-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .mobile-submenu-toggle {
    background: transparent;
    border: 0;
    color: white;

    padding: 10px 0;
    font-size: 1.2em;
    font-family: "Orbitron", sans-serif;
    text-align: center;
    cursor: pointer;

    -webkit-appearance: none;
    appearance: none;
  }

  .mobile-submenu {
    display: flex;
    flex-direction: column;

    background-color: rgba(15, 15, 15, 0.8);
    border-radius: 6px;
    margin: 5px 0 10px;
    padding: 8px 0;
  }

  .mobile-submenu[hidden] {
    display: none !important;
  }

  .mobile-submenu a {
    color: #ccc;
    font-size: 1em;
    padding: 8px 0;
    text-decoration: none;
  }

  .mobile-submenu a:hover {
    color: white;
  }
}


/* ================================
    Page Title Style
=================================*/
h1 {
  text-align: center;
  color: white;
  margin-top: 120px;
  z-index: 100;
  position: relative;
}

* {
  letter-spacing: 2px;
}

/* Respect reduced motion (disable flashy stuff) */
@media (prefers-reduced-motion: reduce) {
  .ship-transmission { animation: none; }
  .discord-transmission-button { animation: none; }
}

/* ================================
    Resource Box Styling
=================================*/
.resource-container {
    display: grid;
    /* NOTE: The original had an invalid value: minmax(px, 1fr)
       Leaving grid-template-rows unset here so page-specific
       styles can define their own grids without side effects. */
    gap: 30px;
    justify-content: center;
    padding: 40px 20px;
    max-width: 1300px;
    margin: auto;
}

/* ============================================
   UNIFIED BUTTON SYSTEM - Based on index.css
   Add this to the end of main.css
============================================ */

/* -----------------
   Base Button Style
----------------- */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 18px;
  min-width: 220px;
  
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1em;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  
  border-radius: 12px;
  cursor: pointer;
  
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}


/* -----------------
   PRIMARY BUTTON (Transparent Gold Border)
   This is your current .cta style
----------------- */
.btn-primary {
  background: transparent;
  color: #ffd700;
  border: 1px solid #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.btn-primary:hover {
  background: #ffd700;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.55);
}


/* -----------------
   PRIMARY SOLID BUTTON (Solid Gold Background)
   Same style but filled by default
----------------- */
.btn-primary-solid {
  background: #ffd700;
  color: #000;
  border: 1px solid #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.btn-primary-solid:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.65);
}


/* -----------------
   DISCORD BUTTON (Purple)
   This is your current .cta-ghost / .discord-transmission-button style
----------------- */
.btn-discord, .discord-transmission-button {
  background: purple;
  color: #fff;
  border: 2px solid #8e5cff;
  box-shadow: 0 0 12px rgba(142, 92, 255, 0.35);
}

.btn-discord:hover, .discord-transmission-button:hover {
  background: #8e5cff;
  color: black;
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(142, 92, 255, 0.55);
}

/* -----------------
   PAGE-SPECIFIC OVERRIDES
   Override Discord button colors per division page
----------------- */

/* Transportation Page - Orange Discord Button */
.transportation-page .btn-discord {
  background: #fa9900;
  border: 2px solid #fa9900;
  color: black;
  box-shadow: 0 0 12px rgba(250, 153, 0, 0.4);
}



/* Security Page - Blue Discord Button */
.security-page .btn-discord {
  background: #1976d2;
  border: 2px solid #1976d2;
  color: white;
  box-shadow: 0 0 12px rgba(33, 150, 243, 0.4);
}


/* SeaBees Page - Olive Discord Button */
.seabees-page .btn-discord {
  background: #808000;
  border: 2px solid #808000;
  color: white;
  box-shadow: 0 0 12px rgba(128, 128, 0, 0.4);
}

.transportation-page .btn-discord:hover,.security-page .btn-discord:hover, .seabees-page .btn-discord:hover {
  background: #8e5cff;
  border-color: #8e5cff;
  color: black;
  box-shadow: 0 0 20px #8e5cff;
}

/* -----------------
   BUTTON GROUP CONTAINER
   This is your current .cta-row
----------------- */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}


/* -----------------
   SIZE VARIANTS (Optional)
----------------- */
.btn-sm {
  padding: 8px 14px;
  min-width: 160px;
  font-size: 0.9em;
}

.btn-lg {
  padding: 16px 24px;
  min-width: 260px;
  font-size: 1.1em;
}

.btn-block {
  width: 100%;
  min-width: 100%;
}


/* -----------------
   DISABLED STATE
----------------- */
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* -----------------
   MOBILE RESPONSIVE
----------------- */
@media (max-width: 900px) {
  .btn {
    min-width: 180px;
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .btn {
    width: 100%;
    min-width: unset;
    font-size: 0.95rem;
  }
  
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 14px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}