/**
 * Lebe Bewusst Results Counter Widget Styles
 *
 * @package LebeBewusst
 */

/* === RESULTS COUNTER CONTAINER === */
.lb-results-counter {
    font-size: 24px;
    font-weight: 600;
    color: #191970;
    margin: 0 0 30px 0;
    line-height: 1.3;
}

/* === COUNT NUMBERS === */
.lb-results-count {
    font-weight: 700;
    color: inherit;
}

.lb-filter-count {
    display: inline;
}

/* === SEPARATOR === */
.lb-count-separator {
    margin: 0 2px;
    color: inherit;
    opacity: 0.7;
}

/* === LINKS === */
.lb-results-counter a,
.lb-methods-link {
    color: #4B0082;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lb-results-counter a:hover,
.lb-methods-link:hover {
    color: #191970;
    text-decoration: underline;
}

/* === INDIVIDUAL COUNT TYPES === */
.lb-count-articles,
.lb-count-methods,
.lb-count-events,
.lb-count-experts,
.lb-count-products,
.lb-count-tips {
    display: inline;
}

/* === EMPTY STATE === */
.lb-count-empty {
    opacity: 0.5;
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
    .lb-results-counter {
        font-size: 22px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .lb-results-counter {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .lb-results-counter {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .lb-count-separator {
        margin: 0 4px;
    }
}

/* === ANIMATION (Optional) === */
.lb-results-counter.lb-animating .lb-results-count {
    animation: countPulse 0.3s ease-out;
}

@keyframes countPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* === LOADING STATE === */
.lb-results-counter.lb-loading {
    opacity: 0.5;
    pointer-events: none;
}

.lb-results-counter.lb-loading .lb-results-count::after {
    content: '...';
    animation: loadingDots 1s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '.';
    }
    40% {
        content: '..';
    }
    60%, 100% {
        content: '...';
    }
}

/* === PRINT STYLES === */
@media print {
    .lb-results-counter {
        font-size: 14pt;
        color: #000;
        margin-bottom: 10pt;
    }

    .lb-results-counter a {
        color: #000;
        text-decoration: none;
    }
}
