/* Mobile Navigation Styles */
.mobile-nav {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Define the animation for the gradient border */
@keyframes gradient-border-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(25, 45, 50, 0.9); /* Fallback/inner background color */
    border-radius: 99px; /* Keep the rounded corners */
    padding: 12px 15px; /* Keep existing padding */
    width: calc(100% - 20px);
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(10px); /* Keep the blur effect */

    /* --- Animated Gradient Border --- */
    border: 2px solid transparent; /* Set border thickness, make it transparent */
    /* Define two background layers:
       1. The inner background color (clipped to content/padding).
       2. The gradient for the border (clipped to the border). */
    background-image: linear-gradient(rgba(25, 45, 50, 0.9), rgba(25, 45, 50, 0.9)), /* Inner background */
                      linear-gradient(90deg, #9945FF, #14F195, #9945FF); /* Solana-style gradient (Purple -> Green -> Purple) */
    background-origin: border-box; /* Start background positioning from the border edge */
    background-clip: padding-box, border-box; /* Clip inner background to padding, border gradient to border */
    background-size: 200% 100%; /* Make gradient wider than the container for animation */
    animation: gradient-border-animation 16s linear infinite; /* Apply the defined animation */
    /* --- End Animated Gradient Border --- */
}

.nav-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-button {
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    width: 50px; /* Set a fixed width for all buttons */
    box-sizing: border-box; /* Ensures padding doesn't affect the final width */
}

/* Scale down all nav buttons except for the central galaxy button */
.nav-button:not(.galaxy-button) {
    transform: scale(0.85);
}

.nav-icon {
    font-size: 1.3rem;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    color: #fff;
}

.nav-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.5rem; /* Reduced font size for better fit on fixed-width buttons */
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    color: #fff;
}

/* Active and Hover States */
.nav-button:hover .nav-icon,
.nav-button.active .nav-icon {
    color: #10d7e4; /* Turquoise/Cyan color */
    transform: translateY(-2px);
}

.nav-button:hover .nav-text,
.nav-button.active .nav-text {
    color: #10d7e4; /* Turquoise/Cyan color */
}

/* Glow effect on active */
.nav-button.active::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(16, 215, 228, 0.5) 0%, rgba(16, 215, 228, 0) 70%);
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.7;
    }
}

/* Ripple Effect on Click */
.nav-button.clicked::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(16, 215, 228, 0.3);
    border-radius: 50%;
    transform: scale(0);
    top: 0;
    left: 0;
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Styles for the GALAXY button - Revised for prestige look and correct centering */
.nav-button.galaxy-button {
    position: relative; /* For z-index and potential pseudo-elements */
    width: 96px;        /* Increased from 74px to 78px */
    height: 96px;       /* Increased from 74px to 78px */
    border-radius: 50%; /* Ensures a circular shape */
    padding: 0;         /* Remove default padding */
    margin-top: -32px;  /* Adjusted from -28px for new size, to maintain pop */
    margin-bottom: -32px; /* Add some space between the buttons */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Animated Gradient Border - Brighter for prestige */
    border: 3px solid transparent;
    background-image: linear-gradient(rgba(30, 50, 55, 0.95), rgba(30, 50, 55, 0.95)), /* Inner background */
                      linear-gradient(90deg, #00F2FF, #AD5BFF, #00F2FF); /* Cyan -> Bright Purple -> Cyan gradient */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 250% 100%; /* Wider for a more dynamic animation */
    animation: gradient-border-animation 6s linear infinite; /* Faster animation */

    box-shadow: 0 0 12px rgba(0, 242, 255, 0.6), 0 0 24px rgba(173, 91, 255, 0.5); /* Increased intensity */
    z-index: 5; /* Ensure it's visually distinct */
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; /* Smooth transitions */
}

.nav-button.galaxy-button:hover {
    transform: translateY(-2px) scale(1.05); /* Slight lift and scale on hover */
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.8), 0 0 36px rgba(173, 91, 255, 0.7); /* Increased intensity on hover */
}

.nav-button.galaxy-button.active {
    transform: scale(0.95); /* Slight shrink when active/clicked */
    box-shadow: 0 0 8px rgba(0, 242, 255, 0.6), 0 0 15px rgba(173, 91, 255, 0.5); /* Slightly reduced glow when active */
}

.nav-button.galaxy-button .nav-icon {
    font-size: 1.7rem;  /* Adjusted icon size */
    color: #E0E0E0;     /* Default icon color */
    margin-bottom: 4px; /* Space between icon and text */
    line-height: 1;     /* Ensure tight vertical alignment */
}

.nav-button.galaxy-button .nav-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 0.45rem; /* Adjusted text size */
    color: #B0B0B0;     /* Default text color */
    letter-spacing: -0.5px;
    line-height: 1;     /* Ensure tight vertical alignment */
}

.nav-button.galaxy-button:hover .nav-icon,
.nav-button.galaxy-button.active .nav-icon {
    color: #00F2FF; /* Bright cyan on hover/active */
}

.nav-button.galaxy-button:hover .nav-text,
.nav-button.galaxy-button.active .nav-text {
    color: #00F2FF; /* Bright cyan on hover/active */
}

/* Remove the specific .active::after glow for GALAXY if it conflicts or is not needed due to box-shadow */
.nav-button.galaxy-button.active::after {
    display: none; /* The box-shadow provides a better glow for this button */
}

/* NEW Badge Styles */
.nav-button {
    position: relative; /* Important for absolute positioning of the badge */
}

.new-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #FF6B6B, #FF4757);
    color: white;
    font-family: 'Press Start 2P', cursive;
    font-size: 0.35rem;
    padding: 2px 4px;
    border-radius: 8px;
    border: 1px solid #FF4757;
    box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    z-index: 10;
    transform: scale(0.9);
    animation: newBadgePulse 2s ease-in-out infinite;
    pointer-events: none; /* Prevents interference with button clicks */
}

/* Special positioning for the galaxy button due to its larger size */
.nav-button.galaxy-button .new-badge {
    top: 8px;
    right: 8px;
    transform: scale(1);
}

@keyframes newBadgePulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.9);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    }
}

/* Special pulse for galaxy button */
.nav-button.galaxy-button .new-badge {
    animation: newBadgePulseGalaxy 2s ease-in-out infinite;
}

@keyframes newBadgePulseGalaxy {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(255, 71, 87, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 71, 87, 0.6);
    }
}

/* For smaller screens */
@media (max-width: 480px) {
    .nav-container {
        padding: 10px;
    }
    
    .nav-button {
        padding: 8px;
    }
    
    .nav-icon {
        font-size: 1.1rem;
    }
    
    .nav-text {
        font-size: 0.45rem;
    }

    .new-badge {
        font-size: 0.3rem;
        padding: 1px 3px;
        border-radius: 6px;
    }
} 