/* PSA Vendor Services Directory - Frontend Styles */
/* Author: Ethan Lowery */

.psa-vsd-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.psa-vsd-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.psa-vsd-filter-group {
    display: flex;
    flex-direction: column;
    min-width: 200px;
}

.psa-vsd-filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #495057;
    font-size: 14px;
}

.psa-vsd-filter-group select {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-height: 38px;
}

.psa-vsd-filter-group select:disabled {
    background: #e9ecef;
    color: #6c757d;
}

.psa-vsd-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-height: 38px;
    background: #007cba;
    color: white;
}

.psa-vsd-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.psa-vsd-btn-secondary {
    background: #6c757d;
    color: white;
}

.psa-vsd-btn-secondary:hover {
    background: #545b62;
}

.psa-vsd-results-info {
    margin-bottom: 20px;
    color: #6c757d;
    font-size: 14px;
}

.psa-vsd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.psa-vsd-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.psa-vsd-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.psa-vsd-card-banner {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.psa-vsd-card-banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.psa-vsd-card-avatar {
    position: absolute;
    top: 60px;
    left: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.psa-vsd-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.psa-vsd-card-content {
    padding: 50px 20px 20px;
}

.psa-vsd-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #2c3e50;
    line-height: 1.3;
}

.psa-vsd-card-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px;
}

.psa-vsd-card-contact {
    border-top: 1px solid #e9ecef;
    padding-top: 15px;
}

.psa-vsd-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.psa-vsd-contact-item:last-child {
    margin-bottom: 0;
}

.psa-vsd-contact-icon {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    opacity: 0.7;
}

.psa-vsd-contact-item a {
    color: #007cba;
    text-decoration: none;
    transition: color 0.3s ease;
}

.psa-vsd-contact-item a:hover {
    color: #005a87;
    text-decoration: underline;
}

.psa-vsd-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.psa-vsd-no-results p {
    font-size: 18px;
    margin: 0;
}

.psa-vsd-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.psa-vsd-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #007cba;
    text-decoration: none;
    transition: all 0.3s ease;
}

.psa-vsd-pagination .page-numbers:hover,
.psa-vsd-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.psa-vsd-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .psa-vsd-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .psa-vsd-filter-group {
        min-width: auto;
    }
    
    .psa-vsd-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .psa-vsd-card-content {
        padding: 40px 15px 15px;
    }
    
    .psa-vsd-card-avatar {
        width: 60px;
        height: 60px;
        top: 50px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .psa-vsd-directory {
        padding: 10px;
    }
    
    .psa-vsd-filters {
        padding: 15px;
    }
    
    .psa-vsd-card-banner {
        height: 100px;
    }
    
    .psa-vsd-card-avatar {
        width: 50px;
        height: 50px;
        top: 45px;
    }
    
    .psa-vsd-card-content {
        padding: 30px 15px 15px;
    }
    
    .psa-vsd-card-title {
        font-size: 18px;
    }
}