/* Therapist Profiles Styles */

/* Grid Layout */
.therapist-profiles-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.therapist-profiles-grid.columns-1 {
    grid-template-columns: 1fr;
}

.therapist-profiles-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.therapist-profiles-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.therapist-profiles-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Therapist Card */
.therapist-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.therapist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.therapist-image {
    margin-bottom: 1rem;
    text-align: center;
}

.therapist-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f8f9fa;
}

.therapist-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.therapist-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.therapist-name a {
    color: inherit;
    text-decoration: none;
}

.therapist-name a:hover {
    color: #3498db;
}

.therapist-specialty {
    margin: 0 0 0.5rem 0;
    color: #3498db;
    font-weight: 500;
    font-size: 0.95rem;
}

.therapist-experience {
    margin: 0 0 1rem 0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.therapist-bio {
    margin: 0 0 1rem 0;
    color: #555;
    line-height: 1.6;
    flex: 1;
}

.therapist-contact {
    margin: 1rem 0;
    padding: 1rem 0;
    border-top: 1px solid #ecf0f1;
}

.therapist-contact p {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.therapist-contact .dashicons {
    margin-right: 0.5rem;
    color: #3498db;
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.therapist-contact a {
    color: #2c3e50;
    text-decoration: none;
}

.therapist-contact a:hover {
    color: #3498db;
}

.therapist-actions {
    margin-top: auto;
    padding-top: 1rem;
}

.therapist-view-profile {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.therapist-view-profile:hover {
    background: #2980b9;
    color: white;
}

/* Single Therapist Page */
.therapist-single-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.therapist-single {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.therapist-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
}

.therapist-header-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.therapist-image-large img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.therapist-header-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 300;
}

.therapist-header-info h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.9;
}

.therapist-experience {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    opacity: 0.8;
}

.therapist-contact-info {
    display: flex;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-item .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

.therapist-content {
    padding: 3rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.therapist-content section {
    margin-bottom: 2.5rem;
}

.therapist-content h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.therapist-bio p,
.therapist-additional-info p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    color: white;
}

.btn-secondary {
    background: transparent;
    color: #3498db;
    border: 2px solid #3498db;
}

.btn-secondary:hover {
    background: #3498db;
    color: white;
}

/* Navigation */
.therapist-navigation {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #ecf0f1;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-links a {
    display: block;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: background-color 0.2s ease;
}

.nav-links a:hover {
    background: #e9ecef;
}

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-bottom: 0.25rem;
}

.nav-title {
    display: block;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .therapist-profiles-grid.columns-2,
    .therapist-profiles-grid.columns-3,
    .therapist-profiles-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .therapist-header-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .therapist-header-info h1 {
        font-size: 2rem;
    }
    
    .therapist-contact-info {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .therapist-single-container {
        padding: 1rem;
    }
    
    .therapist-header {
        padding: 2rem 1rem;
    }
    
    .therapist-content {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .therapist-card {
        padding: 1rem;
    }
    
    .therapist-image img {
        width: 100px;
        height: 100px;
    }
    
    .therapist-image-large img {
        width: 140px;
        height: 140px;
    }
    
    .therapist-header-info h1 {
        font-size: 1.75rem;
    }
    
    .therapist-header-info h2 {
        font-size: 1.25rem;
    }
}

/* Admin Styles */
.therapist-profiles-admin .form-table th {
    width: 150px;
}

.therapist-profiles-admin .form-table td input[type="text"],
.therapist-profiles-admin .form-table td input[type="email"],
.therapist-profiles-admin .form-table td input[type="tel"],
.therapist-profiles-admin .form-table td textarea {
    width: 100%;
    max-width: 400px;
}

/* Accessibility */
.therapist-card:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .therapist-navigation,
    .therapist-actions {
        display: none;
    }
    
    .therapist-header {
        background: #f8f9fa !important;
        color: #000 !important;
    }
    
    .therapist-contact-info a {
        color: #000 !important;
    }
}
