/* ==========================================================================
   STATS SHORTCODE
   ========================================================================== */

.oe-stats {
    display: grid;
    width: 100%;
    gap: 16px;
    margin: 20px 0;
}

/* Column variants */
.oe-stats--cols-auto {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}

.oe-stats--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.oe-stats--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.oe-stats--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ==========================================================================
   INDIVIDUAL STAT
   ========================================================================== */

.oe-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 20px 16px;
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.oe-stat dt,
.oe-stat dd {
    margin: 0;
    padding: 0;
}

/* Icon */
.oe-stat__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    color: var(--oe-color-secondary);
}

.oe-stat__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Value */
.oe-stat__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    line-height: 1;
    margin-bottom: 8px;
}

.oe-stat__number {
    font-size: 32px;
    font-weight: 700;
    color: var(--oe-color-text-dark);
}

.oe-stat__prefix,
.oe-stat__suffix {
    font-size: 18px;
    font-weight: 700;
    color: var(--oe-color-primary);
}

/* Label */
.oe-stat__label {
    font-size: 13px;
    font-weight: 400;
    color: var(--oe-color-text-light);
    letter-spacing: 0.3px;
}

/* ==========================================================================
   STYLE VARIANTS
   ========================================================================== */

/* Cards (default) */
.oe-stats--cards .oe-stat {
    background: var(--oe-color-white);
    border: 1px solid var(--oe-color-border);
}

.oe-stats--cards .oe-stat:hover {
    transform: translateY(-2px);
    border-color: var(--oe-color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Minimal */
.oe-stats--minimal .oe-stat {
    background: transparent;
    border: none;
    padding: 16px 12px;
}

.oe-stats--minimal .oe-stat:hover {
    transform: translateY(-2px);
}

/* Highlight */
.oe-stats--highlight .oe-stat {
    background: linear-gradient(135deg, var(--oe-color-primary-a8), rgba(214, 223, 33, 0.06));
    border: 1px solid var(--oe-color-focus-ring);
}

.oe-stats--highlight .oe-stat:hover {
    transform: translateY(-2px);
    border-color: var(--oe-color-primary-a40);
    box-shadow: 0 4px 16px var(--oe-color-primary-a10);
}

.oe-stats--highlight .oe-stat__number {
    color: var(--oe-color-primary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .oe-stats--cols-3,
    .oe-stats--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .oe-stats--cols-auto {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .oe-stats {
        gap: 12px;
    }

    .oe-stats--cols-2,
    .oe-stats--cols-3,
    .oe-stats--cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .oe-stats--cols-auto {
        grid-template-columns: 1fr;
    }

    .oe-stat {
        padding: 16px 12px;
    }

    .oe-stat__icon {
        width: 24px;
        height: 24px;
        margin-bottom: 8px;
    }

    .oe-stat__number {
        font-size: 24px;
    }

    .oe-stat__prefix,
    .oe-stat__suffix {
        font-size: 14px;
    }

    .oe-stat__label {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oe-stat {
        transition: none;
    }

    .oe-stat:hover {
        transform: none;
    }
}
