/* Counter Grid Styles */
.amaya-counters-widget .counters-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr); /* Default to 1 column for mobile */
    gap: 2rem;
    text-align: center;
}

@media (min-width: 640px) { /* sm */
    .amaya-counters-widget .counters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) { /* lg */
    .amaya-counters-widget .counters-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* NEW Card Styles */
.amaya-counters-widget .amaya-counter-card {
    position: relative;
    padding: 2rem;
    border-radius: 0.5rem;
    background-color: rgba(2, 6, 23, 0.9); /* bg-slate-950/90 */
    border: 1px solid rgba(244, 63, 94, 0.2); /* border-rose-500/20 */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 15px rgba(244, 63, 94, 0.05); /* shadow-2xl shadow-rose-500/5 */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    animation: amaya-fadeInUp 1.2s ease-out;
}

.amaya-counters-widget .amaya-counter-card:hover {
    border-color: rgba(244, 63, 94, 0.4); /* hover:border-rose-500/40 */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 25px rgba(244, 63, 94, 0.1); /* hover:shadow-rose-500/10 */
}

/* Inner glowing background effect */
.amaya-counters-widget .glowing-background {
    position: absolute;
    inset: -1rem;
    width: calc(100% + 2rem);
    height: calc(100% + 2rem);
    border-radius: 0.5rem; /* Should match parent */
    background-image: linear-gradient(to right, rgba(244, 63, 94, 0.05), rgba(245, 158, 11, 0.05)); /* from-rose-500/5 to-amber-500/5 */
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.amaya-counters-widget .amaya-counter-card:hover .glowing-background {
    opacity: 1;
}

.amaya-counters-widget .card-content {
    position: relative;
    z-index: 1;
}


/* Animation Delays */
.amaya-counters-widget .amaya-counter-card.delay-1 {
    animation-delay: 0.2s;
    animation-fill-mode: both;
}
.amaya-counters-widget .amaya-counter-card.delay-2 {
    animation-delay: 0.4s;
    animation-fill-mode: both;
}
.amaya-counters-widget .amaya-counter-card.delay-3 {
    animation-delay: 0.6s;
    animation-fill-mode: both;
}


/* Counter Number and Label Styles */
.amaya-counters-widget .counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-image: linear-gradient(to right, #fb7185, #fbbf24);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums slashed-zero;
}

@media (min-width: 640px) {
    .amaya-counters-widget .counter-number {
        font-size: 3rem;
        line-height: 1;
    }
}

.amaya-counters-widget .counter-label {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: #94a3b8; /* text-slate-400 */
}

@keyframes amaya-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}