/* ============================================================
   GOOD GIRLS — css/workers.css
   Worker profiles (public Meet the Girls page) + the admin
   "Workers & Profiles" screens. Works on phones, tablets, laptops.
   ============================================================ */

[hidden] { display: none !important; }

:root {
  --wk-gold: #c9a84c;
  --wk-dark: #0a0e1a;
  --wk-card: rgba(20, 24, 36, 0.5);
  --wk-line: rgba(201, 168, 76, 0.18);
  --wk-muted: #9a9a9a;
}

/* ============================================================
   PUBLIC: PROFILE (uses the existing .girl-card layout)
   ============================================================ */
.girl-profile {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.girl-profile .girl-card { margin: 0; }

.girl-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1d2238 0%, #0a0e1a 100%);
  border: 1px solid var(--wk-line);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 4rem;
  color: var(--wk-gold);
}

.girl-name,
.girl-title,
.girl-description { overflow-wrap: anywhere; }

.wk-para { white-space: pre-line; }

.girl-tags:empty { display: none; }

.wk-avail {
  margin: 0 0 26px;
  border: 1px solid var(--wk-line);
  border-radius: 4px;
  background: rgba(10, 14, 26, 0.45);
  padding: 16px 18px;
}

.wk-avail h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wk-gold);
  font-weight: 500;
  margin-bottom: 12px;
}

.wk-avail-list {
  list-style: none;
  display: grid;
  gap: 8px;
}

.wk-avail-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--wk-muted);
  font-weight: 300;
}

.wk-avail-list .wk-day { color: var(--wk-gold); font-weight: 500; font-size: 0.82rem; }
.wk-avail-list .wk-status--available { color: #b9d9a6; }
.wk-avail-list .wk-status--limited { color: #e5c97a; }
.wk-avail-list .wk-status--booked { color: #d4a5a5; }
.wk-avail-list .wk-status--closed { color: var(--wk-muted); }

.wk-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.wk-links a {
  color: var(--wk-gold);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: color 0.3s;
}

.wk-links a:hover { color: #fff; }

/* ============================================================
   PUBLIC: LEFT-TO-RIGHT GALLERY
   ============================================================ */
.wk-gallery {
  background: var(--wk-card);
  border: 1px solid var(--wk-line);
  border-radius: 4px;
  padding: 22px 0 20px;
  min-width: 0;
}

.wk-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px 14px;
}

.wk-gallery-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--wk-gold);
  font-weight: 500;
}

.wk-arrows { display: flex; gap: 8px; }

.wk-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: transparent;
  color: var(--wk-gold);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.wk-arrow:hover:not(:disabled),
.wk-arrow:focus-visible {
  background: var(--wk-gold);
  color: var(--wk-dark);
  outline: none;
}

.wk-arrow:disabled { opacity: 0.3; cursor: default; }

.wk-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 4px 24px 14px;
  scroll-padding-left: 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--wk-gold) transparent;
}

.wk-track:focus-visible { outline: 1px solid var(--wk-gold); outline-offset: 2px; }

.wk-track::-webkit-scrollbar { height: 6px; }
.wk-track::-webkit-scrollbar-thumb { background: rgba(201, 168, 76, 0.5); border-radius: 3px; }

.wk-item {
  flex: 0 0 auto;
  height: 340px;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--wk-line);
}

.wk-item img,
.wk-item video {
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: cover;
}

.wk-item img { filter: brightness(0.95); }

.wk-item video { background: #000; }

.wk-gallery-empty {
  padding: 0 24px;
  color: var(--wk-muted);
  font-style: italic;
  font-size: 0.9rem;
}

.wk-gallery-hint {
  display: none;
  text-align: center;
  font-size: 0.72rem;
  color: var(--wk-muted);
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ============================================================
   PUBLIC: RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .girl-profile { max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .wk-item { height: 280px; }
  .wk-track { padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .wk-gallery-head { padding: 0 16px 12px; }
  .wk-arrow { width: 36px; height: 36px; }
  .wk-gallery-hint { display: block; }
  .wk-avail { padding: 14px; }
  .wk-avail-list li { grid-template-columns: 84px 1fr; font-size: 0.85rem; }
}

@media (max-width: 420px) {
  .wk-item { height: 230px; }
  .wk-arrows { display: none; }
  .wk-gallery-hint { display: block; }
}

/* ============================================================
   ADMIN: shared bits
   ============================================================ */
.wk-page-back {
  display: inline-block;
  color: var(--wk-gold);
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 18px;
}
.wk-page-back:hover { text-decoration: underline; }

.wk-toolbar {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.wk-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wk-btn-small {
  padding: 9px 16px;
  font-size: 0.7rem;
  letter-spacing: 1.2px;
  border-radius: 2px;
  border: 1px solid rgba(201, 168, 76, 0.4);
  background: transparent;
  color: var(--wk-gold);
  cursor: pointer;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  transition: all 0.25s;
}

.wk-btn-small:hover:not(:disabled) { background: var(--wk-gold); color: var(--wk-dark); }
.wk-btn-small:disabled { opacity: 0.35; cursor: default; }

.wk-btn-danger { border-color: rgba(212, 122, 122, 0.5); color: #d47a7a; }
.wk-btn-danger:hover:not(:disabled) { background: #d47a7a; color: var(--wk-dark); }

.wk-btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--wk-muted); }
.wk-btn-ghost:hover:not(:disabled) { background: #fff; color: var(--wk-dark); border-color: #fff; }

.wk-panel {
  background: var(--wk-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  padding: 26px 26px 24px;
  margin-bottom: 22px;
  min-width: 0;
}

.wk-panel h2 {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 4px;
}

.wk-panel > .wk-sub {
  color: var(--wk-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-weight: 300;
}

.wk-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

.wk-form-grid .wk-full { grid-column: 1 / -1; }

.wk-field { display: flex; flex-direction: column; min-width: 0; }

.wk-field label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--wk-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.wk-field input[type="text"],
.wk-field input[type="url"],
.wk-field textarea,
.wk-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 16px; /* 16px stops iPhone from zooming in on focus */
  background: rgba(10, 14, 26, 0.6);
  color: #e8e8e8;
  min-height: 44px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.wk-field textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.wk-field select { appearance: auto; }

.wk-field input:focus,
.wk-field textarea:focus,
.wk-field select:focus {
  outline: none;
  border-color: var(--wk-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
}

.wk-field input.wk-invalid,
.wk-field textarea.wk-invalid { border-color: #d47a7a; }

.wk-hint {
  font-size: 0.74rem;
  color: var(--wk-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.wk-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #e8e8e8;
  cursor: pointer;
  min-height: 44px;
}

.wk-check input {
  width: 20px;
  height: 20px;
  accent-color: var(--wk-gold);
  flex-shrink: 0;
}

/* availability rows */
.wk-avail-edit {
  display: grid;
  gap: 10px;
}

.wk-avail-row {
  display: grid;
  grid-template-columns: 110px 170px 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.wk-avail-row:last-child { border-bottom: none; }

.wk-avail-day {
  color: var(--wk-gold);
  font-weight: 500;
  font-size: 0.9rem;
}

.wk-avail-row select,
.wk-avail-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 2px;
  background: rgba(10, 14, 26, 0.6);
  color: #e8e8e8;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  min-height: 42px;
  min-width: 0;
}

.wk-avail-row select:focus,
.wk-avail-row input:focus { outline: none; border-color: var(--wk-gold); }

.wk-avail-head {
  display: grid;
  grid-template-columns: 110px 170px 1fr 1fr;
  gap: 10px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--wk-muted);
  padding-bottom: 6px;
}

/* media (photos and videos) */
.wk-upload {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.wk-upload input[type="file"] { display: none; }

.wk-upload-status {
  width: 100%;
  font-size: 0.82rem;
  color: var(--wk-muted);
  display: grid;
  gap: 4px;
}

.wk-upload-status:empty { display: none; }

.wk-upload-status .ok { color: #8fbf7a; }
.wk-upload-status .bad { color: #d47a7a; }

.wk-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.wk-tile {
  position: relative;
  background: #000;
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wk-tile-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: #05070d;
}

.wk-tile-media img,
.wk-tile-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wk-tile-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(10, 14, 26, 0.8);
  color: var(--wk-gold);
  font-size: 0.6rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  border: 1px solid rgba(201, 168, 76, 0.35);
}

.wk-tile-num {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 14, 26, 0.8);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
}

.wk-tile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.wk-tile-actions button {
  background: transparent;
  border: none;
  color: var(--wk-gold);
  padding: 10px 4px;
  min-height: 44px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.wk-tile-actions button + button { border-left: 1px solid rgba(201, 168, 76, 0.15); }
.wk-tile-actions button:hover:not(:disabled) { background: rgba(201, 168, 76, 0.12); }
.wk-tile-actions button:disabled { opacity: 0.3; cursor: default; }
.wk-tile-actions .wk-del { color: #d47a7a; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }

.wk-empty-box {
  border: 1px dashed rgba(201, 168, 76, 0.35);
  border-radius: 4px;
  padding: 30px 20px;
  text-align: center;
  color: var(--wk-muted);
  font-size: 0.9rem;
  font-weight: 300;
}

/* worker list (admin) */
.wk-list { display: grid; gap: 14px; }

.wk-row {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--wk-card);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 4px;
  padding: 14px;
  min-width: 0;
}

.wk-row.wk-row--hidden { opacity: 0.7; }

.wk-thumb {
  width: 84px;
  height: 104px;
  border-radius: 3px;
  overflow: hidden;
  background: #05070d;
  border: 1px solid rgba(201, 168, 76, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wk-gold);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.6rem;
}

.wk-thumb img,
.wk-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }

.wk-row-info { min-width: 0; }

.wk-row-name {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.5rem;
  color: #fff;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wk-row-meta {
  font-size: 0.8rem;
  color: var(--wk-muted);
  margin-top: 4px;
}

.wk-pill {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
  border: 1px solid rgba(143, 191, 122, 0.45);
  color: #8fbf7a;
}

.wk-pill.off { border-color: rgba(154, 154, 154, 0.4); color: var(--wk-muted); }

.wk-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 150px;
}

.wk-row-actions .wk-move { display: flex; gap: 8px; }
.wk-row-actions .wk-move button { flex: 1; }

/* save bar (admin) */
.wk-savebar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  padding: 22px 0 20px;
  background: linear-gradient(to top, rgba(10, 14, 26, 0.98) 70%, transparent);
  margin-top: 8px;
}

.wk-savebar .btn { min-width: 200px; }

.wk-savebar-note {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: var(--wk-gold);
  min-height: 1em;
}

/* ============================================================
   RESPONSIVE: ADMIN
   ============================================================ */
@media (max-width: 860px) {
  .wk-avail-head { display: none; }
  .wk-avail-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
  }
  .wk-avail-row .wk-avail-day { grid-column: 1 / -1; }
  .wk-avail-row .wk-avail-note { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .wk-form-grid { grid-template-columns: 1fr; }
  .wk-panel { padding: 20px 16px; }
  .wk-media-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .wk-row {
    grid-template-columns: 64px 1fr;
    gap: 14px;
  }
  .wk-thumb { width: 64px; height: 80px; font-size: 1.2rem; }
  .wk-row-name { font-size: 1.3rem; }
  .wk-row-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .wk-row-actions .wk-move { flex: 1 1 100%; }
  .wk-row-actions .wk-move button { min-height: 44px; }
  .wk-row-actions > .wk-btn-small { flex: 1 1 calc(50% - 4px); }
  .wk-savebar .btn { width: 100%; max-width: 360px; min-width: 0; }
  .wk-btn-row .wk-btn-small { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .wk-avail-row { grid-template-columns: 1fr; }
  .wk-media-grid { grid-template-columns: 1fr 1fr; }
}

/* demo banner (only shows with ?demo=1) */
.wk-demo-banner {
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 12px 18px;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: #0a0e1a;
  background: #c9a84c;
  border-radius: 2px;
}