/* ============================================
   N&J Moments — my-bookings.css
   ============================================ */

.page-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
}

/* Tabs */
.bookings-tabs {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 28px;
  padding: 6px;
  background: #FFFFFF;
  border: 2px dashed var(--border-solid);
  border-radius: 100px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bookings-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--pink-light);
  color: var(--pink-deep);
}

.tab-btn.active {
  background: var(--pink-deep);
  color: #FFFFFF;
}

/* Bookings List */
.bookings-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

/* Booking Card */
.my-booking-card {
  background: #FFFFFF;
  border: 2px dashed var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s;
  position: relative;
}

.my-booking-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--pink-deep);
}

.my-booking-card.past {
  opacity: 0.7;
}

.my-booking-card.cancelled {
  opacity: 0.55;
  border-style: dotted;
  background: #FAFAFA;
}

/* Card Header */
.mbc-header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mbc-image {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--pink-light);
  flex-shrink: 0;
}

.mbc-title-block {
  flex: 1;
  min-width: 0;
}

.mbc-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mbc-number {
  font-size: 12px;
  color: var(--pink-deep);
  font-weight: 700;
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

/* Card Details */
.mbc-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--bg-frame);
  border-radius: var(--radius-md);
  font-size: 13px;
}

.mbc-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mbc-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.mbc-label {
  color: var(--text-secondary);
  min-width: 55px;
}

.mbc-value {
  color: var(--text-primary);
  font-weight: 700;
  margin-right: auto;
}

html[dir="ltr"] .mbc-value {
  margin-right: 0;
  margin-left: auto;
}

/* Status Badge */
.mbc-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: 16px;
  left: 16px;
}

html[dir="ltr"] .mbc-status {
  left: auto;
  right: 16px;
}

.mbc-status.confirmed {
  background: var(--blue-soft);
  color: #4A6B7A;
}

.mbc-status.attended {
  background: var(--green-soft);
  color: #3A6B3A;
}

.mbc-status.cancelled {
  background: #FCEAEA;
  color: #B85C5C;
}

/* Card Actions */
.mbc-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.mbc-actions > * {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
}

.btn-view-card {
  background: var(--pink-light);
  color: var(--pink-deep);
}

.btn-view-card:hover {
  background: var(--pink-deep);
  color: #FFFFFF;
}

.btn-cancel-booking {
  background: #FCEAEA;
  color: #B85C5C;
}

.btn-cancel-booking:hover {
  background: #F5C5C5;
}

/* Empty State */
.my-bookings-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-frame);
  border: 2px dashed var(--border-dashed);
  border-radius: var(--radius-lg);
  max-width: 480px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 56px;
  margin-bottom: 16px;
}

.my-bookings-empty h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.my-bookings-empty p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.my-bookings-empty .btn-primary {
  max-width: 220px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 600px) {
  .page-title {
    font-size: 24px;
  }

  .bookings-list {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ============================================
   DARK MODE — My Bookings
   ============================================ */

html[data-theme="dark"] .bookings-tabs {
  background: #252525;
  border-color: #3A3A3A;
}

html[data-theme="dark"] .tab-btn {
  color: #A8A8A8;
}

html[data-theme="dark"] .tab-btn.active {
  background: var(--pink-deep);
  color: #1A1A1A;
}

html[data-theme="dark"] .my-booking-card {
  background: #1F1F1F;
  border-color: #3A3A3A;
}

html[data-theme="dark"] .mbc-details {
  background: #252525;
}

html[data-theme="dark"] .mbc-title {
  color: #E8E8E8;
}

html[data-theme="dark"] .mbc-label {
  color: #A8A8A8;
}

html[data-theme="dark"] .mbc-value {
  color: #E8E8E8;
}

html[data-theme="dark"] .my-bookings-empty {
  background: #1F1F1F;
  border-color: #3A3A3A;
}

html[data-theme="dark"] .my-bookings-empty h3 {
  color: #E8E8E8;
}

html[data-theme="dark"] .my-bookings-empty p {
  color: #A8A8A8;
}

/* ============================================
   DARK MODE — Fixes
   ============================================ */

/* Card */
html[data-theme="dark"] .my-booking-card {
  background: #1F1F1F;
  border-color: #3A3A3A;
}

/* Card Title */
html[data-theme="dark"] .mbc-title {
  color: #E8E8E8;
}

html[data-theme="dark"] .mbc-number {
  color: var(--pink-deep);
}

/* Card Details */
html[data-theme="dark"] .mbc-details {
  background: #252525;
}

html[data-theme="dark"] .mbc-label {
  color: #A8A8A8;
}

html[data-theme="dark"] .mbc-value {
  color: #E8E8E8;
}

/* Card Image */
html[data-theme="dark"] .mbc-image {
  background: #2A2A2A;
}

/* Status Badges */
html[data-theme="dark"] .mbc-status.confirmed {
  background: #2A3A45;
  color: #8AB4C8;
}

html[data-theme="dark"] .mbc-status.attended {
  background: #2F3D28;
  color: #A8C8A8;
}

html[data-theme="dark"] .mbc-status.cancelled {
  background: #4A2A2D;
  color: #E8A0A8;
}

/* Tabs Bar */
html[data-theme="dark"] .bookings-tabs {
  background: #1F1F1F;
  border-color: #3A3A3A;
}

html[data-theme="dark"] .tab-btn {
  color: #A8A8A8;
}

html[data-theme="dark"] .tab-btn:hover {
  background: var(--pink-light);
  color: var(--pink-deep);
}

html[data-theme="dark"] .tab-btn.active {
  background: var(--pink-deep);
  color: #1A1A1A;
}

/* Card Actions */
html[data-theme="dark"] .btn-view-card {
  background: var(--pink-deep);
  color: #1A1A1A;
}

html[data-theme="dark"] .btn-view-card:hover {
  background: #F0B0B8;
}

html[data-theme="dark"] .btn-cancel-booking {
  background: #4A2A2D;
  color: #E8A0A8;
}

html[data-theme="dark"] .btn-cancel-booking:hover {
  background: #5A3035;
}

/* Card past / cancelled */
html[data-theme="dark"] .my-booking-card.past {
  opacity: 0.65;
}

html[data-theme="dark"] .my-booking-card.cancelled {
  background: #181818;
  border-style: dotted;
}