nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0,0,0,0.7);
    padding: 10px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.nav-scroll-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    position: relative;
}

.nav-scroll-button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-scroll-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-scroll-button:active {
    transform: scale(0.95);
}

.nav-scroll-button.hidden {
    opacity: 0.3;
    pointer-events: none;
}

.nav-links-wrapper {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.nav-links-wrapper::-webkit-scrollbar {
    height: 6px;
}

.nav-links-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.nav-links-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.nav-links-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

nav > div {
    display: flex;
    gap: 20px;
    padding: 5px 0;
    white-space: nowrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    padding: 5px 15px;
    border-radius: 5px;
    background-color: #FF5722;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.coffee-button {
    background-color: #FFDD00;
    color: #000;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

nav a:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.community-nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    font-weight: bold !important;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4) !important;
    animation: pulse-glow 2s ease-in-out infinite;
}

.community-nav-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.6) !important;
    transform: scale(1.1) !important;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 2px 15px rgba(102, 126, 234, 0.6);
    }
}

.rating-nav-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #000 !important;
    font-weight: bold !important;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4) !important;
    animation: star-glow 2s ease-in-out infinite;
}

.rating-nav-btn:hover {
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.6) !important;
    transform: scale(1.1) !important;
}

@keyframes star-glow {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
    }
    50% {
        box-shadow: 0 2px 15px rgba(255, 215, 0, 0.6);
    }
}
