/**
 * Стили для счетчиков уведомлений
 */

/* Общие стили для счетчиков */
.countnew, .bottommenucounters {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-sizing: border-box;
    z-index: 10;
    animation: pulse 2s infinite;
}

/* Анимация пульсации для привлечения внимания */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

/* Счетчики в главном меню */
.top-menu li {
    position: relative;
}

.top-menu .countnew {
    top: -8px;
    right: -8px;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
}

/* Счетчики в нижнем меню */
#mobilemenu a {
    position: relative;
}

.bottommenucounters {
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    font-size: 10px;
}

/* Специальный счетчик для кнопки "Главная" */
#bottommenucounterstotal {
    background-color: #ff6b35;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Скрытие счетчиков когда нет уведомлений */
.countnew:empty,
.bottommenucounters:empty,
.countnew[style*="display: none"],
.bottommenucounters[style*="display: none"] {
    display: none !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .countnew, .bottommenucounters {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -4px;
        right: -4px;
    }
    
    .top-menu .countnew {
        min-width: 18px;
        height: 18px;
        font-size: 11px;
    }
}

/* Стили для больших чисел (99+) */
.countnew[data-count="99+"],
.bottommenucounters[data-count="99+"] {
    font-size: 9px;
    padding: 1px;
}

/* Цветовые вариации для разных типов уведомлений */
.countnew[data-type="news"],
#bottommenucountersnews {
    background-color: #2ab6b6;
}

.countnew[data-type="dialogs"],
#bottommenucountersdialogs {
    background-color: #6e45e2;
}

/* Эффект при наведении */
.countnew:hover,
.bottommenucounters:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Стили для скрытых счетчиков */
.countnew.hidden,
.bottommenucounters.hidden {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* Стили для показанных счетчиков */
.countnew.visible,
.bottommenucounters.visible {
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease;
} 