/* * Clever Comparison Row - 
 * Frameworks used: None (100% Vanilla CSS)
 */

:root {
    --clvr-blue: #2563eb;
    --clvr-blue-hover: #1d4ed8;
    --clvr-dark: #0f172a;
    --clvr-gray: #64748b;
    --clvr-border: #e2e8f0;
    --clvr-bg-stats: #f8fafc;
    --clvr-radius: 12px;
}

/* 1. Reset & Container */
.clvr-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* 2. Main Row Card */
.clvr-row {
    background: #ffffff;
    border: 1px solid var(--clvr-border);
    border-radius: var(--clvr-radius);
    padding: 1.5rem;
    display: flex;
    flex-direction: column; /* Mobile first stack */
    gap: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.clvr-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

/* 3. Branding & Badge */
.clvr-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.clvr-logo {
    max-width: 120px;
    max-height: 50px;
    height: auto;
    object-fit: contain;
    margin-bottom: 0.75rem;
}

.clvr-logo-fallback {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: var(--clvr-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.clvr-badge {
    font-size: 10px;
    font-weight: 700;
    color: #059669 !important;
    background: #ecfdf5 !important;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4. Info Section & Rating Fix */
.clvr-info h3 { 
    margin: 0 0 6px 0; 
    font-size: 1.3rem; 
    color: var(--clvr-dark); 
    font-weight: 700;
}

.clvr-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.clvr-stars { 
    color: #f59e0b !important; 
    font-weight: 700; 
    white-space: nowrap; /* CRITICAL: Prevents star from jumping above number */
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.clvr-count { 
    color: var(--clvr-gray); 
    font-size: 0.85rem; 
}

.clvr-no-reviews { 
    font-size: 13px; 
    color: var(--clvr-gray); 
    font-style: italic; 
}

.clvr-loc { 
    font-size: 0.85rem; 
    color: var(--clvr-gray); 
    border-left: 1px solid var(--clvr-border); 
    padding-left: 8px; 
}

/* 5. Stats Layout */
.clvr-stats {
    display: flex;
    gap: 2rem;
}

.clvr-stat-box small {
    display: block;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 800;
    color: var(--clvr-gray);
    margin-bottom: 4px;
}

.clvr-stat-box p {
    margin: 0;
    font-weight: 700;
    color: var(--clvr-dark);
    font-size: 1rem;
    white-space: nowrap; /* Handles the shortened 'Contact' logic nicely */
}

/* 6. Action Button Alignment */
.clvr-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clvr-cta-button {
    display: block;
    background: var(--clvr-blue) !important;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none !important;
    padding: 14px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.clvr-cta-button:hover {
    background: var(--clvr-blue-hover) !important;
    transform: translateY(-1px);
}

.clvr-lic {
    display: block;
    text-align: center;
    font-size: 11px;
    color: var(--clvr-gray);
    margin-top: 10px;
}

/* 7. DESKTOP ALIGNMENT (The Alignment Lock) */
@media (min-width: 768px) {
    .clvr-row {
        flex-direction: row;
        align-items: center;
        padding: 2rem;
    }

    /* Set fixed basis for consistent columns while allowing info to grow */
    .clvr-brand { 
        flex: 0 0 150px; 
        border-right: 1px solid var(--clvr-border); 
        padding-right: 1.5rem; 
    }

    .clvr-info { 
        flex: 1; 
        padding: 0 2rem; 
    }

    .clvr-stats { 
        flex: 0 0 auto; 
        border-left: 1px solid var(--clvr-border); 
        border-right: 1px solid var(--clvr-border); 
        padding: 0 2rem;
        min-width: 220px; /* Ensures stats don't collapse */
    }

    .clvr-action { 
        flex: 0 0 180px; 
        padding-left: 1.5rem; 
    }

    .clvr-cta-button {
        width: 100%; /* Makes all buttons the same width in the column */
    }
}