/* Safe Journey Health Therapists Frontend Styles */

/* General Styles */
.sjh-therapist-profile,
.sjh-therapists-directory {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.sjh-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.sjh-section h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.sjh-section h3 {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 15px;
}

.sjh-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sjh-primary-button {
    background-color: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.sjh-primary-button:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.sjh-secondary-button {
    background-color: white;
    color: #3498db;
    border: 1px solid #3498db;
}

.sjh-secondary-button:hover {
    background-color: #f7f9fc;
}

.sjh-no-data {
    color: #7f8c8d;
    font-style: italic;
    padding: 15px 0;
}

/* Profile Header */
.sjh-profile-header {
    display: flex;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
}

.sjh-profile-photo {
    flex: 0 0 200px;
    margin-right: 30px;
}

.sjh-therapist-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sjh-no-photo {
    width: 100%;
    height: 200px;
    background-color: #f7f9fc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
}

.sjh-profile-main-info {
    flex: 1;
}

.sjh-profile-main-info h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.sjh-license-info {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.sjh-board-certs, 
.sjh-specialties {
    margin-bottom: 10px;
}

.sjh-quick-actions {
    margin-top: 25px;
}

.sjh-quick-actions .sjh-button {
    margin-right: 10px;
    margin-bottom: 10px;
}

/* Tabs */
.sjh-tabs {
    margin-bottom: 40px;
}

.sjh-tab-navigation {
    display: flex;
    border-bottom: 2px solid #eaeaea;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.sjh-tab-navigation li {
    margin-right: 5px;
    margin-bottom: -2px;
}

.sjh-tab-navigation li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #7f8c8d;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.sjh-tab-navigation li.active a {
    color: #3498db;
    border-bottom-color: #3498db;
}

.sjh-tab-pane {
    display: none;
}

.sjh-tab-pane.active {
    display: block;
}

/* Field Styles */
.sjh-field-row {
    margin-bottom: 10px;
    display: flex;
}

.sjh-field-label {
    flex: 0 0 30%;
    font-weight: 600;
    color: #34495e;
}

.sjh-field-value {
    flex: 0 0 70%;
}

/* Reputation Score */
.sjh-reputation-score {
    margin-bottom: 20px;
}

.sjh-score-display {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.sjh-score-value {
    font-size: 36px;
    font-weight: 700;
    color: #3498db;
    margin-right: 15px;
}

.sjh-score-label {
    color: #7f8c8d;
}

.sjh-score-bar-container {
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.sjh-score-bar {
    height: 100%;
    background-color: #3498db;
    border-radius: 4px;
}

/* Map */
.sjh-map-container {
    margin-top: 20px;
}

.sjh-map-placeholder {
    height: 200px;
    background-color: #f7f9fc;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

/* Contact Section */
.sjh-contact-section {
    background-color: #f7f9fc;
    padding: 30px;
    border-radius: 6px;
    margin-top: 40px;
}

.sjh-contact-container {
    display: flex;
    flex-wrap: wrap;
}

.sjh-contact-info-column,
.sjh-contact-form-column {
    flex: 1;
    min-width: 300px;
    padding: 0 15px;
}

.sjh-contact-form-container {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Directory Listing */
.sjh-search-filters {
    margin-bottom: 30px;
    background-color: #f7f9fc;
    padding: 20px;
    border-radius: 6px;
}

.sjh-search-bar {
    margin-bottom: 20px;
}

.sjh-search-bar form {
    display: flex;
}

#sjh-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.sjh-search-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: 600;
}

.sjh-advanced-filters {
    background-color: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sjh-advanced-filters h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

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

.sjh-filter-group h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
    color: #34495e;
}

.sjh-filter-options {
    display: flex;
    flex-wrap: wrap;
}

.sjh-filter-options label {
    flex: 0 0 50%;
    margin-bottom: 8px;
}

.sjh-filter-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.sjh-filter-actions button {
    margin-left: 10px;
}

.sjh-result-count {
    margin-bottom: 20px;
    font-weight: 600;
}

.sjh-therapists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Therapist Card */
.sjh-therapist-card {
    border: 1px solid #eaeaea;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.sjh-card-photo {
    position: relative;
    height: 200px;
    background-color: #f7f9fc;
    overflow: hidden;
}

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

.sjh-reputation-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #3498db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.sjh-card-content {
    padding: 20px;
}

.sjh-card-name {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 8px;
}

.sjh-card-name a {
    color: #2c3e50;
    text-decoration: none;
}

.sjh-card-credentials {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.sjh-card-specialties {
    font-size: 14px;
    margin-bottom: 12px;
}

.sjh-card-location {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.sjh-card-actions {
    display: flex;
}

.sjh-card-actions .sjh-button {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
}

/* Pagination */
.sjh-pagination {
    margin-top: 30px;
    text-align: center;
}

.sjh-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border-radius: 4px;
    text-decoration: none;
    background-color: #f7f9fc;
    color: #2c3e50;
}

.sjh-pagination .current {
    background-color: #3498db;
    color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sjh-profile-header {
        flex-direction: column;
    }
    
    .sjh-profile-photo {
        margin-right: 0;
        margin-bottom: 20px;
        flex: none;
        width: 200px;
    }
    
    .sjh-contact-container {
        flex-direction: column;
    }
    
    .sjh-contact-info-column,
    .sjh-contact-form-column {
        padding: 0;
    }
    
    .sjh-contact-info-column {
        margin-bottom: 30px;
    }
    
    .sjh-filter-options label {
        flex: 0 0 100%;
    }
    
    .sjh-therapists-grid {
        grid-template-columns: 1fr;
    }
    
    .sjh-field-row {
        flex-direction: column;
    }
    
    .sjh-field-label,
    .sjh-field-value {
        flex: none;
    }
    
    .sjh-field-label {
        margin-bottom: 5px;
    }
}