/**
 * My Bookings Page Styles (2025 Redesign)
 */

/* ── Page Container ────────────────────────────────── */
.bk-page-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

/* ── Page Header ───────────────────────────────────── */
.bk-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.bk-page-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    font-weight: 900;
    margin: 0;
    color: #1e1b4b;
    letter-spacing: -0.04em;
}

/* ── Type Tabs ─────────────────────────────────────── */
.bk-type-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e0e7ff;
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bk-type-tabs::-webkit-scrollbar { display: none; }

.bk-type-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.bk-type-tab:hover {
    color: #1e1b4b;
    border-bottom-color: #a5b4fc;
}

.bk-type-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
    font-weight: 800;
}

.bk-type-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 50px;
    background: #f0f0ff;
    font-size: 0.7rem;
    font-weight: 800;
    color: #6366f1;
    margin-left: 8px;
    flex-shrink: 0;
}

.bk-type-tab.active .bk-type-count {
    background: linear-gradient(135deg, #4f46e5, #6366f1);
    color: #fff;
}

/* ── Filter Tabs ───────────────────────────────────── */
.booking-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.booking-tab-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid #e0e7ff;
    background: #fff;
    color: #6b7280;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.booking-tab-btn:hover {
    border-color: #a5b4fc;
    color: #1e1b4b;
    background: #f5f3ff;
}

.booking-tab-btn.active {
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* ── Booking Card ──────────────────────────────────── */
.bk-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.07);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1.5px solid #e0e7ff;
    transition: all 0.25s ease;
}

.bk-card:hover {
    box-shadow: 0 10px 32px rgba(79, 70, 229, 0.12);
    border-color: #a5b4fc;
    transform: translateY(-3px);
}

.bk-empty-card {
    background: #fff;
    border-radius: 18px;
    padding: 52px 24px;
    box-shadow: 0 4px 18px rgba(79, 70, 229, 0.06);
    text-align: center;
    border: 1.5px solid #e0e7ff;
}

/* Top row */
.bk-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2px;
}

/* Date chip */
.bk-date-chip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: linear-gradient(135deg, #f0f0ff, #ede9fe);
    border: 1.5px solid #e0e7ff;
    border-radius: 12px;
    padding: 8px 14px;
    flex: 1;
    max-width: calc(100% - 44px);
}

.bk-date-chip > .bi {
    font-size: 1.15rem;
    color: #6366f1;
    margin-top: 1px;
    flex-shrink: 0;
}

.bk-date-main {
    font-weight: 800;
    font-size: 0.85rem;
    color: #1e1b4b;
    line-height: 1.2;
}

.bk-date-time {
    font-size: 0.72rem;
    color: #6b7280;
    font-weight: 600;
    margin-top: 1px;
}

/* Status icon */
.bk-status-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    margin-left: 8px;
    margin-top: 2px;
}

.status-icon-completed { background: #dcfce7; color: #16a34a; }
.status-icon-inprogress { background: #fef3c7; color: #d97706; }
.status-icon-cancelled { background: #fee2e2; color: #dc2626; }
.status-icon-default { background: #f0f0ff; color: #6366f1; }

/* Divider */
.bk-divider {
    border: none;
    border-top: 1px solid #f0f0ff;
    margin: 12px 0;
}

/* Venue */
.bk-venue-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #1e1b4b;
    margin: 0 0 2px;
}

.bk-address {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 0 10px;
}

/* Info columns */
.bk-info-row {
    display: flex;
    align-items: stretch;
    background: #f8f7ff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid #f0f0ff;
}

.bk-info-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    gap: 2px;
}

.bk-info-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: #a5b4fc;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.bk-info-icon {
    font-size: 0.95rem;
    color: #6366f1;
}

.bk-info-value {
    font-size: 0.72rem;
    font-weight: 700;
    color: #1e1b4b;
    text-align: center;
    word-break: break-word;
}

.bk-info-divider {
    width: 1px;
    background: #e0e7ff;
    margin: 6px 0;
    flex-shrink: 0;
}

/* Rejection reason */
.bk-rejection-reason {
    background: #fff7ed;
    border: 1.5px solid #fed7aa;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.bk-rejection-reason-title {
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9a3412;
    margin-bottom: 6px;
}

.bk-rejection-reason-text {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #431407;
    margin: 0;
    word-break: break-word;
}

.bk-rejection-reason-empty {
    font-size: 0.78rem;
    color: #9a3412;
}

/* Misc */
.bk-cancel-note {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
    padding: 6px 4px 0;
}

.bk-cancel-policy {
    font-size: 0.68rem;
    color: #9ca3af;
    text-align: center;
    margin-top: 6px;
    line-height: 1.35;
}

.bk-actions-court { margin-top: auto; }

/* Action buttons */
.bk-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.bk-btn-outline,
.bk-btn-solid {
    flex: 1;
    text-align: center;
    padding: 9px 0;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
    cursor: pointer;
}

.bk-btn-outline {
    color: #4f46e5;
    background: #f5f3ff;
    border: 1.5px solid #e0e7ff;
}

.bk-btn-outline:hover {
    background: #ede9fe;
    border-color: #a5b4fc;
    color: #3730a3;
}

.bk-btn-solid {
    background: linear-gradient(135deg, #1e1b4b, #4f46e5);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.bk-btn-solid:hover {
    background: linear-gradient(135deg, #312e81, #6366f1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Empty state CTA */
.bk-btn-empty-cta {
    display: inline-block;
    padding: 10px 32px;
    max-width: 200px;
    margin: 0 auto;
    flex: initial;
}

/* Cancel button */
.bk-btn-cancel {
    color: #dc2626 !important;
    border: 1.5px solid #fca5a5 !important;
    background: #fff1f2 !important;
}

.bk-btn-cancel:hover {
    background: #ffe4e6 !important;
    border-color: #f87171 !important;
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 767.98px) {
    .bk-page-container { padding-top: 1.5rem; padding-bottom: 2rem; }
    .bk-type-tab { padding: 9px 18px; font-size: 0.84rem; }
}

@media (max-width: 575.98px) {
    .bk-page-container { padding-top: 1.25rem; padding-bottom: 1.5rem; }
    .bk-type-tab { padding: 8px 12px; font-size: 0.8rem; }
    .bk-type-count { min-width: 18px; height: 18px; font-size: 0.65rem; margin-left: 5px; }
    .booking-tab-btn { padding: 4px 12px; font-size: 0.74rem; }
    .bk-card { border-radius: 14px; padding: 14px; }
    .bk-empty-card { padding: 36px 16px; }
    .bk-venue-name { font-size: 0.9rem; }
    .bk-date-main { font-size: 0.82rem; }
}
