/* Base Styles */

.fnm-nav-container {

    position: fixed;

    bottom: 0;

    left: 0;

    right: 0;

    z-index: 9999;

    padding: 10px 5px 15px;

    background: rgba(255, 255, 255, 0.98);

    backdrop-filter: blur(10px);

    border-top: 1px solid rgba(0, 0, 0, 0.1);

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);

}



.fnm-nav {

    display: flex;

    justify-content: space-around;

    align-items: center;

    position: relative;

    max-width: 100%;

    margin: 0 auto;

    padding: 0 5px;

}



.fnm-nav-link {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-decoration: none;

    color: #666;

    padding: 8px 5px;

    transition: all 0.3s ease;

    position: relative;

    border-radius: 8px;

    flex: 1;

    min-width: 0;

    max-width: 17%;

}



.fnm-icon {

    font-size: 1.3rem;

    margin-bottom: 4px;

    width: 24px;

    height: 24px;

    display: flex;

    align-items: center;

    justify-content: center;

    transition: transform 0.3s ease;

}



.fnm-nav-text {

    font-size: 0.7rem;

    font-weight: 500;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

    max-width: 100%;

    text-align: center;

    transition: all 0.3s ease;

}



/* Active More Link */

.fnm-more-link.active {

    color: #ff3b30;

    transform: translateY(-5px);

}



.fnm-nav-indicator {

    position: absolute;

    bottom: -5px;

    left: 50%;

    width: 20%;

    height: 3px;

    background: #ff3b30;

    border-radius: 3px 3px 0 0;

    transform: translateX(-50%);

    transition: left 0.3s ease;

}



/* Hover Effects */

.fnm-nav-link:not(.fnm-more-link):hover {

    color: #ff3b30;

    transform: translateY(-3px);

    background: rgba(255, 59, 48, 0.05);

}



/* Chat Highlight Core */

.fnm-chat-active {

    color: #fff !important;

    background: linear-gradient(145deg, #ff3b30, #ff5e55) !important;

    transform: translateY(-5px) scale(1.01);

    box-shadow: 0 1px 1px rgba(255, 59, 48, 0.3),

        0 6px 12px rgba(255, 59, 48, 0.2),

        0 0 0 3px rgba(255, 255, 255, 0.8),

        0 0 0 1px rgba(255, 59, 48, 0.3);

    z-index: 2;

}



/* Icon Enhancement */

.fnm-chat-active .fnm-icon {

    transform: scale(1.2);

    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));

}



/* Text Styling */

.fnm-chat-active .fnm-nav-text {

    font-weight: 700;

    text-shadow: 0 1px 2px rgba(0,0,0,0.2);

}



/* Pulse Animation */

@keyframes pulse {

    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.4); }

    16.67% { box-shadow: 0 0 0 15px rgba(255, 59, 48, 0); }

    17% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }

    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }

}



/* Responsive Adjustments */

@media (min-width: 500px) {

    .fnm-nav-container {

        padding: 12px 10px 20px;

    }

    .fnm-nav {

        max-width: 500px;

        margin: 0 auto;

    }

    .fnm-icon {

        font-size: 1.4rem;

        margin-bottom: 6px;

    }

    .fnm-nav-text {

        font-size: 0.75rem;

    }

    .fnm-nav-indicator {

        bottom: -8px;

    }

}



@media (max-width: 350px) {

    .fnm-nav-text {

        font-size: 0.6rem;

    }

    .fnm-icon {

        font-size: 1.1rem;

    }

}



@media (max-width: 782px) and (min-width: 601px) {

    body.admin-bar .fnm-nav-container {

        bottom: 46px;

    }

}