/* Zombie Land — Public Skin Catalogue
   Component styles for /skins/. Relies on the site's base style.css (fonts, layout,
   header/footer, CSS variables) and adds only the catalogue-specific pieces. */

.sk-lead {
  color: var(--muted, #b7becf);
  font-size: 15px;
  line-height: 1.6;
  max-width: 780px;
  margin: 0 0 22px;
}

/* ── Suggest CTA banner (whole banner is a link) ─────────────────────────── */
.sk-cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px 20px;
  border-radius: 14px;
  text-decoration: none;
  overflow: hidden;
  color: var(--text, #f1f3f8);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(139, 195, 255, 0.22), transparent 55%),
    linear-gradient(100deg, rgba(123, 134, 255, 0.20), rgba(139, 195, 255, 0.10) 60%, rgba(143, 241, 194, 0.12));
  border: 1px solid rgba(139, 195, 255, 0.38);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sk-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 195, 255, 0.65);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* moving sheen */
.sk-cta-shine {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: skewX(-18deg);
  animation: sk-shine 4.5s ease-in-out infinite;
}

@keyframes sk-shine {
  0%, 60% { left: -40%; }
  100% { left: 130%; }
}

@media (prefers-reduced-motion: reduce) {
  .sk-cta-shine { animation: none; display: none; }
}

.sk-cta-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: #0a1220;
  background: linear-gradient(135deg, #b7cbe7, #8bc3ff);
  box-shadow: 0 6px 18px rgba(139, 195, 255, 0.35);
}

.sk-cta-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.sk-cta-title {
  font-family: "Cinzel", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text, #f1f3f8);
}

.sk-cta-sub {
  font-size: 13px;
  color: var(--muted, #cdd5e6);
}

.sk-cta-go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  color: #0a1220;
  background: var(--brand, #8bc3ff);
  box-shadow: 0 6px 16px rgba(139, 195, 255, 0.3);
  transition: gap 0.15s ease, background 0.15s ease;
}

.sk-cta:hover .sk-cta-go { gap: 11px; background: #a6d2ff; }

/* ── Toolbar ─────────────────────────────────────────────────────────────── */
.sk-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.sk-input,
.sk-select,
.sk-textarea {
  background: var(--panel-2, #1f222a);
  border: 1px solid var(--line, #353945);
  color: var(--text, #f1f3f8);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

.sk-input:focus,
.sk-select:focus,
.sk-textarea:focus {
  outline: none;
  border-color: var(--brand, #8bc3ff);
  box-shadow: 0 0 0 2px rgba(139, 195, 255, 0.18);
}

.sk-toolbar .sk-input {
  flex: 1 1 260px;
  min-width: 0;
}

.sk-select { cursor: pointer; }

.sk-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--muted, #b7becf);
  font-size: 12.5px;
  margin-bottom: 6px;
}

.sk-legend-label { font-weight: 600; color: var(--text, #f1f3f8); }

.sk-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 20px;
  border: 1px solid var(--line, #353945);
  background: var(--panel-2, #1f222a);
  color: var(--muted, #b7becf);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.sk-legend-item:hover {
  border-color: var(--brand, #8bc3ff);
  color: var(--text, #f1f3f8);
  transform: translateY(-1px);
}

.sk-legend-item.is-active {
  border-color: var(--brand, #8bc3ff);
  background: rgba(139, 195, 255, 0.16);
  color: var(--text, #f1f3f8);
  font-weight: 600;
}

.sk-legend-item img { display: block; }

.sk-count {
  color: var(--muted, #b7becf);
  font-size: 13px;
  margin: 8px 0 16px;
}

.sk-status {
  color: var(--muted, #b7becf);
  padding: 40px 0;
  text-align: center;
  font-size: 15px;
}

.sk-status-error { color: #ff9b9b; }

/* ── Grid ────────────────────────────────────────────────────────────────── */
.sk-group { margin-bottom: 30px; }

.sk-group-title {
  font-family: "Cinzel", serif;
  font-size: 18px;
  color: var(--text, #f1f3f8);
  border-bottom: 1px solid var(--line, #353945);
  padding-bottom: 8px;
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sk-group-count {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #b7becf);
  background: var(--panel-2, #1f222a);
  border: 1px solid var(--line, #353945);
  border-radius: 20px;
  padding: 2px 9px;
}

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

.sk-card {
  background: var(--panel, #252831);
  border: 1px solid var(--line, #353945);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.sk-card:focus-visible {
  outline: 2px solid var(--brand, #8bc3ff);
  outline-offset: 2px;
}

.sk-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand, #8bc3ff);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
}

.sk-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #12141b;
}

.sk-card-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #7a8296);
  font-size: 12px;
}

.sk-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sk-card-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.sk-card-body {
  padding: 9px 11px 11px;
}

.sk-card-title {
  color: var(--text, #f1f3f8);
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sk-card-item {
  color: var(--muted, #b7becf);
  font-size: 12px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Suggestion section ──────────────────────────────────────────────────── */
.sk-suggest {
  margin-top: 40px;
  padding: 24px;
  background: var(--panel-2, #1f222a);
  border: 1px solid var(--line, #353945);
  border-radius: 14px;
}

.sk-suggest-title {
  font-family: "Cinzel", serif;
  font-size: 20px;
  color: var(--text, #f1f3f8);
  margin: 0 0 6px;
}

.sk-suggest-desc {
  color: var(--muted, #b7becf);
  font-size: 14px;
  margin: 0 0 18px;
  max-width: 620px;
}

.sk-suggest-signin p {
  color: var(--muted, #b7becf);
  font-size: 14px;
  margin: 0 0 12px;
}

.sk-suggest-form { max-width: 620px; }

.sk-field { margin-bottom: 14px; }

.sk-label {
  display: block;
  color: var(--text, #f1f3f8);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.sk-req { color: #ff9b9b; }
.sk-optional { color: var(--muted, #7a8296); font-weight: 400; }

.sk-field-hint { color: var(--muted, #7a8296); font-size: 12.5px; margin: 7px 0 0; }
.sk-field-hint a { color: var(--brand, #8bc3ff); }

.sk-field .sk-input,
.sk-textarea {
  width: 100%;
  box-sizing: border-box;
}

.sk-textarea { resize: vertical; }

.sk-suggest-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sk-suggest-msg { font-size: 13px; }
.sk-suggest-msg.is-ok { color: var(--success, #8ff1c2); }
.sk-suggest-msg.is-error { color: #ff9b9b; }

.sk-suggest-fineprint {
  color: var(--muted, #7a8296);
  font-size: 12px;
  margin: 12px 0 0;
}

.sk-suggest-fineprint strong { color: var(--muted, #b7becf); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.sk-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.sk-btn:disabled { opacity: 0.6; cursor: default; }

.sk-btn-primary {
  background: var(--brand, #8bc3ff);
  color: #0a1220;
}

.sk-btn-primary:hover:not(:disabled) { background: #a6d2ff; }

.sk-btn-steam {
  background: #1b2838;
  color: #f1f3f8;
  border-color: #2a3a4d;
}

.sk-btn-steam:hover { background: #223247; }

/* ── Detail modal ────────────────────────────────────────────────────────── */
.sk-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sk-modal[hidden] { display: none; }

.sk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 10, 0.78);
  backdrop-filter: blur(2px);
}

.sk-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  background: var(--panel, #1f222a);
  border: 1px solid var(--line, #353945);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
}

.sk-modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.sk-modal-x:hover { background: rgba(0, 0, 0, 0.7); }

.sk-modal-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #12141b;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.sk-modal-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #7a8296);
  font-size: 13px;
}

.sk-modal-media img#sk-modal-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0c0e14;
}

.sk-modal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
}

.sk-modal-body { padding: 18px 20px 20px; }

.sk-modal-title {
  font-family: "Cinzel", serif;
  font-size: 20px;
  color: var(--text, #f1f3f8);
  margin: 0 0 14px;
  line-height: 1.25;
}

.sk-modal-facts {
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}

.sk-modal-facts > div {
  display: flex;
  gap: 10px;
  font-size: 14px;
  border-bottom: 1px solid var(--line, #2a3146);
  padding-bottom: 8px;
}

.sk-modal-facts dt {
  flex: 0 0 96px;
  color: var(--muted, #b7becf);
  margin: 0;
}

.sk-modal-facts dd {
  margin: 0;
  color: var(--text, #f1f3f8);
  font-weight: 600;
}

.sk-modal-workshop { width: 100%; justify-content: center; }

@media (max-width: 560px) {
  .sk-cta { flex-wrap: wrap; }
  .sk-cta-text { flex-basis: calc(100% - 68px); }
  .sk-cta-go { width: 100%; justify-content: center; margin-top: 4px; }
}

@media (max-width: 520px) {
  .sk-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .sk-suggest { padding: 18px; }
}
