/* =============================================
   SHARED NAVIGATION & FOOTER — SoulArt Temple
   Consistent across all pages
   ============================================= */

/* --- Minimal Navigation Bar --- */
.sa-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  position: relative;
  z-index: 50;
  box-sizing: border-box;
  align-self: stretch;
}

.sa-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sa-nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Back Button (consistent everywhere) --- */
.sa-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid #ccc;
  color: #6a5a42;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.sa-back:hover {
  border-color: #c9a227;
  color: #c9a227;
}

/* --- Member Icon Button (head & shoulders silhouette) --- */
.sa-member-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #ccc;
  background: transparent;
  color: #6a5a42;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.sa-member-icon:hover {
  border-color: #c9a227;
  color: #c9a227;
}

.sa-member-icon svg {
  width: 20px;
  height: 20px;
}

/* --- Home Logo (small circular) --- */
.sa-home-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.sa-home-logo img {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 6px rgba(200, 150, 62, 0.3));
}

/* --- Optional Temple Map / Secondary Link --- */
.sa-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: transparent;
  border: 1px solid #ccc;
  color: #6a5a42;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: Georgia, 'Times New Roman', serif;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.sa-nav-link:hover {
  border-color: #c9a227;
  color: #c9a227;
}

.sa-nav-link svg {
  width: 16px;
  height: 16px;
}

/* =============================================
   STANDARD FOOTER
   ============================================= */
.sa-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: auto;
  font-size: 0.85rem;
  color: #8a7d6b;
  background: transparent;
  border-top: 1px solid #e0d6c8;
  font-family: Georgia, 'Times New Roman', serif;
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
}

.sa-footer p {
  margin: 0 0 0.5rem 0;
  color: #8a7d6b;
}

.sa-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1.8;
}

.sa-footer-links a {
  color: #6a5a42;
  text-decoration: none;
  padding: 0 0.4rem;
  transition: color 0.2s ease;
}

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

.sa-footer-links .sa-divider {
  color: #ccc;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .sa-nav {
    padding: 0.5rem 1rem;
  }

  .sa-back {
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
  }

  .sa-member-icon {
    width: 34px;
    height: 34px;
  }

  .sa-member-icon svg {
    width: 18px;
    height: 18px;
  }

  .sa-home-logo img {
    height: 34px;
    width: 34px;
  }

  .sa-nav-link {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
  }

  .sa-footer {
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
  }

  .sa-footer-links {
    gap: 0.15rem;
  }

  .sa-footer-links a {
    padding: 0 0.3rem;
  }
}

@media (max-width: 380px) {
  .sa-nav-link span {
    display: none;
  }

  .sa-back {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }
}
