/* ============================================================
   Profiles Flick Cards Slider
   Exact Osmo Flick Cards CSS + Profile Filter Bar
   ============================================================ */

/* ============================================================
   FILTER BAR (USC addition)
   - No background, no rounded corners
   - White selects with black borders
   ============================================================ */
.profile-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  background: transparent;
  border-radius: 0;
  font-family: inherit;
}

.profile-filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* Shared height for dropdowns, input, pills, clear */
.profile-filter-input,
.profile-filter-clear,
.profile-custom-select__trigger {
  box-sizing: border-box;
  height: 2.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  border-radius: 0;
  transition: border-color 0.2s ease;
}

/* Custom select wrapper */
.profile-custom-select {
  position: relative;
  min-width: 10rem;
}

/* Trigger button — white bg, black text, black border */
.profile-custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  background: #fff;
  border: 0.0625rem solid #000;
  color: #000;
  padding: 0 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.profile-custom-select__trigger:hover {
  border-color: #333;
}

.profile-custom-select__trigger svg {
  width: 0.75rem;
  height: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.profile-custom-select.is-open .profile-custom-select__trigger svg {
  transform: rotate(180deg);
}

/* Dropdown panel */
.profile-custom-select__options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #fff;
  border: 0.0625rem solid #000;
  border-top: none;
  max-height: 15rem;
  overflow-y: auto;
}

.profile-custom-select.is-open .profile-custom-select__options {
  display: block;
}

/* Individual option */
.profile-custom-select__option {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: #000;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}

.profile-custom-select__option:hover {
  background: #f0f0f0;
}

.profile-custom-select__option.is-selected {
  background: #000;
  color: #fff;
}

.profile-custom-select__option.is-selected:hover {
  background: #222;
}

/* Custom select inside modals — higher z-index for dropdown panel */
.os-modal .profile-custom-select__options {
  z-index: 10010;
}

/* Custom select inside filter bar — smaller sizing */
.os-filter-bar .profile-custom-select__trigger {
  height: auto;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}
.os-filter-bar .profile-custom-select__option {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
}
.os-filter-bar .profile-custom-select {
  min-width: 7rem;
}

/* Custom select inside form groups — full width */
.os-form-group .profile-custom-select {
  width: 100%;
  min-width: 0;
}
.os-form-group .profile-custom-select__trigger {
  height: auto;
  padding: 0.75rem;
  font-size: 0.875rem;
}

/* Hidden native select (for form data) */
.profile-filter-dropdown {
  display: none;
}

/* Search input — black bg, white text, white border */
.profile-filter-input {
  background: #000;
  border: 0.0625rem solid #fff;
  color: #fff;
  padding: 0 0.75rem;
  min-width: 12rem;
}

.profile-filter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.profile-filter-input:focus {
  border-color: #fff;
  outline: none;
}

/* Filter pills — black bg, white text */
.profile-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.profile-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  background: #000;
  border: 0.0625rem solid #fff;
  border-radius: 0;
  color: #fff;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.profile-filter-pill:hover {
  background: #222;
}

/* Clear button — white bg, black text (matches dropdown style) */
.profile-filter-clear {
  background: #fff;
  border: 0.0625rem solid #000;
  color: #000;
  padding: 0 0.75rem;
  cursor: pointer;
  font-weight: 500;
}

.profile-filter-clear:hover {
  background: #eee;
}

/* ============================================================
   NAV MENU BUTTON — white bg, black icon, no rounding
   ============================================================ */
.menu-button,
.menu-button-2 {
  background-color: #fff;
  border: 0.0625rem solid #000;
  border-radius: 0;
  color: #000;
}

.menu-button .icon,
.menu-button .w-icon-nav-menu,
.menu-button-2 .icon,
.menu-button-2 .w-icon-nav-menu {
  color: #000;
}

.menu-button.w--open,
.menu-button-2.w--open {
  background-color: #000;
  color: #fff;
}

.menu-button.w--open .icon,
.menu-button.w--open .w-icon-nav-menu,
.menu-button-2.w--open .icon,
.menu-button-2.w--open .w-icon-nav-menu {
  color: #fff;
}

/* ============================================================
   FLICK SECTION — Split layout matching Webflow
   ============================================================ */
.flick-section {
  padding: 0;
}

/* ============================================================
   FLICK GROUP — Exact Osmo source + 80svh height + right align
   ============================================================ */
.flick-group {
  position: relative;
  height: min(80svh, 50em);
}

.flick-group__relative-object {
  opacity: 0;
  pointer-events: none;
  width: 56.4em;
  height: min(80svh, 50em);
  position: relative;
}

.flick-group__relative-object-before {
  padding-top: 75%;
}

.flick-group__collection {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.flick-group__list {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: relative;
}

.flick-group__item {
  position: absolute;
}

/* ============================================================
   FLICK CARD — Exact Osmo source, NO name overlay
   ============================================================ */
.flick-card {
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  background-color: #000;
  border-radius: 1.2em;
  justify-content: center;
  align-items: center;
  width: 28.2em;
  display: flex;
  position: relative;
  overflow: hidden;
}

.flick-card__before {
  padding-top: 150%;
}

.flick-card__media {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.cover-image {
  pointer-events: none;
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: auto;
}

/* Name overlay — hidden (content panel shows name instead) */
.flick-card__h3 {
  display: none;
}

.flick-card__btn {
  background-color: #000;
  border-radius: 0.45em;
  justify-content: center;
  align-items: center;
  width: calc(100% - 4.8em);
  height: 3.9em;
  text-decoration: none;
  display: flex;
  position: absolute;
  bottom: 2.4em;
  left: 2.4em;
}

.flick-card__btn-span {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
}

/* ============================================================
   DRAGGER — Exact Osmo source
   ============================================================ */
[data-flick-cards-dragger] {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
  touch-action: pan-y;
}

/* ============================================================
   STATUS-BASED TRANSITIONS — Exact Osmo source
   ============================================================ */

/* Position Slides */
[data-flick-cards-item-status] .flick-card__media {
  transition: opacity 0.2s ease;
  opacity: 0.5;
}

[data-flick-cards-item-status='2-before'] .flick-card__media,
[data-flick-cards-item-status='2-after'] .flick-card__media {
  transition: opacity 0.2s ease;
  opacity: 0.75;
}

[data-flick-cards-item-status='active'] .flick-card__media {
  opacity: 1;
}

/* Animate Button */
[data-flick-cards-item-status] .flick-card__btn {
  transition:
    opacity 0.4s cubic-bezier(0.625, 0.05, 0, 1),
    1s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translate(0%, 50%) rotate(0.001deg);
}

[data-flick-cards-item-status='active'] .flick-card__btn {
  opacity: 1;
  transform: translate(0%, 0%) rotate(0.001deg);
}

/* ============================================================
   FLICK ARROWS — aligned to bottom of slider
   ============================================================ */
.flick-arrows {
  z-index: 50;
  justify-content: flex-start;
  align-items: center;
  display: flex;
  position: absolute;
  inset: auto auto 0 0;
}

/* ============================================================
   FLICK NAV ARROWS — between content panel and cards
   ============================================================ */
.flick-nav-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1em;
  z-index: 10;
  align-self: center;
  padding: 0 0.5em;
}

.flick-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5em;
  height: 3.5em;
  border: 0.0625em solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white, #fff);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  text-decoration: none;
}

.flick-nav-arrow:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
}

.flick-nav-arrow svg {
  width: 1.5em;
  height: 1.5em;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   LEFT-ALIGN ALL PARAGRAPHS
   ============================================================ */
.flick-section p,
.flick-section .slider_info-text,
.flick-section .slider_tagline,
.flick-section .profile-link-wrap {
  text-align: left;
}

/* ============================================================
   EMPTY STATE (USC addition)
   ============================================================ */
.flick-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.flick-empty-state p {
  font-size: 1rem;
  margin: 0;
}

.flick-empty-state button {
  background: rgba(255, 255, 255, 0.1);
  border: 0.0625rem solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease;
}

.flick-empty-state button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================================
   SCREEN READER ONLY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 0.0625rem;
  height: 0.0625rem;
  padding: 0;
  margin: -0.0625rem;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   RESPONSIVE — Filter bar only
   ============================================================ */
@media (max-width: 48em) {
  .flick-section .slider_wrap {
    flex-direction: column-reverse;
  }

  .flick-section .slider_left {
    width: 100%;
    min-width: 100%;
  }

  .flick-section .slider_right {
    width: 100%;
    min-width: 100%;
    padding-bottom: 4em;
  }

  .flick-nav-arrows {
    flex-direction: row;
    padding: 1em 0;
    order: -1;
  }

  .profile-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }

  .profile-custom-select {
    width: 100%;
    min-width: 0;
  }

  .profile-custom-select__trigger,
  .profile-filter-input,
  .profile-filter-clear {
    width: 100%;
    min-width: 0;
    height: 2.75rem;
    font-size: 1rem;
  }

  .profile-filter-pill {
    height: 2.75rem;
    font-size: 1rem;
  }
}
