/**
 * Animated Stats Counter - Styles v2.0
 * Colors are now set via inline styles for full customization
 */

.asc-stats-section {
    padding: 60px 20px;
    /* Background gradient set via inline style */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.asc-stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 20px;
}

.asc-stat-item {
    text-align: center;
    /* Color set via inline style */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.asc-stat-item.asc-animate {
    opacity: 1;
    transform: translateY(0);
}

.asc-stat-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 20px;
}

.asc-stat-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.asc-stat-circle .asc-circle-bg {
    fill: none;
    /* Stroke color set via inline style with opacity */
    stroke-width: 8;
}

.asc-stat-circle .asc-circle-progress {
    fill: none;
    /* Stroke color set via inline style */
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 440;
    stroke-dashoffset: 440;
    /* Circle is animated via JavaScript - no CSS transition */
}

.asc-stat-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.asc-stat-suffix {
    font-size: 28px;
    font-weight: bold;
}

.asc-stat-label {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 10px;
    line-height: 1.4;
    /* Supports rich content from WYSIWYG editor */
}

/* Support for paragraphs from WYSIWYG */
.asc-stat-label p {
    margin: 0 0 0.5em 0;
    display: block;
}

.asc-stat-label p:last-child {
    margin-bottom: 0;
}

/* Line breaks */
.asc-stat-label br {
    display: block;
    margin: 0.25em 0;
}

/* Text formatting */
.asc-stat-label strong,
.asc-stat-label b {
    font-weight: bold;
}

.asc-stat-label em,
.asc-stat-label i {
    font-style: italic;
}

.asc-stat-label u {
    text-decoration: underline;
}

.asc-stat-label s,
.asc-stat-label strike {
    text-decoration: line-through;
}

/* Lists */
.asc-stat-label ul,
.asc-stat-label ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
    text-align: left;
    display: inline-block;
}

.asc-stat-label li {
    margin: 0.25em 0;
}

/* Headings from editor */
.asc-stat-label h1,
.asc-stat-label h2,
.asc-stat-label h3,
.asc-stat-label h4 {
    margin: 0.5em 0;
    font-weight: bold;
    line-height: 1.2;
}

.asc-stat-label h1 { font-size: 1.8em; }
.asc-stat-label h2 { font-size: 1.5em; }
.asc-stat-label h3 { font-size: 1.3em; }
.asc-stat-label h4 { font-size: 1.1em; }

/* Links */
.asc-stat-label a {
    color: inherit;
    text-decoration: underline;
}

.asc-stat-label a:hover {
    opacity: 0.8;
}

/* Inline styles from editor (font-size, color, etc.) are preserved automatically */
.asc-stat-label span {
    /* Inline styles will be applied directly */
}

/* Responsive */
@media (max-width: 768px) {
    .asc-stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }

    .asc-stat-circle {
        width: 120px;
        height: 120px;
    }

    .asc-stat-number {
        font-size: 28px;
    }

    .asc-stat-suffix {
        font-size: 18px;
    }

    .asc-stat-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .asc-stats-section {
        padding: 40px 15px;
    }
    
    .asc-stats-container {
        gap: 25px;
    }
}
