/**
 * STENKU Web - Components Styling (Header, Nav, Buttons, Modals, Admin Shell)
 */

/* HEADER & TOPBAR */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: linear-gradient(180deg, rgba(4, 4, 4, 0.58) 0%, rgba(4, 4, 4, 0.18) 72%, transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.topbar.scrolled {
  background: rgba(6, 6, 6, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.nav-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin-left: auto;
  margin-right: 12px;
}

.nav a {
  position: relative;
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.nav a:hover, .nav a:focus-visible, .nav a.active {
  color: #fff;
}

.nav a:hover::after, .nav a:focus-visible::after, .nav a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BUTTONS */
.btn {
  position: relative;
  overflow: hidden;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  color: #fff;
  font-size: 12px;
  font-weight: 780;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.18) 50%, transparent 75%);
  transition: transform 0.65s var(--ease);
  pointer-events: none;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.btn:hover::before {
  transform: translateX(110%);
}

.btn-primary {
  background: #fff;
  color: #080808;
  border-color: #fff;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  background: #ededed;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.025);
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* MOBILE MENU BUTTON */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #101010;
  cursor: pointer;
}

.menu-icon, .menu-icon::before, .menu-icon::after {
  width: 18px;
  height: 2px;
  display: block;
  margin: auto;
  background: #fff;
  border-radius: 99px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.menu-btn.is-open .menu-icon { background: transparent; }
.menu-btn.is-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-btn.is-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* BADGES & CHIPS */
.eyebrow {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  color: #d0d0d0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: default;
  user-select: none;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.85);
  animation: statusPulse 2.2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 0.55; box-shadow: 0 0 7px rgba(255, 255, 255, 0.35); }
  50% { opacity: 1; box-shadow: 0 0 18px rgba(255, 255, 255, 0.9); }
}

.tag {
  display: inline-flex;
  margin-top: 18px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #777;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* STENKU ADMIN / ROBI LOGIN OVERLAY */
.admin-shell {
  display: none;
  min-height: 100svh;
  padding: 110px 20px 70px;
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.07), transparent 34rem), var(--bg);
}

body.admin-mode .site > header,
body.admin-mode .site > main,
body.admin-mode .site > footer {
  display: none !important;
}

body.admin-mode .admin-shell {
  display: block;
}

.admin-wrap {
  width: min(100%, 900px);
  margin: 0 auto;
}

.admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.admin-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.admin-login-card, .admin-dashboard {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.admin-login-card {
  width: min(100%, 480px);
  margin: 10vh auto 0;
  padding: 34px;
}

.admin-kicker {
  color: #858585;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-login-card h1, .admin-dashboard h1 {
  margin: 12px 0 10px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.admin-login-card p, .admin-dashboard p {
  color: #a6a6a6;
  font-size: 13px;
  line-height: 1.65;
}

.admin-field {
  margin-top: 22px;
}

.admin-field label {
  display: block;
  margin-bottom: 8px;
  color: #ddd;
  font-size: 12px;
  font-weight: 700;
}

.admin-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: none;
  color: #fff;
  background: #090909;
}

.admin-input:focus {
  border-color: rgba(255, 255, 255, 0.38);
}

.admin-login-btn {
  width: 100%;
  margin-top: 14px;
}

.admin-message {
  min-height: 20px;
  margin-top: 12px;
  color: #aaa;
  font-size: 11px;
  line-height: 1.5;
}

.admin-code-box {
  display: none;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #090909;
}

.admin-code-box.is-visible {
  display: block;
}

.admin-code {
  margin: 8px 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
}

.admin-wa {
  width: 100%;
  margin-top: 8px;
}

/* Mobile Responsiveness for Header/Components */
@media (max-width: 899px) {
  .nav { display: none; }
  .nav-actions .btn { display: none; }
  .menu-btn { display: block; }

  .topbar.menu-open .nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 10, 10, 0.96);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
  }

  .topbar.menu-open .nav a {
    padding: 14px;
    border-radius: 10px;
  }

  .topbar.menu-open .nav a::after {
    display: none;
  }

  .topbar.menu-open .nav a:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}

@media (max-width: 599px) {
  .topbar { width: 100%; left: 0; right: 0; }
  .nav-inner { min-height: 64px; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-name { font-size: 14px; }
  .btn { max-width: 100%; white-space: normal; }
}
