/* HeavyTrack App - Common Styles */

:root {
  --bg: #f4f5f7;
  --text-main: #1a1a1a;
  --text-muted: rgba(0, 0, 0, 0.55);
  --card-bg: #ffffff;
  --pink: #F5224A;
  --pink-hover: #d91e40;
  --footer-bg: #e8e9eb;
  --nav-frost-bg: rgba(255, 255, 255, 0.7);
  --nav-menu-bg: rgba(255, 255, 255, 0.95);
  --nav-shadow: rgba(0, 0, 0, 0.08);
  --field-border: #e0e0e0;
  --accent-contrast: var(--card-bg);
  --table-border: #eeeeee;
  --table-hover-bg: #f9f9f9;
  --table-section-bg: #f0f0f0;
  --accent-soft-bg: rgba(245, 34, 74, 0.08);
  --accent-active-bg: rgba(245, 34, 74, 0.12);
  --dot-bg: rgba(0, 0, 0, 0.2);
  --dot-hover-bg: rgba(0, 0, 0, 0.4);
}

:root[data-resolved-mode="dark"] {
  --bg: #000000;
  --text-main: #f4f5f7;
  --text-muted: rgba(255, 255, 255, 0.66);
  --card-bg: #101114;
  --pink: #daff00;
  --pink-hover: #c6e800;
  --footer-bg: #060708;
  --nav-frost-bg: rgba(0, 0, 0, 0.72);
  --nav-menu-bg: rgba(8, 9, 10, 0.97);
  --nav-shadow: rgba(255, 255, 255, 0.08);
  --field-border: rgba(255, 255, 255, 0.22);
  --accent-contrast: #10110d;
  --table-border: rgba(255, 255, 255, 0.12);
  --table-hover-bg: rgba(255, 255, 255, 0.06);
  --table-section-bg: rgba(255, 255, 255, 0.08);
  --accent-soft-bg: rgba(218, 255, 0, 0.10);
  --accent-active-bg: rgba(218, 255, 0, 0.16);
  --dot-bg: rgba(255, 255, 255, 0.28);
  --dot-hover-bg: rgba(255, 255, 255, 0.48);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--bg);
  font-family: "Varela Round", system-ui, sans-serif;
  color: var(--text-main);
  padding: 20px;
  padding-top: 80px;
  overflow-x: hidden;
}

/* Fixed Navigation */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: transparent;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  animation: navFrost linear both;
  animation-timeline: scroll();
  animation-range: 0px 50px;
}

@keyframes navFrost {
  from {
    background: transparent;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0);
  }
  to {
    background: var(--nav-frost-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 12px var(--nav-shadow);
  }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--pink);
}

.nav-btn {
  background: var(--pink);
  color: var(--accent-contrast) !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-btn:hover {
  background: var(--pink-hover);
  color: var(--accent-contrast) !important;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 600px) {
  .site-nav {
    top: 5px;
  }

  .nav-title {
    font-size: 16px;
  }

  .hamburger {
    display: flex;
  }

  .nav-right {
    gap: 12px;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--nav-menu-bg);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 16px 24px;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
  }

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

  .nav-links a {
    font-size: 16px;
    padding: 8px 0;
  }
}

/* Common page header */
h1 {
  font-family: 'Russo One', sans-serif;
  font-size: clamp(38px, 7vw, 64px);
  font-style: italic;
  text-transform: uppercase;
  margin-bottom: 12px;
  line-height: 1;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 20px;
  margin: 80px -20px -20px -20px;
  background: var(--footer-bg);
}

.site-footer p {
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--pink);
  text-decoration: none;
}

.site-footer .separator {
  margin: 0 12px;
  color: var(--text-muted);
}
