/**
 * Counter Block Styles
 */

.zonkey-counter {
    padding: 3rem 0;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(var(--counter-columns, 4), 1fr);
    gap: var(--counter-gap, 2rem);
}

.counter-item {
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Shadow sizes */
.counter-item.has-shadow.shadow-small {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.counter-item.has-shadow.shadow-medium {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.counter-item.has-shadow.shadow-large {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Hover Effects */
.counter-item.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.counter-item.hover-grow:hover {
    transform: scale(1.03);
}

.counter-item.hover-glow:hover {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.counter-item.hover-border:hover {
    border-color: var(--color-primary, #2563eb) !important;
}

.counter-icon {
    margin-bottom: 1rem;
}

.counter-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto;
}

.counter-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--color-primary, #2563eb);
}

.counter-value {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.counter-prefix,
.counter-suffix {
    font-weight: 600;
}

.counter-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .counter-grid {
        grid-template-columns: 1fr;
    }

    .counter-item {
        padding: 1rem;
    }

    .counter-value {
        font-size: 2rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .counter-number {
        transition: none;
    }
}
