/* =========================
   ResultRank Header + Sidebar
   FINAL PRODUCTION VERSION
   Prefix: vs-header-page-*
   ========================= */

:root{
  --card:#ffffff;
  --text:#0f172a;
  --border:rgba(15,23,42,.10);
  --shadow:0 10px 28px rgba(2,6,23,.08);

  --accent:#2563eb;
  --accentHover:#1d4ed8;
}

/* ================= HEADER ================= */

.vs-header-page-navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;

  background: rgba(255,255,255,.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
  will-change: backdrop-filter;
}

.vs-header-page-wrap{
  margin: 0 25px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left */

.vs-header-page-left{
  display: flex;
  align-items: center;
}

/* Logo */

.vs-header-page-logo{
  height: 46px;
  display: block;
  contain: layout paint;
}

/* Right Actions */

.vs-header-page-actions{
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Button */

.vs-header-page-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;

  box-shadow: 0 10px 22px rgba(37,99,235,.18);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

.vs-header-page-btn:hover{
  background: var(--accentHover);
  transform: translateY(-1px);
}

.vs-header-page-btn::before{
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Hamburger */

.vs-header-page-hamburger{
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  cursor: pointer;

  transition: transform .14s ease, box-shadow .14s ease;
  position: relative;
  z-index: 1300;
}

.vs-header-page-hamburger:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.vs-header-page-hamburger span{
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Focus */

.vs-header-page-hamburger:focus-visible,
.vs-header-page-btn:focus-visible{
  outline: 3px solid rgba(37,99,235,.28);
  outline-offset: 3px;
}

/* ================= SIDEBAR ================= */

.vs-header-page-sidebar{
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 280px;
  z-index: 1200;

  background: #fff;
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);

  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  will-change: transform;

  display: flex;
  flex-direction: column;
}

.vs-header-page-open .vs-header-page-sidebar{
  transform: translateX(0);
}

/* Overlay */

.vs-header-page-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.35);
  z-index: 1100;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.vs-header-page-open .vs-header-page-overlay{
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar Content */

.vs-header-page-sidebar-top{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.vs-header-page-sidebar-title{
  font-weight: 700;
  font-size: 18px;
}

.vs-header-page-sidebar-close{
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.vs-header-page-sidebar-nav{
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.vs-header-page-sidebar-link{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: background .15s ease;
}

.vs-header-page-sidebar-link:hover{
  background: rgba(37,99,235,.08);
}

.vs-header-page-sidebar-link.active{
  color: var(--accent);
  font-weight: 600;
}

/* ================= VISIBILITY HELPERS ================= */

.vs-header-desktop-only{ display: inline-flex; }
.vs-header-mobile-only{ display: none; }

/* ================= MOBILE (<= 991px) ================= */

@media (max-width: 991px){

  .vs-header-desktop-only{
    display: none;
  }

  .vs-header-mobile-only{
    display: inline-flex;
  }

  .vs-header-page-wrap{
    margin: 0 16px;
  }

  .vs-header-page-logo{
    height: 40px;
  }
}

/* ================= DESKTOP (>= 992px) ================= */

@media (min-width: 992px){

  .vs-header-desktop-only{
    display: inline-flex;
  }

  .vs-header-mobile-only{
    display: none;
  }
}

/* Reduce Motion */

@media (prefers-reduced-motion: reduce){
  .vs-header-page-sidebar,
  .vs-header-page-overlay{
    transition: none;
  }
}
