/* ===================================================================
   RODNUK — Mobile Navigation Drawer (shared across all public pages)
   Activates < 880px. Injects a hamburger button + full-screen drawer
   based on the existing .header-nav + .header-actions found in DOM.
   =================================================================== */

.rk-burger{
  display:none;
  position:relative;
  width:44px;height:44px;
  background:transparent;
  border:1.5px solid rgba(1,33,105,0.18);
  border-radius:6px;
  cursor:pointer;
  padding:0;
  align-items:center;justify-content:center;
  flex-direction:column;gap:5px;
  transition:border-color .2s,background .2s;
  -webkit-tap-highlight-color:transparent;
}
.rk-burger:hover{border-color:#012169;background:rgba(1,33,105,0.04)}
.rk-burger span{
  display:block;width:20px;height:2px;
  background:#012169;border-radius:2px;
  transition:transform .25s cubic-bezier(.4,0,.2,1),opacity .2s;
}
.rk-burger.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.rk-burger.is-open span:nth-child(2){opacity:0;transform:scaleX(0)}
.rk-burger.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.rk-drawer-backdrop{
  display:none;
  position:fixed;inset:0;
  background:rgba(10,15,40,0.45);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  z-index:998;
  opacity:0;transition:opacity .25s ease;
}
.rk-drawer-backdrop.is-open{display:block;opacity:1}

.rk-drawer{
  display:none;
  position:fixed;
  top:0;right:0;bottom:0;
  width:min(88vw,360px);
  background:#fff;
  z-index:999;
  flex-direction:column;
  box-shadow:-8px 0 32px rgba(1,16,80,0.22);
  transform:translateX(100%);
  transition:transform .3s cubic-bezier(.4,0,.2,1);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}
.rk-drawer.is-open{display:flex;transform:translateX(0)}

.rk-drawer-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 20px;
  border-bottom:1px solid rgba(0,0,0,0.06);
  flex-shrink:0;
}
.rk-drawer-logo{
  font-family:'Cormorant Garamond','Bricolage Grotesque',serif;
  font-size:20px;font-weight:700;
  color:#012169;letter-spacing:.5px;
}
.rk-drawer-close{
  width:36px;height:36px;border-radius:6px;
  border:none;background:rgba(0,0,0,0.04);
  cursor:pointer;display:flex;align-items:center;justify-content:center;
  color:#012169;
}
.rk-drawer-close:hover{background:rgba(0,0,0,0.08)}
.rk-drawer-close svg{width:18px;height:18px}

.rk-drawer-nav{
  display:flex;flex-direction:column;
  padding:10px 12px;flex:1;
}
.rk-drawer-link{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;
  border-radius:8px;
  font-family:inherit;
  font-size:14px;font-weight:600;
  letter-spacing:.6px;text-transform:uppercase;
  color:#1C1C2E;
  text-decoration:none;
  transition:background .15s,color .15s,transform .15s;
}
.rk-drawer-link:hover{background:rgba(1,33,105,0.06);color:#012169;transform:translateX(2px)}
.rk-drawer-link.is-active{
  background:rgba(201,165,71,0.12);
  color:#012169;
}
.rk-drawer-link.is-active::before{
  content:'';display:inline-block;
  width:3px;height:18px;border-radius:2px;
  background:#C9A547;margin-right:4px;
}

.rk-drawer-divider{
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(0,0,0,0.08),transparent);
  margin:8px 16px;
}

.rk-drawer-actions{
  padding:16px 16px 22px;
  display:flex;flex-direction:column;gap:10px;
  border-top:1px solid rgba(0,0,0,0.06);
  flex-shrink:0;
  background:#faf9f6;
}
.rk-drawer-actions a,
.rk-drawer-actions button{
  display:flex;align-items:center;justify-content:center;
  padding:13px 16px;
  border-radius:6px;
  font-size:12px;font-weight:700;
  letter-spacing:1px;text-transform:uppercase;
  text-decoration:none;cursor:pointer;
  font-family:inherit;
  transition:transform .15s,box-shadow .15s,opacity .15s;
  border:1.5px solid transparent;
}
.rk-drawer-actions .rk-act-login{
  color:#012169;border-color:#012169;background:transparent;
}
.rk-drawer-actions .rk-act-login:hover{background:#012169;color:#fff}
.rk-drawer-actions .rk-act-register{
  color:#fff;background:#012169;
}
.rk-drawer-actions .rk-act-register:hover{background:#C9A547;color:#012169}
.rk-drawer-actions .rk-act-logout{
  color:#a14040;border-color:rgba(206,17,38,0.4);background:transparent;
}
.rk-drawer-actions .rk-act-logout:hover{background:rgba(206,17,38,0.08)}

.rk-drawer-user{
  display:flex;align-items:center;gap:12px;
  padding:14px 16px;margin:8px 12px;
  border-radius:10px;
  background:linear-gradient(135deg,rgba(1,33,105,0.06),rgba(201,165,71,0.06));
  border:1px solid rgba(1,33,105,0.1);
}
.rk-drawer-user-av{
  width:42px;height:42px;border-radius:50%;
  background:linear-gradient(135deg,#012169,#023399);
  color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:16px;flex-shrink:0;
  font-family:'Cormorant Garamond','Bricolage Grotesque',serif;
}
.rk-drawer-user-info{min-width:0;flex:1}
.rk-drawer-user-name{
  font-size:14px;font-weight:700;color:#1C1C2E;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.rk-drawer-user-role{
  font-size:11px;color:#6B6B80;text-transform:uppercase;letter-spacing:.5px;
  margin-top:2px;
}

body.rk-no-scroll{overflow:hidden;touch-action:none}

@media (max-width: 880px){
  .rk-burger{display:flex}
  .header-nav{display:none !important}
  /* Hide bulky text buttons inline — they move into the drawer */
  .header-actions .btn-login,
  .header-actions .btn-register{display:none !important}
  /* Keep header-actions slot so burger sits there */
  .header-actions{gap:8px !important; justify-content:flex-end !important}
  /* Force 2-column layout: logo + actions(burger). Some pages set 1fr auto 1fr inline. */
  .header-top{grid-template-columns:1fr auto !important; padding-left:20px !important; padding-right:20px !important}
  header .header-inner{padding-left:16px !important; padding-right:16px !important}
}

@media (max-width: 640px){
  /* Shrink logo a bit on tight screens */
  .header-logo-img{height:38px !important}
  .header-top{padding-left:14px !important; padding-right:14px !important; gap:10px !important}
  /* Recruiter dashboard: collapse extra header-right controls into burger */
  .header-right > #company-label{display:none !important}
  .header-right > .btn-sm{display:none !important}
}

/* On medium screens (tablet), keep things compact */
@media (max-width: 880px){
  .header-right{gap:8px !important}
  .header-right .plan-badge{font-size:10px !important; padding:3px 8px !important}
}

@media (max-width: 480px){
  .rk-drawer{width:100vw}
  .rk-drawer-head{padding:14px 16px}
}
