/* ================================================ */
/* BASE STYLES & RESETS                             */
/* Contains global resets, fundamental typography,  */
/* and base body/html styles applicable everywhere. */
/* ================================================ */

/* -------------------------
   BASE STYLES & RESETS
   ------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;       /* Consistent box model */
}

html {
  scroll-behavior: smooth;      /* Smooth scrolling */
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background-color: var(--bg);  /* Fallback color */
  background-image: url('../assets/images/elites-website_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui; /* Font stack */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased; /* Better text rendering */
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  margin: 0;                    /* Remove default margins */
}

/* Links */
a {
  color: inherit;               /* Inherit text color */
  text-decoration: none;        /* No underline by default */
}

/* -------------------------
   UTILITY CLASSES (Global)
   ------------------------- */

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  top: -40px;                   /* Hide by default */
  left: 0;
  background: var(--neon);
  color: #000;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;                       /* Show when focused */
}

/* Secondary text */
.small-meta {
  font-size: 0.90rem;
  color: var(--text-muted);
}

/* -------------------------
   LAYOUT COMPONENTS (Global)
   ------------------------- */

/* Main site container */
.site {
  max-width: var(--max-width);
  margin: 0 auto;               /* Center content */
  padding: 24px;
}

/* Header Styles */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;                  /* Above other content */
  backdrop-filter: blur(6px);   /* Frosted glass effect */
  background: linear-gradient(180deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4));
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* Navigation wrapper */
.nav-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Branding (logo + text) */
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Logo styling */
.logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.4), rgba(0, 0, 0, 0.3));
  background-color: rgba(26, 26, 26, 0.4); /* Fallback for older browsers */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon);
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,191,255,0.08);
  transition: var(--transition);

  animation: pulseNeon 3s ease-in-out infinite;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Brand text */
.brand h1 {
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.brand p {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.9;
}

/* Main navigation */
nav.main-nav {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.95rem;
}

nav.main-nav a:hover,
nav.main-nav a:focus {
  transform: translateY(-3px);  /* Lift effect */
  box-shadow: 0 6px 18px rgba(0,191,255,0.06);
  outline: none;
}

/* Mobile menu button (hidden on desktop) */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Section base style */
section {
  padding: 36px 18px;
  margin-top: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.01));
}

/* Section header style */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.section-head h3 {
  font-size: 1.15rem;
}

/* -------------------------
   FOOTER STYLES (Global)
   ------------------------- */
footer.site-footer {
  margin-top: 26px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Print styles */
@media print {
  .site-header,
  .site-footer,
  .btn,
  .back-to-top {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ddd;
    break-inside: avoid;
  }

  section {
    page-break-before: always;
  }

  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    font-weight: normal;
  }
}

/* Responsive Adjustments (Global) */
@media (max-width: 980px) {
  .site {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .nav-wrap {
    padding: 10px;
    gap: 8px;
  }

  .mobile-menu-btn {
    display: block;
  }

  nav.main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary);
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  }

  nav.main-nav.active {
    display: flex;
  }

  nav.main-nav a {
    width: 100%;
    text-align: center;
  }

  .brand h1 {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .footer-row {
    flex-direction: column;
    text-align: center;
  }
}