/* ChessBlock Homepage Clean Navigation Bar */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.95) 0%, rgba(49, 46, 129, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 4px 24px rgba(168, 85, 247, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* LEFT SECTION: Logo + Dev Badge */
.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    transform: translateY(-2px);
}

.nav-logo img {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.8));
    animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% {
        filter: drop-shadow(0 0 12px rgba(96, 165, 250, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(96, 165, 250, 1));
    }
}

.nav-logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.dev-badge {
    padding: 4px 12px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CENTER SECTION: Public Links */
.nav-center {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #e0e7ff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #a855f7, #ec4899);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* RIGHT SECTION: Auth Controls */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Auth Buttons (Unauthenticated State) */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login,
.btn-signup {
    padding: 10px 24px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.btn-login {
    background: transparent;
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #e0e7ff;
}

.btn-login:hover {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.6);
    color: #ffffff;
}

.btn-signup {
    background: linear-gradient(135deg, #a855f7 0%, #9333ea 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-signup:hover {
    background: linear-gradient(135deg, #9333ea 0%, #7e22ce 100%);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
    transform: translateY(-2px);
}

.btn-signup:active {
    transform: translateY(0);
}

/* User Controls (Authenticated State) */
.user-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Wallet Badge */
.wallet-badge {
    padding: 8px 16px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #c4b5fd;
}

/* Disconnect Button */
.btn-disconnect {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fca5a5;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-disconnect:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.6);
    color: #ef4444;
}

/* State Management */
.auth-buttons.hidden,
.user-controls.hidden {
    display: none;
}

/* Adjust homepage user menu positioning for nav integration */
.homepage-user-menu {
    position: static;
    display: inline-block;
}

/* User menu dropdown positioning */
#user-menu-placeholder .homepage-user-menu {
    position: relative;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }

    .nav-container {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 12px 16px;
    }

    .nav-logo-text {
        font-size: 16px;
    }

    .nav-logo img {
        width: 28px;
        height: 28px;
    }

    .dev-badge {
        display: none;
    }

    .btn-login,
    .btn-signup,
    .btn-disconnect {
        padding: 8px 16px;
        font-size: 13px;
    }

    .wallet-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .auth-buttons {
        gap: 8px;
    }

    .user-controls {
        gap: 8px;
    }

    .btn-login,
    .btn-signup {
        padding: 8px 12px;
        font-size: 12px;
    }

    .wallet-badge {
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Ensure body content doesn't hide under fixed nav */
body {
    padding-top: 70px;
}
