/**
 * Amelia Therapists Availability - Styles
 * Design oparty na zielonej kolorystyce zgodnie z projektem
 */

:root {
    --ata-primary: #2ECC71;
    --ata-primary-dark: #27AE60;
    --ata-primary-light: #58D68D;
    --ata-text-dark: #333333;
    --ata-text-light: #666666;
    --ata-text-lighter: #999999;
    --ata-bg-light: #F5F5F5;
    --ata-bg-white: #FFFFFF;
    --ata-border: #E0E0E0;
    --ata-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --ata-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --ata-radius: 12px;
    --ata-radius-sm: 6px;
}

/* Container */
.ata-therapists-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Grid System */
.ata-therapists-grid {
    display: grid;
    gap: 24px;
}

.ata-grid-cols-1 {
    grid-template-columns: 1fr;
}

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

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

@media (max-width: 992px) {
    .ata-grid-cols-2,
    .ata-grid-cols-3 {
        grid-template-columns: 1fr;
    }
}

/* Karta terapeuty */
.ata-therapist-card {
    background: var(--ata-bg-white);
    border-radius: var(--ata-radius);
    box-shadow: var(--ata-shadow);
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ata-therapist-card:hover {
    box-shadow: var(--ata-shadow-hover);
    transform: translateY(-2px);
}

/* Header karty */
.ata-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ata-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.ata-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ata-primary);
}

.ata-status-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ata-primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ata-provider-info {
    flex: 1;
}

.ata-provider-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--ata-text-dark);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.ata-provider-title {
    font-size: 14px;
    color: var(--ata-text-light);
    margin: 0;
    line-height: 1.4;
}

/* Link do profilu */
.ata-profile-link {
    color: var(--ata-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.ata-profile-link:hover {
    color: var(--ata-primary-dark);
    text-decoration: underline;
}

/* Szczegóły usługi */
.ata-service-details {
    padding: 16px 0;
    border-top: 1px solid var(--ata-border);
    border-bottom: 1px solid var(--ata-border);
}

.ata-service-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--ata-text-dark);
    margin: 0 0 12px 0;
}

.ata-service-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ata-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--ata-text-light);
}

.ata-meta-item svg {
    flex-shrink: 0;
}

.ata-duration {
    color: #8E44AD;
}

.ata-price {
    color: #F39C12;
}

.ata-location {
    color: #E74C3C;
}

/* Sekcja dostępności */
.ata-availability-section {
    flex: 1;
}

.ata-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ata-slot-btn {
    background: white;
    border: 2px solid var(--ata-primary);
    border-radius: var(--ata-radius-sm);
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ata-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ata-slot-btn:hover {
    background: var(--ata-primary);
    color: white;
}

.ata-slot-btn.selected {
    background: var(--ata-primary);
    color: white;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.3);
}

.ata-more-btn {
    background: #F0F0F0;
    border: none;
    border-radius: var(--ata-radius-sm);
    padding: 8px 14px;
    font-size: 14px;
    color: var(--ata-text-lighter);
    cursor: pointer;
    transition: all 0.2s ease;
}

.ata-more-btn:hover {
    background: #E0E0E0;
    color: var(--ata-text-light);
}

/* Przycisk umów wizytę */
.ata-book-btn {
    width: 100%;
    background: var(--ata-primary);
    border: none;
    border-radius: var(--ata-radius-sm);
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.ata-book-btn:hover {
    background: var(--ata-primary-dark);
    transform: scale(1.02);
}

.ata-book-btn:active {
    transform: scale(0.98);
}

/* Komunikaty */
.ata-error {
    background: #FEE;
    border: 1px solid #FCC;
    color: #C33;
    padding: 16px;
    border-radius: var(--ata-radius-sm);
    text-align: center;
}

.ata-no-results {
    background: var(--ata-bg-light);
    border: 1px solid var(--ata-border);
    color: var(--ata-text-light);
    padding: 32px;
    border-radius: var(--ata-radius-sm);
    text-align: center;
    font-size: 16px;
}

/* Modal dodatkowych terminów */
.ata-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ata-modal-overlay.active {
    display: flex;
}

.ata-modal {
    background: white;
    border-radius: var(--ata-radius);
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.ata-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.ata-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ata-text-dark);
    margin: 0;
}

.ata-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--ata-text-light);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ata-modal-close:hover {
    background: var(--ata-bg-light);
    color: var(--ata-text-dark);
}

.ata-modal-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .ata-therapist-card {
        padding: 20px;
    }

    .ata-avatar {
        width: 64px;
        height: 64px;
    }

    .ata-provider-name {
        font-size: 18px;
    }

    .ata-slot-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .ata-service-meta {
        flex-direction: column;
        gap: 8px;
    }
}
