/* Mkulima Sokoni — shared site chrome (social links + TaiStat credit) */

.site-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  width: 100%;
}

.site-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.site-social-links a:hover {
  background: rgba(116, 198, 157, 0.22);
  border-color: rgba(116, 198, 157, 0.65);
  transform: translateY(-1px);
}

.site-social-links img {
  width: 20px;
  height: 20px;
  display: block;
}

.site-powered-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.site-powered-by:hover {
  background: rgba(116, 198, 157, 0.2);
  border-color: rgba(116, 198, 157, 0.55);
  color: #fff;
}

.site-powered-by img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  object-fit: contain;
  display: block;
  background: #fff;
}

/* Fixed bottom bar (auth / install) */
.site-bottom-bar--fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent 0%, rgba(27, 67, 50, 0.92) 28%, #1b4332 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Light surfaces (mobile app shell) */
.site-bottom-bar--light {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
}

.site-bottom-bar--light .site-social-links a {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.site-bottom-bar--light .site-social-links a:hover {
  background: #ecfdf5;
  border-color: #9ae6b4;
}

.site-bottom-bar--light .site-powered-by {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #1b4332;
}

.site-bottom-bar--light .site-powered-by:hover {
  background: #ecfdf5;
  border-color: #74c69d;
  color: #1b4332;
}

@media (max-width: 640px) {
  .site-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .site-bottom-bar .footer-copy {
    order: 3;
    text-align: center;
    width: 100%;
  }

  .site-social-links {
    order: 1;
    justify-content: flex-start;
  }

  .site-powered-by {
    order: 2;
    align-self: flex-end;
  }

  .site-bottom-bar--fixed {
    flex-direction: row;
    align-items: center;
  }

  .site-bottom-bar--fixed .footer-copy {
    display: none;
  }

  .site-bottom-bar--fixed .site-powered-by {
    align-self: center;
  }
}
