/* ============================================================
   shared.css — WonderBook Land
   Style bersama: header, navbar, footer, feedback-cta
   ============================================================ */

:root {
  --c1: #1976d2;
  --c2: #43a047;
  --gold: #fbc02d;
  --shadow: 0 10px 25px rgba(0,0,0,0.15);
  --header-h: 140px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ================= HEADER ================= */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;
  transform: translateY(0);
  transition: transform .28s ease, box-shadow .28s ease;
  will-change: transform;
}
header.hide    { transform: translateY(-110%); }
header.scrolled { box-shadow: var(--shadow); }

.navbar { width: 100%; }

/* ================= TOP BAR ================= */
.top-bar {
  padding: 16px 5%;
  background: linear-gradient(90deg, #1976d2, #43a047);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ================= LOGO ================= */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.logo-text h1 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.1;
  background: linear-gradient(to right, #ffffff, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 12px;
  color: rgba(255,255,255,0.86);
  margin-top: 2px;
}

/* ================= SEARCH AREA ================= */
.top-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-container input {
  width: 100%;
  padding: 12px 52px 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.92);
  outline: none;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.search-container input:focus {
  border-color: rgba(244,211,94,0.65);
  box-shadow: 0 0 0 4px rgba(244,211,94,0.18);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ================= FILTER ================= */
.filter {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: white;
  font-family: 'Poppins', sans-serif;
}

/* ================= AUTH BUTTONS ================= */
.auth-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}

.btn-auth {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-auth.signup {
  background: rgba(255,255,255,0.92);
  color: var(--c1);
  border: 1px solid rgba(30,60,114,0.12);
}

.btn-auth.login {
  background: rgba(0,0,0,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
}

/* ================= NAV BAR ================= */
.nav-bar {
  padding: 12px 5%;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(4px);
}

.bottom-nav {
  display: flex;
  align-items: center;
  gap: 46px;
}

.bottom-nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: .2s ease;
  letter-spacing: .5px;
  position: relative;
  padding: 4px 0;
}

.bottom-nav a:hover { color: var(--gold); transform: translateY(-2px); }

.bottom-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: .25s;
}

.bottom-nav a:hover::after { width: 100%; }

/* ================= FOOTER ================= */
.footer {
  background: rgba(231,219,160,0.65);
  backdrop-filter: blur(6px);
  color: #333;
  padding: 60px 10%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3 {
  color: black;
  margin-bottom: 15px;
}

.footer-col p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.social-icons i {
  font-size: 18px;
  margin-right: 15px;
  cursor: pointer;
  transition: .2s ease;
}

.social-icons i:hover { color: var(--gold); }

.footer hr {
  border: none;
  height: 1px;
  background: #000;
  margin: 40px 0;
}

.footer-bottom {
  padding: 20px 0;
  font-weight: 600;
  text-align: center;
}

.footer-bottom p {
  margin: 5px 0;
  font-size: 14px;
}

/* ================= FEEDBACK CTA ================= */
.feedback-cta {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: black;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(0,0,0,0.6);
  transition: .2s ease;
}

.feedback-cta:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(244,211,94,0.45);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.fb-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244,211,94,0.18);
  color: black;
  flex: 0 0 auto;
}

.fb-text strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.fb-text small {
  display: block;
  font-size: 12px;
  opacity: .85;
  margin-top: 2px;
}

.fb-arrow {
  margin-left: auto;
  opacity: .85;
}

/* ================= RESPONSIVE — Navbar ================= */
@media (max-width: 900px) {
  .btn-auth { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 768px) {
  .top-nav { flex-wrap: wrap; align-items: center; gap: 8px; }
  .logo { flex: 1; min-width: 180px; }
  .auth-buttons { display: flex; gap: 6px; justify-content: flex-end; }
  .btn-auth { padding: 7px 14px; font-size: 13px; }
  .top-right { width: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
  .filter { order: 1; flex: 1; min-width: 30%; font-size: 13px; padding: 10px; border-radius: 10px; }
  .bottom-nav { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; gap: 22px; padding-bottom: 4px; }
  .bottom-nav::-webkit-scrollbar { display: none; }

  /* Footer mobile */
  .footer { margin-top: 40px; padding: 50px 8%; }
  .footer-container { flex-direction: column; gap: 28px; }
  .footer-col { min-width: 100%; }
  .feedback-cta { width: 100%; }
}

@media (max-width: 600px) {
  .top-nav { flex-wrap: wrap; gap: 12px; }
  .logo { flex: 1 1 auto; min-width: 190px; }
  .auth-buttons { flex: 0 0 auto; margin-left: auto; }
  .top-right { width: 100%; flex: 0 0 100%; order: 3; flex-wrap: wrap; }
  .search-container { width: 100%; }
  .bottom-nav { gap: 18px; padding-bottom: 4px; }
  .bottom-nav::-webkit-scrollbar { height: 0px; }
}
