/**
 * Therapist Search & Filter Styles
 * 
 * Colours based on The Nest Club design:
 * - Pink/Salmon: #E8C4BC / #EECFC7
 * - Dark Grey-Green: #4A5654
 * - Cream/Off-white: #F5F0EB
 */

:root {
    --therapist-pink: #edb3a5;
    --therapist-pink-light: #edb3a5;
    --therapist-dark: #414a49;
    --therapist-cream: #fdfcf6;
    --therapist-card-bg: #F9F6F3;
    --therapist-white: #FFFFFF;
    --therapist-text: #414a49;
    --therapist-text-light: #666666;
    --therapist-border: #414a49;
}

/* ===========================================
   SEARCH FORM WRAPPER
   =========================================== */

.therapist-search-wrapper {
    background-color: var(--therapist-pink);
    padding: 50px 40px 40px;
}

.therapist-search-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--therapist-dark);
    margin: 0 0 40px 0;
    font-family: inherit;
}

.therapist-search-title span {
    color: var(--therapist-dark);
    
}

/* ===========================================
   FILTER FORM - 4 Column Grid
   =========================================== */

.therapist-search-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 900px) {
    .therapist-search-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .therapist-search-form {
        grid-template-columns: 1fr;
    }
    
    .therapist-search-wrapper {
        padding: 30px 20px;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
}

/* Filter Header */
.filter-header {
    background-color: var(--therapist-white);
    padding: 12px 16px;
    border-radius: 6px 6px 0 0;
    font-size: 0.9rem;
    color: var(--therapist-dark);
    border-bottom: 1px solid var(--therapist-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--therapist-dark);
    opacity: 0.5;
}

/* Filter Options Container */
.filter-options {
    background-color: var(--therapist-white);
    border-radius: 0 0 6px 6px;
    padding: 8px 0;
    max-height: 220px;
    overflow-y: auto;
}

/* ===========================================
   RADIO BUTTON STYLES
   =========================================== */

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.15s ease;
    margin: 0;
}

.radio-option:hover {
    background-color: var(--therapist-cream);
}

/* Hide default radio */
.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Custom radio circle */
.radio-custom {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--therapist-pink);
    background-color: var(--therapist-white);
    flex-shrink: 0;
    transition: all 0.15s ease;
    position: relative;
}

/* Selected state - filled circle */
.radio-option input[type="radio"]:checked + .radio-custom {
    background-color: var(--therapist-pink);
    border-color: var(--therapist-pink);
}

/* Inner dot for selected */
.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: var(--therapist-white);
    border-radius: 50%;
}

/* Radio label text */
.radio-label {
    font-size: 0.88rem;
    color: var(--therapist-dark);
    line-height: 1.3;
}

/* ===========================================
   ACTION BUTTONS (Clear & Submit)
   =========================================== */

.filter-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 35px;
}

.btn-clear,
.btn-submit {
    padding: 12px 35px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear {
    background-color: transparent;
    border: 1.5px solid var(--therapist-dark);
    color: var(--therapist-dark);
}

.btn-clear:hover {
    background-color: #414a49;
    color: var(--therapist-white);
}

.btn-submit {
    background-color: var(--therapist-dark);
    border: 1.5px solid var(--therapist-dark);
    color: var(--therapist-white);
}

.btn-submit:hover {
    background-color: #3a4644;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===========================================
   RESULTS WRAPPER
   =========================================== */

.therapist-results-wrapper {
    padding: 0px 0px;
}

@media (max-width: 600px) {
    .therapist-results-wrapper {
        padding: 30px 20px;
    }
}

.therapist-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.results-count {
    font-size: 0.95rem;
    color: var(--therapist-text-light);
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--therapist-dark);
    font-size: 0.9rem;
}

.spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===========================================
   RESULTS GRID - 2 Columns
   =========================================== */

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    transition: opacity 0.2s;
}

.therapist-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 700px) {
    .therapist-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
    }
}

/* ===========================================
   THERAPIST CARD - Horizontal Layout
   =========================================== */

.therapist-card {
    background-color: var(--therapist-cream);
    border-radius: 22px;
    padding: 25px;
    border: 1px solid var(--therapist-border);
}

.therapist-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

/* Circular Photo */
.therapist-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--therapist-cream);
}

.therapist-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.therapist-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--therapist-pink);
}

.therapist-img-placeholder svg {
    width: 35px;
    height: 35px;
    color: var(--therapist-dark);
    opacity: 0.4;
}

/* Header Info */
.therapist-header-info {
    flex: 1;    border-bottom: 1px solid var(--therapist-dark); padding-bottom: 10px;

}

.therapist-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--therapist-dark);
    margin: 0 0 4px 0;
}

.therapist-title {
    font-size: 1rem;
    color: var(--therapist-dark);
    margin: 0;
}

/* Card Body - Specialisms */
.therapist-card-body {
    margin-bottom: 20px;
}

.therapist-specialisms {
    font-size: 0.88rem;
     color: var(--therapist-dark);
    line-height: 1.5;
}

.therapist-specialisms strong {
    display: block;
    margin-bottom: 4px;
    color: var(--therapist-dark);
}

.therapist-specialisms span {
    color: var(--therapist-text-light);
}

/* Card Footer - Buttons */
.therapist-card-footer {
    display: flex;
    gap: 12px;
}

.btn-book,
.btn-profile {
    padding: 10px 22px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-book {
    background-color: var(--therapist-pink);
    border: 1.5px solid var(--therapist-pink);
    color: var(--therapist-dark);
}

.btn-book:hover {
    background-color: var(--therapist-pink-light);
    border-color: var(--therapist-pink-light);
}

.btn-profile {
    background-color: var(--therapist-pink);
    border: 1.5px solid var(--therapist-pink);
    color: var(--therapist-dark)!important;
}

.btn-profile:hover {
    background-color: var(--therapist-pink-light);
    border-color: var(--therapist-pink-light);
}

/* ===========================================
   BOTTOM ACTION BAR
   =========================================== */

.therapist-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-browse-all {
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: var(--therapist-pink);
    border: none;
    border-radius: 50px;
    color: var(--therapist-dark);
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-browse-all:hover {
    background-color: var(--therapist-pink-light);
}

.date-filter-wrapper {
    position: relative;
}

.date-filter-wrapper select {
    padding: 12px 40px 12px 18px;
    font-size: 0.9rem;
    background-color: var(--therapist-dark);
    border: none;
    border-radius: 50px;
    color: var(--therapist-white);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.date-filter-wrapper select:focus {
    outline: 2px solid var(--therapist-pink);
    outline-offset: 2px;
}

.date-filter-wrapper .select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--therapist-white);
    opacity: 0.8;
    pointer-events: none;
}

.btn-search {
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    background-color: transparent;
    border: 1.5px solid var(--therapist-dark);
    border-radius: 50px;
    color: var(--therapist-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-search:hover {
    background-color: var(--therapist-dark);
    color: var(--therapist-white);
}

/* ===========================================
   PAGINATION
   =========================================== */

.therapist-pagination {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    padding: 14px 40px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--therapist-white);
    background-color: var(--therapist-dark);
    border: 2px solid var(--therapist-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover:not(:disabled) {
    background-color: transparent;
    color: var(--therapist-dark);
}

.load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===========================================
   NO RESULTS
   =========================================== */

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    color: var(--therapist-text-light);
    font-size: 1rem;
    background-color: var(--therapist-white);
    border-radius: 12px;
}

/* ===========================================
   SCROLLBAR STYLING
   =========================================== */

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: transparent;
}

.filter-options::-webkit-scrollbar-thumb {
    background-color: var(--therapist-pink);
    border-radius: 3px;
}

/* ===========================================
   SPECIALISM TAG BUTTONS
   =========================================== */

.specialism-tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
}

/* Column variations */
.specialism-tags-wrapper.columns-2 {
    max-width: 500px;
    margin: 0 auto;
}

.specialism-tags-wrapper.columns-3 {
    max-width: 700px;
    margin: 0 auto;
}

.specialism-tags-wrapper.columns-4 {
    max-width: 900px;
    margin: 0 auto;
}

.specialism-tags-wrapper.columns-5 {
    max-width: 1100px;
    margin: 0 auto;
}

.specialism-tags-wrapper.columns-6 {
    max-width: 1300px;
    margin: 0 auto;
}

/* Tag button base styles */
.tag-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.tag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pink tag button */
.tag-btn.tag-pink {
    background-color: var(--therapist-pink);
    color: var(--therapist-dark);
    border: none;
}

.tag-btn.tag-pink:hover {
    background-color: var(--therapist-pink-light);
    color: var(--therapist-dark);
}

/* Dark tag button */
.tag-btn.tag-dark {
    background-color: var(--therapist-dark);
    color: var(--therapist-white);
    border: none;
}

.tag-btn.tag-dark:hover {
    background-color: #3a4644;
    color: var(--therapist-white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .specialism-tags-wrapper {
        gap: 10px;
        padding: 15px 0;
    }
    
    .tag-btn {
        padding: 10px 18px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .tag-btn {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

/* No tags message */
.no-tags {
    text-align: center;
    color: var(--therapist-text-light);
    font-style: italic;
    padding: 20px;
}
