/**
 * KL Nutrition Frontend Styles
 */

.kln-nutrition-block {
    margin: 40px 0;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 8px;
    overflow-x: auto;
}

.kln-nutrition-title {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 40px 0;
    color: #1d2327;
}

.kln-nutrition-circles {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    min-width: max-content;
    margin: 0 auto;
}

.kln-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.kln-circle-wrap {
    position: relative;
    width: 105px;
    height: 105px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kln-circle-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.kln-circle-bg {
    opacity: 1;
}

.kln-circle-progress {
    stroke-dasharray: 301.593; /* 2 * π * 48 */
    stroke-dashoffset: 301.593;
    transition: stroke-dashoffset 1.5s ease-out;
}

.kln-circle-item.animated .kln-circle-progress {
    stroke-dashoffset: calc(301.593 - (301.593 * var(--percentage) / 100));
}

.kln-circle-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.kln-circle-value {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    color: #1d2327;
}

.kln-circle-value .kln-unit {
    font-size: 11px;
    color: #646970;
    font-weight: 300;
}

.kln-circle-label {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    font-size: 13px;
    line-height: 1.3;
    letter-spacing: 0;
    text-align: center;
    color: #646970;
    margin-top: 2px;
    max-width: 80px;
}

/* Responsive design */
@media (max-width: 768px) {
    .kln-nutrition-circles {
        gap: 20px;
    }
    
    .kln-circle-item {
        min-width: 100px;
    }
    
    .kln-circle-wrap {
        width: 100px;
        height: 100px;
    }
    
    .kln-circle-value {
        font-size: 16px;
    }
    
    .kln-circle-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .kln-nutrition-block {
        padding: 30px 15px;
    }
    
    .kln-nutrition-title {
        font-size: 18px;
        margin-bottom: 30px;
    }
    
    .kln-nutrition-circles {
        gap: 15px;
    }
    
    .kln-circle-item {
        min-width: 80px;
    }
    
    .kln-circle-wrap {
        width: 80px;
        height: 80px;
    }
    
    .kln-circle-value {
        font-size: 14px;
    }
    
    .kln-circle-label {
        font-size: 11px;
    }
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kln-circle-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.kln-circle-item:nth-child(1) { animation-delay: 0.1s; }
.kln-circle-item:nth-child(2) { animation-delay: 0.2s; }
.kln-circle-item:nth-child(3) { animation-delay: 0.3s; }
.kln-circle-item:nth-child(4) { animation-delay: 0.4s; }
.kln-circle-item:nth-child(5) { animation-delay: 0.5s; }
.kln-circle-item:nth-child(6) { animation-delay: 0.6s; }
.kln-circle-item:nth-child(7) { animation-delay: 0.7s; }

