@import url('https://fonts.googleapis.com/css2?family=Elms+Sans:ital,wght@0,100..900;1,100..900&family=Montserrat&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Elms Sans", sans-serif;
}

:root {
  color-scheme: dark;
}

:root {
  --background: #121212;
  --surface: #1C1C1C;
  --card: #242424;
  --primary: #BB86FC;
  --secondary: #03DAC6;
  --text-primary: #bcbcbc;
  --text-muted: #bcbcbc;
  --divider: #b43430;
}

body {
  background: var(--background);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  color: white;
}

.logo-link, .logo-link img {
  display: block;
  width: 100%;
}

.container {
  display: flex;
  flex-wrap: wrap;
}

.filters {
  flex: 0 0 320px;
  background: var(--surface);
  padding: 20px;
  color: var(--text-primary);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.filters h2 {
  margin-bottom: 15px;
}

.filter-group {
  margin-bottom: 15px;
}

.checkbox-group label {
  display: block;
  margin-bottom: 5px;
}

button {
  padding: 10px;
  background: var(--primary);
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
}



body.loading .cam-list {
  opacity: 0.5;
  pointer-events: none;
}

body.loading .cam-list {
  opacity: 0.5;
  pointer-events: none;
}


#scrollSentinel {
  height: 200px;
}


img {
  pointer-events: none;
}

body {
  min-height: 100vh;
}

.cam-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-template-rows: auto 1fr;
  grid-gap: 15px;
}

@media screen and (min-width: 1000px) {
  .cam-list {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

.right-index-container {
    flex: 1;
    min-width: 0;
}

.search-navbar {
  background: #111;
  overflow-x: auto;
}

.search-navbar ul {
  display: flex;
  gap: 14px;
  padding: 10px 12px;
  margin: 0;
  list-style: none;
  white-space: nowrap;
}

.search-navbar a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #222;
}

.search-navbar a:hover {
  background: #333;
}

input, select {
  background: var(--card);
  color: var(--primary);
  padding: 10px;
}

input[type='text'] {
  border: none;
  outline: none;
}

input[type='checkbox'] {
  appearance: none;
  background-color: var(--card);
  margin: 0;
  font: inherit;
  color: var(--text-muted);
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid var(--text-muted);
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: inline-grid;
  place-content: center;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--primary);
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.checkbox-group label {
  display: block;
  padding: 3px 0;
}

.filter-group > label {
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

.filter-group.toggles, .checkbox-group {
  column-count: 2;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

#toggleFilters {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 5000;
    font-size: xx-large;
    box-shadow: 2px 9px 50px -3px #000000;
}

#filterName {
  width: 100%;
}

#ageSlider {
  width: calc(100% - 34px);
  margin: auto;
}

.filter-group > label {
  color: #fff;
  font-weight: bold;
}

.noUi-connect {
  background: var(--primary);
}

.choices__inner {
  background: transparent;
  border: 1px solid white;
}

.choices__list--dropdown {
  background: var(--surface) !important;
}


 .choices__item--selectable.is-highlighted { 
  background-color:  var(--primary) !important;
  color: #000;
}

.choices__input {
  background-color: transparent !important;
}

input.choices__input  {
  width: 100% !important;
}

.footer a {
  color: #fff  !important;
  margin-right: 15px;
}

.footer {
  padding: 20px;
}

.right-index-container {
  flex-grow: 1;
  padding: 20px;
}

.container {
  height: 100vh;
}



.filters, .container .right-index-container {
  height: 100%;
  overflow: auto;
}

.cam-card {
  position: relative;
}

.cam-card .provider-logo-container {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40%;
}

.provider-logo-container img {
  width: 100%;
}

.cam-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  position: relative;
}

.cam-card .profile-img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

.cam-card .profile-img.blur-image {
  filter: blur(12px);
}

.cam-info {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  width: 100%;
  padding: 5px;
  font-size: 0.8em;
}

.provider-logo-container {
  position: absolute;
}

.provider-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
}

.cam-feature-icon-container {
  position: absolute;
  left: 5px;
  top: 5px;
}

.cam-feature-icon-container::before,
 .provider-logo-container::before {
    content: "";
    position: absolute;
    top: 0;
    background-size: inherit;
    background-repeat: inherit;
    background-position: inherit;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: scale(1.35);
    filter: blur(25px);
    background-color: rgba(0, 0, 0, 0.65);
}

.cam-info {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap:10px;
}

.cam-info .name {
  font-weight: bold;
}

.cam-info .right {
  display: flex;
  gap: 10px;
}


@media screen and (max-width: 600px) {
  #filtersPanel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 5002;
    width: 80vw;
  }

  .container {
    display: block;
  }
}

/* Mobile filter panel hidden by default and toggled open */
@media screen and (max-width: 600px) {
  .filters {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-110%);
    transition: transform 0.25s ease-in-out;
    box-shadow: 4px 6px 40px rgba(0,0,0,0.6);
    z-index: 6000;
  }

  .filters.open {
    transform: translateX(0);
  }

  .filters .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    color: #fff;
    border: none;
    font-size: 24px;
    line-height: 1;
    padding: 6px;
    cursor: pointer;
  }

  #toggleFilters {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 5001;
    font-size: 28px;
    background: var(--primary);
    color: #000;
    border-radius: 8px;
    padding: 8px 12px;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    cursor: pointer;
  }

  /* overlay behind the panel */
  #filtersOverlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-in-out, visibility 0.2s;
    z-index: 999;
    pointer-events: none;
  }

  #filtersOverlay.visible{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* hide the old floating toggle (we use the header button instead) */
  #toggleFilters { display: none; }

  /* mobile top header */
  .mobile-header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 37px 12px;
    background: var(--surface);
    z-index: 5002;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }

  .mobile-header .logo-link{ max-width: 160px; }
  .mobile-header .logo-link img{ height: 70px; object-fit: contain; }

  .mobile-filter-btn{
    font-size: 22px;
    color: #fff;
    background: transparent;
    border: none;
    right: 5px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
  }

  /* push page content down so header doesn't overlap */
  .container{ padding-top: 66px; }
}

@media screen and (min-width: 601px) {
  #toggleFilters, #closeFilters { display: none; }
  .mobile-header { display: none; }
}

/* Detail Page Styles */
.promo-player {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  margin-bottom: 25px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-player:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}

.promo-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-player img.blur-image {
  filter: blur(12px);
}

.promo-player .ic {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.promo-player:hover i:not(.fa-spinner) {
  filter: drop-shadow(0 0 8px rgba(187, 134, 252, 0.6));
  transform: translate(-50%, -50%) scale(1.1);
}

.bonus-offer-container {
  margin: 20px 0;
}

.bonus-offer-box {
  background: linear-gradient(135deg, var(--primary) 0%, #9c27b0 100%);
  color: white;
  padding: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(187, 134, 252, 0.3);
}

.bonus-offer-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(187, 134, 252, 0.5);
}

.bonus-offer-box h5 {
  margin: 0 0 12px 0;
  font-size: 1.3em;
  font-weight: 600;
}

.bonus-offer-box p {
  margin: 0;
  font-size: 0.95em;
  line-height: 1.5;
}

.bonus-offer-box strong {
  font-weight: 700;
}

h4 {
  font-size: 2em;
  margin: 25px 0 20px 0;
  color: white;
  font-weight: 600;
}

.cam-details-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 25px 0;
}

.cam-detail-item {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.cam-detail-item:hover {
  background: rgb(42, 42, 42);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cam-detail-full {
  grid-column: 1 / -1;
  border-left-color: var(--secondary);
  background: linear-gradient(135deg, rgba(3, 218, 198, 0.1) 0%, rgba(3, 218, 198, 0.05) 100%);
  padding: 20px;
}

.detail-label {
  display: block;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 8px;
}

.detail-value {
  display: block;
  font-size: 1.1em;
  color: white;
  font-weight: 500;
  line-height: 1.4;
}

.model-bio {
  background: var(--surface);
  padding: 20px;
  border-radius: 10px;
  margin-top: 25px;
  color: var(--text-primary);
  line-height: 1.6;
  border-left: 4px solid var(--divider);
}

.model-bio a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.model-bio a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* Similar performers section */
.similar-performers-section {
  margin-top: 40px;
  padding: 30px 0;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.similar-performers-section h4 {
  margin-top: 0;
}

/* Vue component for similar performers */
.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.rooms h4 {
  grid-column: 1 / -1;
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Mobile responsive detail page */
@media screen and (max-width: 768px) {
  h4 {
    font-size: 1.6em;
  }

  .promo-player {
    max-width: 100%;
  }

  .bonus-offer-box {
    padding: 16px;
  }

  .rooms {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media screen and (max-width: 600px) {
  .right-index-container {
    padding: 10px;
  }

  h4 {
    font-size: 1.4em;
    margin: 15px 0;
  }

  .cam-details-grid {
    gap: 12px;
  }

  .cam-detail-item {
    padding: 12px;
  }

  .detail-label {
    font-size: 0.8em;
  }

  .detail-value {
    font-size: 1em;
  }

  .promo-player {
    margin-bottom: 15px;
  }

  .model-bio {
    margin-top: 15px;
    padding: 15px;
  }
}



@media screen and (min-width: 1000px) {
   .cam-details-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}