/* ============================================================
   SHARED FOOTER — Hinbuna Kurdi
   One identical footer on every page.
   Branded footer with logo, tagline, nav, copyright + gear.
   Uses theme variables so it follows color theme selection.
   ============================================================ */

/* ============================================
   BASE
   ============================================ */
.shared-footer {
  background-color: #1A2A1F;
  color: var(--text, #F5EEE6);
  border-top: 1px solid rgba(45, 90, 61, 0.2);
  padding: 48px 20px 32px;
  text-align: center;
  font-family: var(--font-body, 'Inter', sans-serif);
}

.shared-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Dark mode — uses a shade darker than --bg for contrast */
[data-theme="dark"] .shared-footer {
  background-color: color-mix(in srgb, var(--bg, #1A2024) 70%, black);
  border-top-color: var(--border, rgba(45, 90, 61, 0.15));
}

@media (min-width: 768px) {
  .shared-footer { padding: 48px 40px 32px; }
}

@media (min-width: 1024px) {
  .shared-footer { padding: 48px 60px 32px; }
}

/* ============================================
   BRAND (logo + tagline)
   ============================================ */
.shared-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.shared-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shared-footer-logo-text {
  font-family: var(--font-heading, 'Nunito', sans-serif);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: var(--text, #F5EEE6);
  opacity: 0.9;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .shared-footer-logo-text { font-size: 22px; }
}

.footer-logo-leaf {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .footer-logo-leaf { width: 26px; height: 26px; }
}

/* ============================================
   TAGLINE
   ============================================ */
.shared-footer-tagline {
  font-size: 13px;
  color: var(--text-secondary, #9CADA8);
  opacity: 0.6;
  letter-spacing: 0.3px;
  margin: 0;
}

/* ============================================
   NAV LINKS
   ============================================ */
.shared-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
  margin-top: 4px;
}

.shared-footer-link {
  font-size: 13px;
  color: var(--text-secondary, #9CADA8);
  opacity: 0.7;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.shared-footer-link:hover {
  color: var(--accent, #D4A843);
  opacity: 1;
}

.shared-footer-dot {
  font-size: 13px;
  color: var(--text-secondary, #9CADA8);
  opacity: 0.3;
}

/* ============================================
   BOTTOM ROW (copyright + gear)
   ============================================ */
.shared-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.shared-footer-bottom-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.shared-footer-copyright {
  font-size: 12px;
  color: var(--text-secondary, #9CADA8);
  opacity: 0.45;
  margin: 0;
}

.shared-footer-org {
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.shared-footer-org:hover {
  color: var(--accent, #D4A843);
  opacity: 1;
}

.shared-footer-craftlab {
  font-size: 11px;
  color: var(--text-secondary, #9CADA8);
  opacity: 0.4;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.shared-footer-craftlab span {
  font-weight: 700;
  color: var(--accent, #D4A843);
  opacity: 0.8;
}

.shared-footer-craftlab:hover {
  opacity: 1;
}

.shared-footer-craftlab:hover span {
  opacity: 1;
}

/* ============================================
   SETTINGS GEAR BUTTON
   ============================================ */
.shared-footer-gear {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-secondary, #9CADA8);
  opacity: 0.35;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.3s ease, opacity 0.2s ease;
}

.shared-footer-gear svg {
  width: 18px;
  height: 18px;
}

.shared-footer-gear:hover {
  color: var(--accent, #D4A843);
  opacity: 1;
  background-color: rgba(212, 168, 67, 0.08);
  transform: rotate(45deg);
}
