/* Basic Frontend CSS */
.spd-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.spd-provider-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.2s;
}

.spd-provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.spd-card-image {
    height: 180px;
    background: #f0f0f0;
    overflow: hidden;
}

.spd-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spd-placeholder-image {
    width: 100%;
    height: 100%;
    background: #e2e2e2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spd-placeholder-image:after {
    content: 'No Image';
    color: #999;
}

.spd-card-content {
    padding: 15px;
}

.spd-card-title {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.spd-card-title a {
    text-decoration: none;
    color: #333;
}

.spd-card-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.spd-rating {
    color: #f39c12;
    font-weight: bold;
}

.spd-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spd-button {
    background: #0073aa;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
}

/* Directory Layout */
.spd-directory-wrapper {
    display: flex;
    gap: 30px;
}

.spd-filters {
    flex: 0 0 250px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    height: fit-content;
}

.spd-results-container {
    flex: 1;
}

.spd-filter-group {
    margin-bottom: 20px;
}

.spd-filter-group h4 {
    margin-bottom: 10px;
    font-size: 1em;
}

.spd-filter-group label {
    display: block;
    margin-bottom: 5px;
}

/* Single Profile */
.spd-single-provider-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.spd-profile-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.spd-profile-photo {
    flex: 0 0 250px;
}
.spd-profile-photo img {
    width: 100%;
    border-radius: 8px;
}

.spd-placeholder-image-large {
    width: 250px;
    height: 250px;
    background: #eee;
    border-radius: 8px;
}

.spd-key-details {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.spd-key-details li {
    margin-bottom: 8px;
}

.spd-tag {
    background: #eef;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: #33a;
    margin-right: 5px;
}

/* Wizard */
.spd-wizard-container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.spd-wizard-step {
    display: none;
}
.spd-wizard-step.active {
    display: block;
}

.spd-wizard-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.spd-match-card {
    border: 2px solid #4caf50; /* Highlight match */
    margin-bottom: 20px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.spd-match-score {
    background: #4caf50;
    color: white;
    padding: 5px 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 1;
}
