/*
 * main.css — Global styles for legoas.net (public pages)
 * Mobile-first: base styles target phones, media queries scale up.
 * Font: Outfit (Google Fonts) — loaded in header.php
 */

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0d0d0d;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ============================================================
   HERO BACKGROUND
   Fullscreen background photo with dark overlay for readability.
   The overlay ensures text is always legible regardless of photo.
   ============================================================ */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  /* background-image is set inline in PHP using the random photo */
}

.hero-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Gradient: darker at top (nav readability) and bottom, semi-transparent in middle */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.45) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

/* ============================================================
   NAVIGATION
   Fixed to top. Transparent with blur — frosted glass effect.
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
  background: rgba(0, 0, 0, 0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--accent);
}

/* Desktop nav links — hidden on mobile, shown on larger screens */
.nav-links {
  display: none;
  gap: 24px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* Sign In button — always visible */
.nav-signin {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nav-signin:hover {
  background: var(--accent-hover);
  border-color: var(--accent);
  text-decoration: none;
  color: var(--accent);
}

/* Hamburger menu button — visible on mobile only */
.nav-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile drawer nav */
.nav-drawer {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 99;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}

.nav-drawer.open {
  transform: translateY(0);
}

.nav-drawer a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s;
}

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

.nav-drawer a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   HERO CONTENT
   The main frosted glass card on the homepage.
   ============================================================ */
.hero-content {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 40px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  max-width: 340px;
  animation: fadeInUp 0.6s ease both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin-bottom: 24px;
}

/* Quick links inside the hero card */
.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-link {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
  display: block;
}

.quick-link:hover {
  background: var(--accent-dim);
  border-color: var(--accent-border);
  text-decoration: none;
}

.quick-link-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.quick-link-name {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 2px;
}

.quick-link-desc {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============================================================
   BOTTOM NAV (mobile)
   Tab bar at bottom of screen — natural thumb reach on phones.
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  padding: 8px 0;
  text-decoration: none;
  cursor: pointer;
}

.bottom-nav-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.bottom-nav-icon.active {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.bottom-nav-label {
  font-size: 9px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.30);
}

.bottom-nav-label.active {
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE — Tablet and up (640px+)
   ============================================================ */
@media (min-width: 640px) {
  .nav-hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .nav-drawer {
    display: none;
  }

  .bottom-nav {
    display: none;
  }

  .hero-content {
    padding: 80px 48px 60px;
  }

  .glass-card {
    max-width: 380px;
  }

  .hero-title {
    font-size: 38px;
  }
}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .nav {
    padding: 0 48px;
  }

  .hero-content {
    padding: 80px 80px 80px;
  }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
