Spaces:
Sleeping
Sleeping
File size: 4,232 Bytes
e17ada1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 | .navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 1000;
background: var(--bg-nav);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border-bottom: 1px solid var(--border-subtle);
transition: all var(--transition-base);
}
.navbar.scrolled {
box-shadow: var(--shadow-md);
}
.navbar-container {
display: flex;
justify-content: space-between;
align-items: center;
height: 72px;
max-width: var(--container-max);
margin: 0 auto;
padding: 0 24px;
}
.nav-logo {
font-size: 1.4rem;
font-weight: 800;
background: var(--accent-gradient);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
letter-spacing: -0.5px;
flex-shrink: 0;
}
.nav-left {
display: flex;
align-items: center;
gap: 20px;
}
/* Status Badge in Nav */
.status-badge {
display: inline-flex;
align-items: center;
gap: 8px;
background: transparent;
border: none;
padding: 0;
color: var(--accent-primary);
font-size: 0.75rem;
font-weight: 600;
text-decoration: none;
}
.status-dot {
width: 6px;
height: 6px;
background: #10b981;
border-radius: 50%;
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.nav-right {
display: flex;
align-items: center;
gap: 24px;
}
.nav-links {
display: flex;
align-items: center;
gap: 24px;
list-style: none;
}
.nav-links a {
font-size: 0.9rem;
font-weight: 500;
color: var(--text-secondary);
position: relative;
padding: 4px 0;
transition: color 0.2s;
white-space: nowrap;
}
.nav-links a:hover {
color: var(--accent-primary);
}
.nav-links a::after {
content: '';
position: absolute;
bottom: -2px;
left: 0;
width: 0;
height: 2px;
background: var(--accent-gradient);
transition: width 0.3s;
}
.nav-links a:hover::after {
width: 100%;
}
.theme-toggle {
font-size: 1.1rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
width: 38px;
height: 38px;
border-radius: 50%;
background: var(--bg-card);
border: 1px solid var(--border-subtle);
transition: all 0.3s;
flex-shrink: 0;
}
.theme-toggle:hover {
transform: scale(1.1);
border-color: var(--accent-primary);
}
/* Hamburger — hidden on desktop */
.mobile-menu-btn {
display: none;
padding: 4px;
z-index: 3000; /* Stays above the full-screen menu */
background: none;
border: none;
cursor: pointer;
}
.hamburger {
width: 24px;
height: 2px;
background: var(--text-primary);
position: relative;
transition: all 0.3s;
display: block;
}
.hamburger::before,
.hamburger::after {
content: '';
position: absolute;
left: 0;
width: 24px;
height: 2px;
background: var(--text-primary);
transition: all 0.3s;
}
.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }
.hamburger.open { background: transparent; }
.hamburger.open::before { transform: rotate(45deg); top: 0; }
.hamburger.open::after { transform: rotate(-45deg); top: 0; }
/* =============================================
MOBILE RESPONSIVE — this is the key fix
============================================= */
@media (max-width: 768px) {
/* Hide the desktop nav links */
.nav-links {
display: none;
}
/* Show hamburger */
.mobile-menu-btn {
display: flex;
}
/* When menu is open, show as full-screen overlay */
.nav-links.open {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: var(--bg-primary); /* Solid background to prevent overlap */
z-index: 2000; /* Ensure it stays above everything */
align-items: center;
justify-content: center;
gap: 32px;
padding-top: 20px;
}
.hide-mobile {
display: none;
}
.nav-links.open a {
font-size: 1.5rem;
font-weight: 600;
color: var(--text-primary);
}
.nav-right {
gap: 12px;
}
.navbar-container {
padding: 0 16px;
}
} |