/* =========================================================
   She Writes AI — Shared Navbar + Footer Styles
   Include this single file on any page that uses the
   .navbar / .nav-* markup and the .site-footer / .footer-*
   markup shown in swai-navbar.html and swai-footer.html.
   ========================================================= */

:root {
  --burple: #6a4c93;       /* purple/blue "burple" tone */
  --burple-dark: #5D24E0; /* was #4e3570  */
  --lavender: #f3eefc;
  --text-light: #ffffff;
  --text-muted: #d8cdec;
}

* { box-sizing: border-box; }

body { margin: 0; font-family: Arial, Helvetica, sans-serif; }

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
  background: var(--burple-dark);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.5rem;
}

.nav-brand a,
.nav-brand li a {
  display: block;
  align-items: left;
  gap: 0.4rem;
  text-decoration: none;
  color: var(--text-light);
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;

  border-bottom: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}


.nav-brand img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo img {
  height: 40px;
}


.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.1rem;
}

.nav-links li a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.45rem 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-links li a:hover,
.nav-links li a:focus {
  background: var(--burple-dark);
  border-bottom-color: var(--lavender);
}

/* Hamburger button - hidden on desktop */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  background: var(--text-light);
  height: 3px;
  border-radius: 2px;
  width: 26px;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after  { position: absolute; top: 8px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); top: 0; }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--burple-dark); /* was burple */
  color: var(--text-light);
  margin-top: 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.5rem 0.5rem;
}

/* Reuses the same link look as .nav-links */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0 0 0.1rem;
  border-bottom: 1px solid var(--burple-dark);
}

.footer-links li a {
  display: block;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.45rem 0.5rem;
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-links li a:hover,
.footer-links li a:focus {
  background: var(--burple-dark);
  border-bottom-color: var(--lavender);
}

/* Social row */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 1.5rem;
  margin-bottom: .5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.95rem;
  /* padding: 0.4rem 0.6rem; */
  border-radius: 4px;
  transition: background 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus {
  background: var(--burple-dark);
}

.footer-social img {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

/* Policy row (privacy / terms) */
.footer-policy {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-policy a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-policy a:hover,
.footer-policy a:focus {
  color: var(--text-light);
}

.footer-policy .divider {
  color: var(--text-muted);
}

/* Curator + copyright block */
.footer-meta {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-meta a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-meta a:hover,
.footer-meta a:focus {
  color: var(--text-light);
}

/* =========================================================
   MOBILE ADJUSTMENTS (shared breakpoint)
   ========================================================= */

@media (max-width: 768px) {
  /* Navbar mobile */
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--burple);
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
  }

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

  .nav-links li a {
	padding: 0.45rem 0.1rem;
    border-bottom: 1px solid var(--burple-dark);
  }

  .nav-container {
    position: relative;
    flex-wrap: wrap;
  }

  /* Footer mobile */
  .footer-links {
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
  }

  .footer-links li a {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--burple-dark);
    padding: 0.1rem 0.2rem;
  }

  .footer-social {
    flex-direction: column;
    column-gap: 0.75rem;
  }

  .footer-policy {
    flex-direction: column;
    column-gap: 0.25rem;
  }

  .footer-social .divider,
  .footer-policy .divider {
    display: none;
  }
}
