/**
 * استایل ابزار تست سرعت
 */

.novin-speed-tester .novin-speed-gauge {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: #ffffff;
    margin-bottom: 30px;
}

.novin-gauge-container {
    position: relative;
    width: 240px;
    height: 120px;
    margin: 0 auto 20px;
}

.novin-gauge-svg {
    width: 100%;
    height: 100%;
}

.novin-gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 20;
}

.novin-gauge-progress {
    fill: none;
    stroke: #ffffff;
    stroke-width: 20;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s ease;
    transform-origin: center;
    transform: scaleX(-1);
    /* برای RTL معکوس می‌کنیم */
}

.novin-gauge-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.novin-gauge-value {
    display: block;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.novin-gauge-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
}

.novin-grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: #ffffff;
    color: #7043f2;
    border-radius: 50%;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.novin-speed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.novin-stat-card {
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-align: center;
}

.novin-stat-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(112, 67, 242, 0.1);
    color: #7043f2;
    border-radius: 12px;
}

.novin-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px 0;
}

.novin-stat-label {
    display: block;
    font-size: 14px;
    color: #6c757d;
}

.novin-stat-unit {
    font-size: 16px;
    color: #6c757d;
    margin-right: 4px;
}

.novin-recommendations {
    margin-top: 24px;
}

.novin-recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 12px;
}

.novin-recommendation-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef3c7;
    color: #92400e;
    border-radius: 10px;
    flex-shrink: 0;
}

.novin-recommendation-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.novin-recommendation-content p {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
    line-height: 1.6;
}

.novin-progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.novin-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7043f2 0%, #9d6ff5 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Core Web Vitals Styles */
.novin-web-vitals {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.novin-vital-good {
    border-left: 4px solid #0cce6b;
}

.novin-vital-needs-improvement {
    border-left: 4px solid #ffa400;
}

.novin-vital-poor {
    border-left: 4px solid #ff4e42;
}

.novin-vital-good .novin-stat-icon {
    color: #0cce6b;
}

.novin-vital-needs-improvement .novin-stat-icon {
    color: #ffa400;
}

.novin-vital-poor .novin-stat-icon {
    color: #ff4e42;
}

@media (max-width: 768px) {
    .novin-gauge-container {
        width: 200px;
        height: 100px;
    }

    .novin-gauge-value {
        font-size: 28px;
    }

    .novin-grade-badge {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }

    .novin-speed-stats {
        grid-template-columns: 1fr;
    }
}