/* ============================================================
   Bamorabi – Premium Modern Archive Page Styles v6
   ============================================================ */

.bmr-archive *, 
.bmr-archive *::before, 
.bmr-archive *::after { 
  box-sizing: border-box; 
}

.bmr-archive {
  direction: rtl;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 64px;
  color: #334155;
  background-color: transparent;
}

/* ── Common Animations & Transitions ── */
.bmr-archive a,
.bmr-archive button,
.bmr-archive input,
.bmr-archive select,
.bmr-archive .bmr-card,
.bmr-archive .bmr-loadmore-btn {
  transition: all 0.2s ease-in-out;
}

/* ── Breadcrumb ── */
.bmr-breadcrumb { 
  margin-bottom: 24px; 
}
.bmr-breadcrumb__list { 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 8px; 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  font-size: 13px; 
  color: #64748b; 
}
.bmr-breadcrumb__item a { 
  color: #64748b; 
  text-decoration: none; 
  font-weight: 500;
}
.bmr-breadcrumb__item a:hover { 
  color: #10b981; 
}
.bmr-breadcrumb__item + .bmr-breadcrumb__item::before { 
  content: '‹'; 
  margin-left: 8px; 
  color: #cbd5e1; 
  font-size: 16px;
  line-height: 1;
}
.bmr-breadcrumb__item--current { 
  color: #0f172a; 
  font-weight: 600;
}

/* ── Layout ── */
.bmr-layout { 
  display: grid; 
  grid-template-columns: 1fr 378px; 
  gap: 28px; 
  align-items: start; 
}

/* ── Sidebar ── */
.bmr-sidebar { 
  position: sticky; 
  top: 90px; 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}
.bmr-sidebar-box { 
  background: #ffffff; 
  border: 1px solid #e2e8f0; 
  border-radius: 16px; 
  padding: 20px; 
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}
.bmr-sidebar-title { 
  font-size: 12px; 
  font-weight: 600; 
  color: #0f172a; 
  margin: 0 0 16px; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  padding: 0 0 10px;
  //border-bottom: 1px solid #f1f5f9;
}
.bmr-sidebar-title svg {
  color: #10b981;
}

/* ── Draggable & Swipeable Ads Slider ── */
.bmr-ad-slider { 
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
  border-radius: 12px; 
  cursor: grab;
  user-select: none;
}
.bmr-ad-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}
.bmr-ad-slider.grabbing {
  cursor: grabbing;
}
.bmr-ad-item {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  overflow: hidden;
}
.bmr-ad-img-wrap {
  position: relative;
  height: 215px;
  background: #f8fafc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.bmr-ad-img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.bmr-ad-img--placeholder {
  width: 100%; 
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: #cbd5e1; 
  background: #f1f5f9;
}
.bmr-ad-badge {
  background: linear-gradient(135deg, #10b981, #059669); 
  color: #ffffff;
  font-size: 13px; 
  font-weight: 700;
  padding: 4px 12px; 
  border-radius: 9999px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}
.bmr-ad-info { 
  padding: 12px 4px 4px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}
.bmr-ad-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}
.bmr-ad-name { 
  display: block; 
  font-size: 15px; 
  font-weight: 700; 
  color: #0f172a;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.bmr-ad-sub { 
  font-size: 12px; 
  color: #64748b; 
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

/* ── Filter Form ── */
.bmr-filter { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.bmr-filter__search { 
  position: relative; 
}
.bmr-filter__icon { 
  position: absolute; 
  left: 12px; 
  top: 50%; 
  transform: translateY(-50%); 
  color: #94a3b8; 
  pointer-events: none; 
}
.bmr-filter__input {
  width: 100%; 
  height: 44px;
  border: 1px solid #cbd5e1; 
  border-radius: 12px;
  padding: 0 12px 0 12px;
  font-size: 13.5px; 
  font-family: inherit; 
  color: #0f172a;
  background: #f8fafc; 
  outline: none;
  -webkit-appearance: none;
}
.bmr-filter__input:focus { 
  border-color: #10b981; 
  background: #ffffff; 
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.bmr-filter__select {
  width: 100%; 
  height: 44px;
  border: 1px solid #cbd5e1; 
  border-radius: 12px;
  padding: 0 12px;
  font-size: 13px; 
  font-family: inherit; 
  color: #334155;
  background: #f8fafc;
  cursor: pointer; 
  -webkit-appearance: none; 
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; 
  background-position: left 12px center;
  background-size: 14px;
  outline: none; 
}
.bmr-filter__select:focus { 
  border-color: #10b981; 
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.bmr-filter__clear,
button.bmr-filter__clear,
.bmr-archive button.bmr-filter__clear {
  all: unset !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 44px !important;
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  font-family: inherit !important;
  text-align: center !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.bmr-filter__clear:hover,
button.bmr-filter__clear:hover,
.bmr-archive button.bmr-filter__clear:hover {
  background-color: #fee2e2 !important;
  color: #ef4444 !important;
  border-color: #fca5a5 !important;
}

/* ── Mobile Filter Accordion ── */
.bmr-filter-mobile { 
  display: none; 
}
.bmr-filter-mobile .bmr-filter__search .bmr-filter__input {
  background: #ffffff;
}

.bmr-accordion {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background-color: #f8fafc;
}
.bmr-accordion__header {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  font-size: 13.5px; 
  font-weight: 600; 
  color: #334155;
  cursor: pointer; 
  padding: 0; 
  user-select: none;
}
.bmr-accordion__header:focus-visible { 
  outline: 2px solid #10b981; 
  border-radius: 6px; 
}
.bmr-accordion__arrow { 
  color: #64748b;
  transition: transform .25s; 
  flex-shrink: 0; 
}
.bmr-accordion__header[aria-expanded="true"] .bmr-accordion__arrow { 
  transform: rotate(180deg); 
  color: #10b981;
}

.bmr-accordion__body { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  padding-top: 14px; 
}
.bmr-accordion__body[hidden] { 
  display: none; 
}

/* ── Page Header ── */
.bmr-page-header { 
  margin-bottom: 20px; 
  text-align: center;
}
.bmr-page-title { 
  font-size: 21px; 
  font-weight: 700; 
  color: #0f172a;
  margin: 0 0 9px; 
}
.bmr-page-subtitle { 
  font-size: 12px; 
  color: #64748b; 
  font-weight: 500; 
  margin: 0; 
}
.bmr-result-count { 
  font-size: 11px; 
  color: #94a3b8; 
  font-weight: 500;
  margin-bottom: 14px; 
  min-height: 20px; 
  text-align: end;
}

/* ── Coach Cards ── */
.bmr-list-inner { 
  display: flex; 
  flex-direction: column; 
  gap: 12px; 
}

.bmr-card {
  display: flex;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  position: relative;
}

/* Simple, flat, non-animated hover */
.bmr-card:hover { 
  border-color: #cbd5e1; 
  background-color: #fafbfc;
}

/* Premium VIP Card Styles */
.bmr-card--vip { 
  border: 1px solid #f59e0b !important; 
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.02) 0%, rgba(255, 255, 255, 0) 100%) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08) !important;
}
//.bmr-card--vip::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  right: 0; 
  bottom: 0; 
  width: 4px;
  background: linear-gradient(to bottom, #fbbf24, #d97706); 
  z-index: 1;
}
.bmr-card--vip:hover { 
  border-color: #d97706 !important;
  //box-shadow: 0 6px 16px rgba(217, 119, 6, 0.14) !important;
}

/* Padded rounded avatar layout */
.bmr-card__img-container {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bmr-card__img {
  width: 128px; 
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}
.bmr-card--vip .bmr-card__img {
  border-color: #fbbf24;
  border-width: 2px;
}
.bmr-card__img img {
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  object-position: top center; 
  display: block;
}
.bmr-card__img-ph {
  width: 100%;
  height: 100%;
  display: flex; 
  align-items: center; 
  justify-content: center;
  color: #94a3b8; 
  background: #f1f5f9;
}

/* Golden ribbon absolute positioned on top-left displaying category */
.bmr-card__vip-ribbon {
  position: absolute; 
  top: 14px; 
  left: 14px; 
  z-index: 2;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff; 
  font-size: 11px; 
  font-weight: 700;
  padding: 3px 10px; 
  border-radius: 9999px; 
  letter-spacing: 0.02em;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.15);
}

.bmr-card__body { 
  flex: 1; 
  padding: 16px 16px 0; 
  min-width: 0; 
  display: flex; 
  flex-direction: column; 
}
.bmr-card__name { 
  font-size: 16px; 
  font-weight: 800; 
  color: #0f172a;
  margin-bottom: 6px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  padding-left: 64px; /* Space for the top-left absolute ribbon if present */
}
.bmr-card__sport { 
  font-size: 11px; 
  font-weight: 700; 
  //color: #10b981; 
  //background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 3px 10px;
  border-radius: 9999px;
  align-self: start;
  margin-top: 3px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bmr-card--vip .bmr-card__sport {
  color: #d97706;
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}

/* Meta list with clean styling */
.bmr-card__meta {
  display: flex; 
  align-items: center; 
  gap: 6px;
  font-size: 13px; 
  color: #64748b;
  font-weight: 600;
  border-top: 1px solid #f1f5f9;
  padding: 10px 0 12px; 
  margin-top: auto;
}
.bmr-card__meta svg { 
  flex-shrink: 0; 
  color: #94a3b8;
}
.bmr-card__meta-dot { 
  width: 4px; 
  height: 4px; 
  border-radius: 50%; 
  background: #cbd5e1; 
  flex-shrink: 0; 
}

/* ── Load More Button ── */
.bmr-loadmore-wrap { 
  margin-top: 20px; 
}
.bmr-loadmore-btn {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 8px;
  width: 100%; 
  padding: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: inherit;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-decoration: none !important;
  outline: none;
  margin: 0; 
  line-height: 1.4;
}
.bmr-loadmore-btn:hover { 
  border-color: #10b981; 
  color: #10b981; 
  background: #f0fdf4; 
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.08);
}
.bmr-loadmore-btn.loading { 
  opacity: .8; 
  color: #10b981;
  border-color: #10b981;
  background-color: #f0fdf4;
  cursor: not-allowed; 
  pointer-events: none; 
}

/* ── Skeleton Shimmer loading ── */
.bmr-skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: bmr-shimmer 1.5s infinite ease-in-out;
  border-radius: 6px;
}
@keyframes bmr-shimmer { 
  0% { background-position: 200% 0; } 
  100% { background-position: -200% 0; } 
}
.bmr-card--skeleton { 
  pointer-events: none; 
  background: #ffffff !important;
}
.bmr-card--skeleton .bmr-card__img { 
  background: #f1f5f9; 
}
.bmr-card--skeleton .bmr-card__body { 
  padding: 16px; 
  gap: 12px; 
}

/* ── No Results State ── */
.bmr-no-results { 
  text-align: center; 
  padding: 56px 24px; 
  color: #94a3b8; 
  background-color: #ffffff;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
}
.bmr-no-results svg {
  color: #cbd5e1;
  margin-bottom: 12px;
}
.bmr-no-results p { 
  font-size: 14px; 
  margin: 0; 
  font-weight: 600;
}

/* ── Spinner ── */
.bmr-spinner {
  color: #10b981;
  animation: bmr-spin 0.8s linear infinite;
}
@keyframes bmr-spin { 
  from { transform: rotate(0deg); } 
  to { transform: rotate(360deg); } 
}

/* ══ RESPONSIVE BREAKPOINTS ══ */
@media (max-width: 900px) {
  .bmr-layout { 
    grid-template-columns: 1fr 306px; 
    gap: 20px; 
  }
  .bmr-card__img-container { 
    padding: 12px;
  }
  .bmr-card__img { 
    width: 101px;
    height: 101px;
  }
  .bmr-card__body {
    padding: 12px 12px 0;
  }
  .bmr-card__name {
    padding-left: 56px;
  }
}

@media (max-width: 680px) {
  .bmr-archive { 
    padding: 16px 12px 48px; 
  }
  .bmr-layout { 
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  /* Render main content (filters and coach cards list) FIRST */
  .bmr-main {
    order: 1;
    width: 100%;
  }
  
  /* Render sidebar FIRST ONLY on desktop, so on mobile it renders at the bottom */
  .bmr-sidebar { 
    order: 2; 
    position: static; 
    margin-top: 24px; 
    gap: 16px; 
    width: 100%;
  }
  
  .bmr-filter-desktop { 
    display: none; 
  }
  .bmr-filter-mobile { 
    display: block; 
    margin-bottom: 16px;
  }
  
  .bmr-card__img-container { 
    padding: 10px;
  }
  .bmr-card__img { 
    width: 101px; 
    height: 101px;
    border-radius: 10px;
  }
  .bmr-card__body {
    padding: 10px 10px 0;
  }
  .bmr-card__name { 
    font-size: 14.5px; 
    padding-left: 50px;
  }
  .bmr-card__vip-ribbon {
    top: 10px;
    left: 10px;
    font-size: 11px;
    padding: 2px 8px;
  }
  .bmr-page-title { 
    font-size: 18px; 
  }
}