﻿
.scrollable-list {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scrolling if not needed */
}

    .scrollable-list ul {
        list-style-type: none; /* Remove default list styling */
        padding: 0;
        margin: 0;
    }

    .scrollable-list li {
        padding: 5px 0;
    }

* {
    box-sizing: border-box;
    font-family: "Inter", system-ui, sans-serif;
}

.doctor-schedule-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 16px;
    max-width: 1200px;
    margin: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

/* LEFT = %55 */
.doctor-profile {
    flex: 0 0 calc(55% - 16px);
}

/* RIGHT = %45 */
.schedule {
    flex: 0 0 calc(45% - 16px);
}

/* LEFT */
.doctor-profile {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.profile-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.profile-img {
    position: relative;
    width: 145px;
    min-width: 120px;
    height: 170px;
    flex-shrink: 0;
}

    .profile-img img {
        width: 170px;
        height: 170px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
    }

.favourite-icon {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 36px;
    height: 36px;
    background: #f5ebeb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    z-index: 2;
}

    .favourite-icon i {
        color: #bbb;
        font-size: 18px;
        transition: color .2s ease, transform .15s ease;
    }

    .favourite-icon.favourite i {
        color: #e74c3c; /* kırmızı kalp */
    }

    .favourite-icon:hover i {
        color: #e74c3c;
        transform: scale(1.1);
    }

.profile-info {
    flex: 1;
}

    .profile-info h3 {
        margin: 0;
        font-size: 20px;
    }

.title {
    margin-top: 10px;
    font-size: 15px;
    color: #64748b;
}

.address {
    margin-top: 6px;
    font-size: 14px;
}

.direction {
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

.profile-meta .label {
    font-size: 13px;
    color: #94a3b8;
}

.profile-meta p {
    margin: 4px 0 0;
    font-size: 14px;
}

.fee strong {
    color: #f97316;
    font-size: 18px;
}

.book-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    background-color: var(--bs-info);
    color: #fff !important;
    border: none;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .2s ease;
}

    .book-btn i {
        line-height: 1;
    }

    .book-btn:hover {
        background-color: var(--bs-info);
        opacity: .9;
        transform: translateY(-2px);
    }

/* RIGHT */
.schedule {
    display: flex;
    flex-direction: column;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    font-size: 18px;
    cursor: pointer;
}

.days {
    display: flex;
    gap: 12px;
    flex: 1;
    justify-content: space-between;
}

.day {
    text-align: center;
    font-size: 14px;
    color: #0f172a;
    cursor: pointer;
}

    .day span {
        display: block;
        font-size: 13px;
    }

.time-grid {
    --columns: 5;
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    gap: 10px;
    margin-top: 40px;
}

.time {
    background: #eef2f7;
    border-radius: 8px;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
}

    .time:hover {
        background: #2563eb;
        color: #fff;
    }

    .time.primary {
        background: #2563eb;
        color: #fff;
    }

    .time.disabled {
        background: #f1f5f9;
        color: #94a3b8;
        cursor: not-allowed;
        text-decoration: line-through;
        opacity: 0.7;
        pointer-events: none;
    }

.more-link {
    display: block;
    margin-top: 16px;
    text-align: center;
    color: #2563eb;
    font-size: 14px;
    text-decoration: none;
}

.no-slot-wrapper {
    grid-column: 1 / -1;
    width: 100%;
}

/* Mobile */
@media (max-width: 768px) {

    .doctor-schedule-card {
        flex-direction: column;
        gap: 24px;
        padding: 20px;
    }

    /* LEFT & RIGHT full width */
    .doctor-profile,
    .schedule {
        flex: 0 0 100%;
        width: 100%;
    }

    /* Profile image ortalama */
    .profile-top {
        align-items: center;
    }

    .profile-img {
        width: 100px;
        min-width: 100px;
        height: 140px;
    }

        .profile-img img {
            width: 100%;
            height: 140px;
        }

    /* Schedule header sıkışmayı önle */
    .schedule-header {
        gap: 10px;
    }

    .days {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 6px;
    }

    .day {
        min-width: 64px;
        flex-shrink: 0;
    }

    /* Time grid kolon sayısı düşür */
    .time-grid {
        --columns: 3;
        margin-top: 24px;
    }
}

