﻿/* wwwroot/styles/doctor-card.css */

/* ============================================
   КАРТОЧКА ВРАЧА
   ============================================ */

.doctor-card {
    background: var(--background-color-blue-20, #f4f6f7);
    border-radius: 24px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 384px;
    height: 442px; /* ← ФИКСИРОВАННАЯ ВЫСОТА */
    flex-shrink: 0;
    flex-grow: 0;
}

.doctor-card__image-wrapper {
    position: relative;
    border-radius: 16px;
    height: 192px;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* ✅ Прижимаем содержимое к низу */
    align-items: flex-start; /* ✅ Выравниваем по левому краю */
    padding: 8px;
}

/* ✅ КОНТЕЙНЕР ДЛЯ БЕЙДЖЕЙ (нижний левый угол) */
.doctor-card__badges-top {
    display: flex;
    flex-direction: column; /* ✅ Бейджи в два ряда сверху вниз */
    gap: 4px;
    align-items: flex-start; /* ✅ Выравнивание по левому краю */
    width: 100%;
}

/* ✅ РЯД БЕЙДЖЕЙ (слева направо) */
.doctor-card__badges-row {
    display: flex;
    flex-direction: row; /* ✅ Бейджи в ряд слева направо */
    gap: 4px;
    flex-wrap: wrap; /* ✅ Если не помещаются — перенос */
}

.doctor-card__badge {
    background: var(--background-color-blue-30, #e3e7ea);
    border-radius: 16px;
    padding: 4px 12px;
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 12px;
    color: var(--text-color-black-60, #77797d);
    white-space: nowrap; /* ✅ Запрещаем перенос внутри бейджа */
}

/* ✅ Иконка "Выполняет операции" (правый нижний угол) */
.doctor-card__operation-icon {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: var(--background-color-red-100, #b50042);
    border-radius: 12px;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .doctor-card__operation-icon img {
        width: 24px;
        height: 24px;
    }

/* ===== ОСТАЛЬНЫЕ СТИЛИ (без изменений) ===== */

.doctor-card__info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor-card__info-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doctor-card__name {
    font-family: 'OpenRunde-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color-black-100, #1c1f26);
}

.doctor-card__specialization {
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 14px;
    color: var(--text-color-black-80, #494c51);
}

.doctor-card__details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doctor-card__detail {
    background: var(--background-color-blue-30, #e3e7ea);
    border-radius: 16px;
    padding: 4px 12px;
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 14px;
    color: var(--text-color-black-60, #77797d);
}

.doctor-card__footer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.doctor-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doctor-card__price {
    background: var(--background-color-blue-40, #d4dade);
    border-radius: 16px;
    padding: 8px 12px;
    font-family: 'OpenRunde-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color-black-60, #77797d);
}

.doctor-card__reviews {
    font-family: 'OpenRunde-Regular', sans-serif;
    font-size: 12px;
    text-decoration: underline;
    color: var(--text-color-black-40, #a4a5a8);
}

.doctor-card__actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.doctor-card__btn-book {
    flex: 1;
    background: var(--background-color-blue-100, #26445c);
    border-radius: 16px;
    padding: 8px 16px;
    border: none;
    font-family: 'OpenRunde-Medium', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #f4f4f4;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .doctor-card__btn-book:hover {
        background: var(--background-color-blue-80, #51697d);
    }

.doctor-card__btn-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .doctor-card__btn-icon:hover {
        background: var(--background-color-blue-30, #e3e7ea);
    }

    .doctor-card__btn-icon img {
        width: 20px;
        height: 20px;
    }

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
    .doctor-card {
        width: 300px;
    }

    .doctor-card__image-wrapper {
        height: 170px;
    }
}

@media (max-width: 768px) {
    .doctor-card {
        width: 280px;
    }

    .doctor-card__image-wrapper {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .doctor-card {
        width: 260px;
    }

    .doctor-card__image-wrapper {
        height: 130px;
    }
}
