﻿/* Confidence Display Component */
.confidence-display {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.confidence-circle {
    position: relative;
    flex-shrink: 0;
}

.circle-progress {
    position: relative;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 1.5s ease-in-out;
}

    .progress-ring-circle.high {
        stroke: #27ae60;
    }

    .progress-ring-circle.medium {
        stroke: #f39c12;
    }

    .progress-ring-circle.low {
        stroke: #e74c3c;
    }

.confidence-score-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

    .confidence-score-main .score {
        display: block;
        font-size: 2.5rem;
        font-weight: 800;
        background: var(--primary-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1;
    }

    .confidence-score-main .label {
        font-size: 0.8rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

.confidence-info {
    flex: 1;
    text-align: left;
}

    .confidence-info h4 {
        font-size: 1.4rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    .confidence-info p {
        color: var(--text-secondary);
        margin-bottom: 1rem;
        line-height: 1.5;
    }

.confidence-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-start;
}

.confidence-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .confidence-tag.high {
        background: linear-gradient(135deg, #27ae60, #2ecc71);
        color: white;
    }

    .confidence-tag.medium {
        background: linear-gradient(135deg, #f39c12, #e67e22);
        color: white;
    }

    .confidence-tag.low {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: white;
    }

    .confidence-tag.architectural {
        background: rgba(102, 126, 234, 0.2);
        color: #667eea;
        border: 1px solid rgba(102, 126, 234, 0.3);
    }

/* Confidence Meter */
.confidence-meter {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    width: 100%;
}

.confidence-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

    .confidence-fill.high {
        background: linear-gradient(90deg, #27ae60, #2ecc71);
    }

    .confidence-fill.medium {
        background: linear-gradient(90deg, #3498db, #2980b9);
    }

    .confidence-fill.low {
        background: linear-gradient(90deg, #e74c3c, #c0392b);
    }

/* Responsive */
@media (max-width: 992px) {
    .confidence-display {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.25rem;
    }

    .confidence-info {
        text-align: center;
        width: 100%;
    }

        .confidence-info h4 {
            font-size: 1.3rem;
            text-align: center;
        }

        .confidence-info p {
            text-align: center;
        }

    .confidence-tags {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .confidence-display {
        padding: 1rem;
        gap: 1.25rem;
    }

    .confidence-circle {
        width: 100px;
        height: 100px;
    }

    .confidence-score-main .score {
        font-size: 2.5rem;
    }

    .confidence-info h4 {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .confidence-display {
        padding: 0.875rem;
        gap: 1rem;
        border-radius: 16px;
    }

    .confidence-circle {
        width: 90px;
        height: 90px;
    }

    .confidence-score-main .score {
        font-size: 2.5rem;
    }

    .confidence-score-main .label {
        font-size: 0.7rem;
    }

    .confidence-info h4 {
        font-size: 1.1rem;
        text-align: center;
    }

    .confidence-info p {
        text-align: center;
    }

    .confidence-tags {
        justify-content: center;
    }

    .confidence-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 400px) {
    .confidence-display {
        padding: 0.75rem;
    }

    .confidence-circle {
        width: 80px;
        height: 80px;
    }

    .confidence-score-main .score {
        font-size: 1.2rem;
    }

    .confidence-info h4 {
        font-size: 1rem;
    }
}

@media (max-width: 320px) {
    .confidence-display {
        padding: 0.6rem;
    }
}
