API/client/src/views/GameInterface/components/Navigation.css
2026-04-21 08:48:52 +03:00

142 lines
2.3 KiB
CSS

.main-nav {
height: 45px;
background: #0a0f18;
border-bottom: 1px solid #1a2638;
display: flex;
align-items: stretch;
padding: 0;
overflow-x: auto;
position: relative;
z-index: 10000;
scrollbar-width: none;
}
.main-nav::-webkit-scrollbar {
display: none;
}
.nav-container {
display: flex;
padding: 0 5px;
gap: 2px;
}
.nav-btn {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 0 12px;
margin-right: 10px;
background: transparent;
border: none;
color: #4a5d75;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
position: relative;
font-family: "Orbitron", sans-serif;
}
.nav-btn-content {
display: flex;
align-items: center;
gap: 6px;
}
.nav-btn i {
font-size: 0.9rem;
}
.nav-label {
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.nav-btn.active {
color: #00d4ff;
background: linear-gradient(to bottom, rgba(0, 212, 255, 0.08), transparent);
}
.nav-active-indicator {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 2px;
background: #00d4ff;
box-shadow: 0 0 8px #00d4ff;
transform: scaleX(0);
transition: transform 0.2s ease;
}
.nav-btn.active .nav-active-indicator {
transform: scaleX(1);
}
@media (max-width: 768px) {
.main-nav {
height: 42px;
}
.nav-label {
display: none;
}
.nav-btn {
padding: 0 18px;
}
.nav-btn i {
font-size: 1.1rem;
}
}
.icon-wrapper {
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.nav-badge {
position: absolute;
top: -8px;
right: -8px;
background: #ff3e3e;
color: white;
font-size: 10px;
font-weight: bold;
min-width: 16px;
height: 16px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
padding: 2px;
box-shadow: 0 0 10px rgba(255, 62, 62, 0.5);
border: 1px solid #1a1a1a;
animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
0% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 62, 62, 0.7);
}
70% {
transform: scale(1.1);
box-shadow: 0 0 0 5px rgba(255, 62, 62, 0);
}
100% {
transform: scale(1);
box-shadow: 0 0 0 0 rgba(255, 62, 62, 0);
}
}
.nav-btn.notifications.active i {
color: #ffd700;
}