/**
 * Location Statistics Block - Frontend Styles
 */

/* Statistics block should be transparent - no background */
.loc-re-stats {
    /* No padding or background - stats are inline within about section */
}

.loc-re-stats__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;

    @media (max-width: 768px) {
        padding: 0 1rem;
    }
}

.loc-re-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.loc-re-stats__item {
    text-align: center;
    /* Remove all card styling to match reference */
}

.loc-re-stats__number {
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
    line-height: 1;
    /* Make visible by default - animation can be added later */
    opacity: 1;
    transform: translateY(0);
}

.loc-re-stats__label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Items are always visible - only numbers animate */
.loc-re-stats__item {
    /* Items are visible by default */
}

/* Animation handled in main number styles above */

// Optional button styling
.loc-re-stats__button-wrapper {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
}

.loc-re-stats__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
}

.loc-re-stats__button:hover {
    background: #0056b3;
    transform: translateY(-2px);
    color: white;
}

.loc-re-stats__button:active {
    transform: translateY(0);
}

// Animations
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

// Pulse animation for numbers
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.loc-re-stat-number.pulse {
    animation: pulse 2s ease-in-out infinite;
}

// Accessibility improvements
@media (prefers-reduced-motion: reduce) {
    .wp-block-portal-loc-re-stats {
        .loc-re-stat-item {
            animation: none;
            opacity: 1;
            transform: none;

            &:hover {
                transform: none;
            }

            &::before {
                transition: none;
            }

            .loc-re-stat-number {
                &[data-animate="true"]::after {
                    animation: none;
                }

                &.pulse {
                    animation: none;
                }
            }
        }
    }
}

// High contrast mode support
@media (prefers-contrast: high) {
    .wp-block-portal-loc-re-stats {
        .loc-re-stat-item {
            border: 2px solid var(--loc-re-text-dark, #1f2937);

            .loc-re-stat-number {
                color: var(--loc-re-text-dark, #1f2937);
            }
        }
    }
}

// Print styles
@media print {
    .wp-block-portal-loc-re-stats {
        .loc-re-stat-item {
            break-inside: avoid;
            box-shadow: none;
            border: 1px solid #ccc;
            transform: none;

            &::before {
                display: none;
            }
        }
    }
}

