/* Results page styles - korttien tyylit palautettu */
/* polku: \wp-content\plugins\jb-service-finder\assets\css\results.css */

/* Results container */
.jb-svf-results {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
    box-sizing: border-box;
}


/* Cards layout */
.jb-svf-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, 374px);
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jb-svf-card {
    width: 374px;
    padding: 20px;
    border-radius: 4px;
    background: white;
    border: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}


.jb-svf-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.jb-svf-card-logo {
    width: 100px;
    height: 100px;
    aspect-ratio: 1/1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jb-svf-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    max-width: 100%;
    max-height: 100%;
}

.jb-svf-card-logo-placeholder {
    width: 100px;
    height: 100px;
    background: #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #dee2e6;
}

.jb-svf-card-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    padding-top: 0;
    margin-top: 0px;
}

.jb-svf-card-name {
    max-width: 216px;
    color: #18292F;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.2;
    margin: 0;
}

.jb-svf-card-description {
    max-width: 216px;
    color: #2E2E2E;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    margin: 0;
}

/* Status messages */
.jb-svf-status {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 1.1rem;
}

.jb-svf-error {
    text-align: center;
    padding: 2rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    font-size: 1.1rem;
}

/* Service info */
.jb-svf-service-info {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Responsiivisuus */
@media (max-width: 768px) {
    .jb-svf-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .jb-svf-card {
        width: 100%;
        max-width: 374px;
        margin: 0 auto;
    }
    
    .jb-svf-card-content {
        gap: 15px;
    }
    
    .jb-svf-card-logo {
        width: 80px;
        height: 80px;
    }
    
    .jb-svf-card-logo-placeholder {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .jb-svf-card {
        padding: 15px;
    }
    
    .jb-svf-card-content {
        gap: 12px;
    }
    
    .jb-svf-card-logo {
        width: 70px;
        height: 70px;
    }
    
    .jb-svf-card-logo-placeholder {
        width: 70px;
        height: 70px;
    }
    
    .jb-svf-card-name {
        font-size: 1.1rem;
    }
    
    .jb-svf-card-description {
        font-size: 0.9rem;
    }
}
