/* ========================================
   MOBILE BAR - Navigation Component
   ======================================== */

.mobile-bar {
    display: none;
    position: fixed;
    width: 100%;
    padding: 0 1px 1px;
    bottom: 0;
    left: 0;
    z-index: 100;
}

.mobile-bar__inner {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
    overflow: clip;
    border-radius: 12px;
    
    /* Background gradient */
    background: linear-gradient(180deg, rgba(79, 64, 67, 1) 0%, rgba(67, 55, 57, 1) 100%);
    
    /* Border gradient */
    border: 1px solid transparent;
    background-image: 
        linear-gradient(180deg, rgba(79, 64, 67, 1) 0%, rgba(67, 55, 57, 1) 100%),
        linear-gradient(180deg, rgba(212, 199, 196, 0.32) 0%, rgba(212, 199, 196, 0.16) 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    
    border-radius: 12px;
    box-shadow: 0px 16px 128px 0px rgba(21, 19, 21, 1);
}

/* ========================================
   MOBILE BAR ITEM
   ======================================== */

.mobile-bar__item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    min-height: 60px;
}

.mobile-bar__item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-bar__item:active {
    background: rgba(255, 255, 255, 0.08);
}

/* Active state with background gradient */
.mobile-bar__item--active {
    position: relative;
}

.mobile-bar__item--active::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 129.86px;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 197, 136, 0.5) 0%,
        rgba(255, 157, 112, 0.7) 62%,
        transparent 100%
    );
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

/* Icon */
.mobile-bar__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    z-index: 1;
}

.mobile-bar__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Default icon color (grayscale gradient) */
.mobile-bar__item .mobile-bar__icon {
    filter: brightness(0) saturate(100%) invert(71%) sepia(7%) saturate(463%) hue-rotate(314deg) brightness(94%) contrast(85%);
}

/* Active icon color (orange gradient effect) */
.mobile-bar__item--active .mobile-bar__icon {
    filter: brightness(0) saturate(100%) invert(86%) sepia(20%) saturate(1500%) hue-rotate(330deg) brightness(105%) contrast(98%);
}

/* Text */
.mobile-bar__text {
    position: relative;
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.33;
    color: #FFFFFF;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
}

/* Default text opacity */
.mobile-bar__item .mobile-bar__text {
    opacity: 0.7;
}

/* Active text full opacity */
.mobile-bar__item--active .mobile-bar__text {
    opacity: 1;
}

/* ========================================
   COUNTER BADGE
   ======================================== */

.mobile-bar__counter {
    position: absolute;
    top: 6px;
    right: calc(50% - 31px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    
    background: linear-gradient(180deg, rgba(221, 44, 74, 1) 0%, rgba(232, 115, 134, 1) 100%);
    border-radius: 4px;
    
    font-family: 'Gilroy', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.23;
    color: #FFFFFF;
    text-align: center;
    
    z-index: 2;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 959px) {
    .mobile-bar {
        display: block;
    }
}

@media (max-width: 599px) {
    .mobile-bar__item {
        padding: 10px 4px;
        min-height: 56px;
    }
    
    .mobile-bar__text {
        font-size: 11px;
    }
    
    .mobile-bar__icon {
        width: 20px;
        height: 20px;
    }
}

