/* ===== Reset & Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  color: #333;
  line-height: 1.6;
}

a { text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===== Glassmorphism ===== */
.glass {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(77, 77, 77, 0.1);
}

/* ===== Text Effects ===== */
.text-shadow { text-shadow: 0 1px 2px rgba(51, 51, 51, 0.15); }
.glow { filter: drop-shadow(0 0 8px rgba(255, 51, 51, 0.3)); }

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #ff3333;
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* ===== Navbar ===== */
header nav {
  z-index: 10;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

nav .logo-glow {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  max-width: 40%;
  margin-right: auto;
}

nav .logo-glow img {
  max-height: 25px;
  width: auto;
  display: block;
  max-width: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s;
  color: #333;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  font-size: 0.9rem;
}

.nav-link:hover {
  background: rgba(255, 51, 51, 0.1);
  transform: translateY(-2px);
}

.nav-link svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #ff3333;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  header nav {
    padding: 1rem 2rem;
  }
  nav .logo-glow {
    font-size: 1.75rem;
    max-width: none;
  }
  nav .logo-glow img {
    max-height: 60px;
  }
  .nav-link {
    font-size: 1rem;
    padding: 0.5rem 1.25rem;
    gap: 0.5rem;
  }
  .nav-link svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.breadcrumb li + li::before {
  content: '›';
  color: #999;
  margin-right: 0.25rem;
}

.breadcrumb a {
  color: #ff3333;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: #666;
}

/* ===== Footer ===== */
.footer {
  background: white;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
  z-index: 5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ff3333;
}

.copyright {
  font-size: 1rem;
  color: #666;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    order: 1;
    justify-content: center;
  }

  .copyright {
    order: 2;
    text-align: center;
    width: 100%;
  }
}

/* ===== Print Styles ===== */
@media print {
  body {
    background: none;
    color: #000;
  }
  .glass {
    background: none;
    box-shadow: none;
    border: 1px solid #ccc;
  }
  nav, .footer {
    display: none;
  }
}
