/* Slide-in site navigation drawer */

.nav-toggle {
position: fixed;
top: 20px;
right: 20px;
width: 48px;
height: 48px;
background: rgba(0, 0, 0, 0.6);
border: 2px solid rgba(102, 126, 234, 0.5);
border-radius: 8px;
cursor: pointer;
z-index: 9000;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 5px;
transition: all 0.3s ease;
}

.nav-toggle span {
display: block;
width: 22px;
height: 2px;
background: #667eea;
border-radius: 1px;
transition: all 0.3s ease;
}

.nav-toggle:hover {
border-color: #667eea;
box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.nav-toggle:hover span {
background: #fff;
box-shadow: 0 0 8px rgba(102, 126, 234, 0.8);
}

.nav-toggle.open span:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}

.nav-backdrop {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
z-index: 9400;
}

.nav-backdrop.open {
opacity: 1;
pointer-events: auto;
}

.nav-drawer {
position: fixed;
top: 0;
right: 0;
height: 100%;
width: 320px;
max-width: 85vw;
background: linear-gradient(135deg, #0a0a0a 0%, #16161f 100%);
border-left: 2px solid rgba(102, 126, 234, 0.4);
box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
transform: translateX(100%);
transition: transform 0.3s ease;
z-index: 9500;
display: flex;
flex-direction: column;
padding: 25px;
overflow-y: auto;
}

.nav-drawer.open {
transform: translateX(0);
}

.nav-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.nav-brand {
display: flex;
align-items: center;
gap: 12px;
}

.nav-logo {
width: 28px;
height: 28px;
border-radius: 4px;
}

.nav-title {
font-family: 'Courier New', monospace;
font-size: 1.1rem;
font-weight: 700;
letter-spacing: 4px;
color: #fff;
text-shadow: 0 0 15px rgba(102, 126, 234, 0.8);
}

.nav-close {
background: none;
border: none;
color: #667eea;
font-size: 2rem;
line-height: 1;
cursor: pointer;
padding: 0 5px;
transition: all 0.3s ease;
}

.nav-close:hover {
color: #fff;
transform: rotate(90deg);
}

.nav-link {
display: block;
color: #ccc;
text-decoration: none;
font-size: 1rem;
letter-spacing: 2px;
text-transform: uppercase;
padding: 14px 12px;
border-left: 2px solid transparent;
transition: all 0.25s ease;
}

.nav-link:hover {
color: #fff;
border-left-color: #667eea;
background: rgba(102, 126, 234, 0.1);
transform: translateX(5px);
}

.nav-current {
color: #667eea;
border-left-color: #667eea;
}

.nav-cta {
display: block;
margin-top: auto;
padding: 16px;
text-align: center;
color: #fff;
text-decoration: none;
font-weight: 700;
letter-spacing: 2px;
text-transform: uppercase;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 8px;
transition: all 0.3s ease;
}

.nav-cta:hover {
box-shadow: 0 0 25px rgba(102, 126, 234, 0.6);
transform: translateY(-2px);
}

@media (max-width: 480px) {
.nav-toggle {
top: 12px;
right: 12px;
width: 44px;
height: 44px;
}
}

@media (prefers-reduced-motion: reduce) {
.nav-drawer,
.nav-backdrop,
.nav-toggle,
.nav-toggle span,
.nav-link,
.nav-close,
.nav-cta {
transition: none;
}
}
