/* Öğretmen detay — randevu (referans tasarım) */
.ib-detail-page {
    --ib-purple: #7c3aed;
    --ib-purple-light: #ede9fe;
    --ib-text: #0f172a;
    --ib-muted: #64748b;
    --ib-border: #e2e8f0;
    --ib-card-bg: #ffffff;
    --ib-slot-bg: #f8fafc;
}

/* Profil kartı — yatay */
.ib-profile-wrap {
    margin-top: -70px;
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.ib-profile-card {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    background: var(--ib-card-bg);
    border: 1px solid var(--ib-border);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.ib-profile-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.ib-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ib-profile-body {
    flex: 1;
    min-width: 200px;
}

.ib-profile-name {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--ib-text);
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
}

.ib-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.9rem;
    color: var(--ib-muted);
    font-weight: 500;
}

.ib-profile-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ib-profile-meta i {
    color: var(--ib-purple);
}

.ib-profile-meta .ib-stars i {
    color: #fbbf24;
    font-size: 0.85rem;
}

.ib-profile-action {
    flex-shrink: 0;
}

.ib-btn-schedule {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.ib-btn-schedule:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
}

/* Hakkında */
.ib-about-card {
    background: var(--ib-card-bg);
    border: 1px solid var(--ib-border);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.ib-section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ib-text);
    margin: 0 0 1rem;
    position: relative;
    padding-bottom: 0.65rem;
}

.ib-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 4px;
    border-radius: 2px;
    background: var(--ib-purple);
}

.ib-about-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

/* Randevu saatleri kartı */
.ib-booking-panel {
    background: var(--ib-card-bg);
    border: 1px solid var(--ib-border);
    border-radius: 20px;
    padding: 1.75rem 2rem 2rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 100px;
}

.ib-booking-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ib-text);
    margin: 0 0 0.5rem;
}

.ib-booking-desc {
    font-size: 0.9rem;
    color: var(--ib-muted);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}

.ib-booking-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.ib-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ib-badge-primary {
    background: var(--ib-purple-light);
    color: var(--ib-purple);
    border: 1px solid #ddd6fe;
}

.ib-badge-secondary {
    background: #f1f5f9;
    color: var(--ib-muted);
    border: 1px solid var(--ib-border);
}

/* Haftalık sütun grid */
.ib-schedule-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--ib-border);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

@media (max-width: 992px) {
    .ib-schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .ib-schedule-grid {
        grid-template-columns: 1fr;
    }
    .ib-profile-card {
        flex-direction: column;
        text-align: center;
    }
    .ib-profile-meta {
        justify-content: center;
    }
}

.ib-day-column {
    border-right: 1px solid var(--ib-border);
    padding: 1rem 0.85rem 1.25rem;
    min-height: 120px;
}

.ib-day-column:last-child {
    border-right: none;
}

.ib-day-head {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ib-border);
}

.ib-day-abbr {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--ib-purple);
    text-transform: uppercase;
}

.ib-day-date {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ib-text);
    margin-top: 0.2rem;
}

.ib-day-slots {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ib-slot-btn {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid var(--ib-border);
    background: var(--ib-slot-bg);
    border-radius: 10px;
    padding: 0.55rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ib-text);
    line-height: 1.35;
    transition: all 0.2s;
    cursor: default;
}

.ib-slot-available.ib-slot-bookable {
    cursor: pointer;
    border-color: #c4b5fd;
    background: #fff;
    pointer-events: auto;
}

.ib-slot-available.ib-slot-bookable:not(:disabled) {
    cursor: pointer;
}

.ib-slot-available.ib-slot-bookable:hover {
    background: var(--ib-purple);
    border-color: var(--ib-purple);
    color: #fff;
}

.ib-slot-available.ib-slot-bookable:hover .ib-lesson-type {
    color: rgba(255, 255, 255, 0.85);
}

.ib-slot-pending {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.ib-slot-confirmed {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.ib-slot-time {
    display: block;
    font-weight: 700;
}

.ib-lesson-type {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--ib-muted);
    margin-top: 0.15rem;
}

.ib-slot-bookable:hover .ib-lesson-type {
    color: inherit;
}

.ib-empty-slots {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--ib-muted);
    font-size: 0.95rem;
}

.ib-header-banner {
    height: 140px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0;
}

.ib-student-hint a {
    color: var(--ib-purple);
    font-weight: 600;
}

.ib-modal-summary {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ib-text);
}

.ib-modal-submit {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
}

.ib-modal-submit:hover {
    color: #fff !important;
    filter: brightness(1.05);
}

#ibBookModal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
}

.ib-slot-price {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #6d28d9;
    margin-top: 0.2rem;
}

.ib-slot-bookable:hover .ib-slot-price {
    color: #ede9fe;
}

.ib-pay-box {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
}

.ib-pay-box--warn {
    background: #fff7ed;
    border-color: #fed7aa;
}

.ib-pay-warn {
    color: #c2410c;
    font-size: 0.85rem;
    font-weight: 600;
}

.ib-modal-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
