
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');


.jahannama-mobile-menu {
    display: none;
}


.jahannama-mobile-menu.mobile-active {
    display: block;
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    padding: 5px 10px;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 95%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.jahannama-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.jahannama-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(80, 80, 80, 0.9);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 5px 4px;
    border-radius: 14px;
    min-width: 50px;
    position: relative;
    overflow: hidden;
    flex: 1;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    margin: 0;
    max-width: 90px;
}

.jahannama-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.jahannama-menu-item:hover::before,
.jahannama-menu-item:active::before {
    opacity: 1;
}

.jahannama-menu-item:hover,
.jahannama-menu-item:active {
    color: rgba(40, 40, 40, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.jahannama-menu-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.jahannama-menu-item:hover .jahannama-menu-icon {
    transform: scale(1.05);
}

.jahannama-menu-icon svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.jahannama-menu-item:nth-child(1) .jahannama-menu-icon svg {
    color: #22c55e;
}

.jahannama-menu-item:nth-child(2) .jahannama-menu-icon svg {
    color: #3b82f6;
}

.jahannama-menu-item:nth-child(3) .jahannama-menu-icon svg {
    color: #dc2626;
}

.jahannama-menu-item:nth-child(4) .jahannama-menu-icon svg {
    color: #f59e0b;
}

.jahannama-menu-item:nth-child(5) .jahannama-menu-icon svg {
    color: #8b5cf6;
}

.jahannama-menu-text {
    font-size: 9px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    direction: rtl;
    unicode-bidi: embed;
}

/* Enhanced mobile styles */
@media (max-width: 768px) {
    .jahannama-mobile-menu.mobile-active {
        display: block;
    }
}


@media (prefers-color-scheme: dark) {
    .jahannama-mobile-menu.mobile-active {
        background: rgba(30, 30, 30, 0.25);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .jahannama-menu-item {
        color: rgba(220, 220, 220, 0.9);
    }
    
    .jahannama-menu-item:hover,
    .jahannama-menu-item:active {
        color: rgba(255, 255, 255, 1);
    }
    
    .jahannama-menu-icon {
        background: rgba(0, 0, 0, 0.15);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .jahannama-menu-item:hover .jahannama-menu-icon {
        background: rgba(0, 0, 0, 0.25);
    }
}


@keyframes fadeUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.jahannama-mobile-menu.mobile-active {
    animation: fadeUp 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.jahannama-mobile-menu.mobile-active .jahannama-menu-item:nth-child(1) {
    opacity: 0;
    animation: slideInFromRight 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.jahannama-mobile-menu.mobile-active .jahannama-menu-item:nth-child(2) {
    opacity: 0;
    animation: slideInFromRight 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

.jahannama-mobile-menu.mobile-active .jahannama-menu-item:nth-child(3) {
    opacity: 0;
    animation: slideInFromRight 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.9s;
}

.jahannama-mobile-menu.mobile-active .jahannama-menu-item:nth-child(4) {
    opacity: 0;
    animation: slideInFromRight 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.2s;
}

.jahannama-mobile-menu.mobile-active .jahannama-menu-item:nth-child(5) {
    opacity: 0;
    animation: slideInFromRight 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.5s;
}


.jahannama-menu-item:active {
    transform: translateY(-1px) scale(0.98);
}


.jahannama-menu-text {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Arial, sans-serif;
}


.jahannama-menu-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.jahannama-menu-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}


@media (prefers-contrast: high) {
    .jahannama-mobile-menu.mobile-active {
        background: #000000;
        border-top: 2px solid #ffffff;
    }
    
    .jahannama-menu-item {
        color: #ffffff;
    }
}


@media (prefers-reduced-motion: reduce) {
    .jahannama-menu-item,
    .jahannama-menu-icon {
        transition: none;
    }
    
    .jahannama-mobile-menu.mobile-active,
    .jahannama-mobile-menu.mobile-active .jahannama-menu-item {
        animation: none;
        opacity: 1;
    }
}
