/* Furry Fusion theme for Pretix (events.furryfusion.nl) — matches furryfusion.nl:
   dark slate, glass cards, blue → purple → pink gradients. Paste into the event's custom CSS. */

:root {
  --ff-bg: #0f172a;
  --ff-text: #e2e8f0;
  --ff-muted: #94a3b8;
  --ff-panel: rgba(15, 23, 42, 0.6); /* the site's events panel: slate-900/50–60 */
  --ff-glass: rgba(255, 255, 255, 0.04);
  --ff-glass-hover: rgba(255, 255, 255, 0.08);
  --ff-popup: #111a2e;
  --ff-border: rgba(255, 255, 255, 0.12);
  --ff-border-strong: rgba(255, 255, 255, 0.3);
  --ff-purple: #c4b5fd;
  --ff-pink: #f9a8d4;
  --ff-cta: linear-gradient(90deg, rgba(59, 130, 246, 0.6), rgba(168, 85, 247, 0.6), rgba(236, 72, 153, 0.6));
  --ff-cta-hover: linear-gradient(90deg, rgba(59, 130, 246, 0.8), rgba(168, 85, 247, 0.8), rgba(236, 72, 153, 0.8));
  --ff-title: linear-gradient(90deg, #bfdbfe, #e9d5ff, #fbcfe8);
  /* Poppins comes from Pretix's font pack (set in the event's theme settings) */
  --ff-display: Poppins, var(--pretix-font-family-sans-serif, sans-serif);
}

/* ---------- Page background: same as furryfusion.nl (slate gradient + stars from custom.js) ---------- */

html {
  background: var(--ff-bg) !important;
}
body {
  background: transparent !important; /* lets the fixed layers below show */
  color: var(--ff-text);
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}
#ff-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
#ff-sky i {
  position: absolute;
  border-radius: 50%;
  background: #fff;
}
#ff-sky .ff-star {
  width: 1px;
  height: 1px;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  animation: ff-twinkle 3s ease-in-out infinite;
}
#ff-sky .ff-electron {
  width: 4px;
  height: 4px;
  opacity: 0.6;
  animation: ff-float 5s ease-in-out infinite;
}
@keyframes ff-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}
@keyframes ff-float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(5px, -10px); }
  50% { transform: translate(-5px, -5px); }
  75% { transform: translate(3px, -15px); }
}
#page-wrapper {
  background: transparent !important;
  min-height: 100vh;
}

/* ---------- Text ---------- */

/* Light text everywhere; :where() keeps it at zero specificity so the coloured rules below still win */
:where(.container.main-box, .container.main-box :is(h1, h2, h3, h4, h5, h6, p, span, div, strong, label, th, td, dt, dd, li), .text-muted, .help-block) {
  color: var(--ff-text) !important;
}
.text-muted,
.help-block {
  opacity: 0.8;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, legend {
  font-family: var(--ff-display);
}
.container.main-box a:not(.btn) {
  color: var(--ff-purple) !important;
}
.container.main-box a:not(.btn):hover {
  color: var(--ff-pink) !important;
}

.page-header h1,
.page-header h1 a {
  background: var(--ff-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  border-bottom: none !important;
}
.page-header h1 small.text-muted {
  -webkit-text-fill-color: #cbd5e1;
}

h2.content-header {
  font-size: 36px;
  font-weight: 700;
  color: #fff !important;
  text-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
  margin-bottom: 28px;
}
/* Event date as a pill next to the title */
h2.content-header small {
  display: inline-block;
  margin-left: 12px;
  padding: 4px 12px;
  border: 1px solid rgba(165, 180, 252, 0.4);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #e0e7ff !important;
  font-family: var(--pretix-font-family-sans-serif);
  font-size: 13px;
  font-weight: 600;
  vertical-align: middle;
  text-shadow: none;
}

/* ---------- Glass containers ---------- */

.container.main-box {
  position: relative;
  z-index: 1;
  background: var(--ff-panel) !important;
  border: 1px solid var(--ff-border) !important;
  border-radius: 24px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.page-header.logo-large img,
.event-logo,
.page-header.page-header-with-logo {
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
}

.panel,
.cart,
.product-row,
.well {
  background: var(--ff-glass) !important;
  border: 1px solid var(--ff-border) !important;
  border-radius: 16px !important;
  box-shadow: none;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.product-row {
  margin-bottom: 16px !important;
}
.product-row:hover {
  background: var(--ff-glass-hover) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 30px rgba(129, 140, 248, 0.2);
}
.panel-heading {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.panel-footer,
.list-group-item,
.cart-row {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.panel-success { border-color: rgba(74, 222, 128, 0.45) !important; }
.panel-danger { border-color: rgba(248, 113, 113, 0.45) !important; }

/* "Sneak peek" fade at the bottom of long descriptions */
.sneak-peek-trigger {
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 20%, transparent) !important;
  color: var(--ff-purple) !important;
}
.sneak-peek-trigger:hover,
.sneak-peek-trigger:hover * {
  color: var(--ff-pink) !important;
}

/* Event "where" + "when": two glass cards, side by side from tablet width up */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: var(--ff-glass);
  border: 1px solid var(--ff-border);
  border-radius: 16px;
}
.info-row .info-row-icon {
  position: static !important;
  flex: none;
  margin: 0 !important;
  font-size: 22px !important;
  color: var(--ff-purple) !important;
}
.info-row .info-row-icon * {
  color: inherit !important;
}
.info-row p {
  margin: 0 !important;
}
@media (min-width: 768px) {
  .info-row {
    display: inline-flex !important;
    vertical-align: top;
    width: calc(50% - 8px); /* + 12px gap + ~4px inline whitespace = full width */
    min-height: 132px; /* the address is 5 lines: keeps both cards the same height */
  }
  .info-row + .info-row {
    margin-left: 12px;
  }
}

/* Popups ("please wait", confirmations) */
.modal-card {
  background: var(--ff-popup) !important;
  border: 1px solid var(--ff-border) !important;
  border-radius: 16px !important;
  color: var(--ff-text) !important;
}
.modal-card * {
  color: inherit;
}

/* "Thank you!" after ordering: gradient tick + title */
.thank-you .fa-check-circle {
  background: linear-gradient(135deg, #60a5fa, #a855f7, #ec4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  filter: drop-shadow(0 0 24px rgba(168, 85, 247, 0.45));
}
.thank-you h2 {
  background: var(--ff-title);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  border-radius: 999px !important;
  font-weight: 600;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s !important;
}
.btn-primary,
.btn-success {
  background: var(--ff-cta) !important;
  border: 1px solid var(--ff-border-strong) !important;
  color: #fff !important;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.25) !important;
}
.btn-primary:hover,
.btn-success:hover,
.btn-primary:focus-visible,
.btn-success:focus-visible {
  background: var(--ff-cta-hover) !important;
  box-shadow: 0 0 45px rgba(168, 85, 247, 0.45) !important;
  transform: scale(1.04);
}
.btn-default {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}
.btn-default:hover,
.btn-default:focus-visible {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: var(--ff-border-strong) !important;
}
.btn-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(252, 165, 165, 0.5) !important;
  color: #fecaca !important;
}
.btn-danger:hover,
.btn-danger:focus-visible {
  background: rgba(239, 68, 68, 0.35) !important;
  color: #fff !important;
}
.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7) !important;
  outline-offset: 2px;
}
.btn.disabled,
.btn[disabled] {
  opacity: 0.5;
  transform: none !important;
}

/* Ticket "Select" toggle (label.btn-checkbox around a checkbox): lights up when checked */
.btn-checkbox input[type="checkbox"] {
  accent-color: #a855f7;
  margin: 0 6px 0 0;
  vertical-align: -2px;
}
.btn-checkbox:has(input:checked) {
  background: var(--ff-cta-hover) !important;
  border-color: rgba(249, 168, 212, 0.7) !important;
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35) !important;
}
.btn-checkbox:has(input:focus-visible) {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

/* Checkout steps: dark track, gradient for done/current */
.checkout-step::before,
.checkout-step::after {
  background: rgba(255, 255, 255, 0.12) !important;
}
.checkout-step.step-done::before,
.checkout-step.step-done::after,
.checkout-step.step-current::before {
  background: #a78bfa !important;
}
.checkout-step-icon {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: var(--ff-muted) !important;
}
.checkout-step-icon * {
  color: inherit !important;
}
.step-current .checkout-step-icon,
.step-done .checkout-step-icon {
  background: linear-gradient(135deg, #3b82f6, #a855f7, #ec4899) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

/* ---------- Forms ---------- */

.form-control {
  height: auto;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid var(--ff-border) !important;
  border-radius: 12px !important;
  color: #fff !important;
  box-shadow: none !important;
}
.form-control::placeholder {
  color: var(--ff-muted);
}
.form-control:focus {
  border-color: #a5b4fc !important;
  box-shadow: 0 0 0 3px rgba(165, 180, 252, 0.25) !important;
  outline: none;
}
select.form-control option {
  background: var(--ff-popup);
  color: #fff;
}
legend {
  color: #fff !important;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
input[type="file"]::file-selector-button {
  margin-right: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}
input[type="file"]::file-selector-button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.profile-save-container {
  margin-top: 20px;
  padding: 16px;
  background: var(--ff-panel) !important;
  border: 1px solid var(--ff-border) !important;
  border-radius: 16px !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

/* Checkbox questions ("Public registration", confirmations): a big clickable card that lights up */
.checkbox label {
  position: relative;
  display: block;
  padding: 14px 16px 14px 48px !important;
  border: 1px solid var(--ff-border);
  border-radius: 14px;
  background: var(--ff-glass);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.checkbox label:hover {
  background: var(--ff-glass-hover);
  border-color: rgba(255, 255, 255, 0.22);
}
.checkbox input[type="checkbox"] {
  position: absolute !important;
  left: 16px;
  top: 15px;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  accent-color: #a855f7;
  cursor: pointer;
}
.checkbox label:has(input:checked) {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.16), rgba(168, 85, 247, 0.16), rgba(236, 72, 153, 0.16));
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.2);
}
.checkbox input[type="checkbox"]:focus {
  outline: none !important; /* the card gets the focus ring instead */
}
.checkbox label:has(input:focus-visible) {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}
/* help text under a checkbox lines up with its label text */
.checkbox + .help-block {
  padding-left: 48px;
}

/* Date/time pickers and other dropdowns: dark popups */
.dropdown-menu,
.bootstrap-datetimepicker-widget.dropdown-menu {
  background: var(--ff-popup) !important;
  border: 1px solid var(--ff-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
  color: var(--ff-text) !important;
}
.bootstrap-datetimepicker-widget.dropdown-menu.bottom::before { border-bottom-color: var(--ff-border) !important; }
.bootstrap-datetimepicker-widget.dropdown-menu.bottom::after { border-bottom-color: var(--ff-popup) !important; }
.bootstrap-datetimepicker-widget.dropdown-menu.top::before { border-top-color: var(--ff-border) !important; }
.bootstrap-datetimepicker-widget.dropdown-menu.top::after { border-top-color: var(--ff-popup) !important; }
.bootstrap-datetimepicker-widget :is(td, th, span, a) {
  color: var(--ff-text) !important;
  opacity: 1 !important;
}
.bootstrap-datetimepicker-widget td:is(.old, .new),
.bootstrap-datetimepicker-widget :is(td, span).disabled {
  color: #64748b !important;
}
.bootstrap-datetimepicker-widget :is(td.day, td.hour, td.minute, span, th.prev, th.next, th.picker-switch, a[data-action]):hover {
  background: rgba(255, 255, 255, 0.1) !important;
}
.bootstrap-datetimepicker-widget :is(td, span).active,
.bootstrap-datetimepicker-widget :is(td, span).active:hover {
  background: var(--ff-cta-hover) !important;
  color: #fff !important;
  text-shadow: none !important;
}
.bootstrap-datetimepicker-widget td.today::before {
  border-bottom-color: var(--ff-pink) !important;
}
.dropdown-menu > li > a {
  color: var(--ff-text) !important;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* ---------- Tables and lists ---------- */

.table {
  color: var(--ff-text) !important;
  background: transparent !important;
}
.table > thead > tr > th {
  border-bottom: 2px solid rgba(196, 181, 253, 0.35) !important;
  color: var(--ff-purple) !important;
  font-size: 0.85em;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.table > tbody > tr > td,
.table > tbody > tr > th {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  vertical-align: middle;
}
.table > tbody > tr,
.list-group-item {
  background: transparent !important;
}
.table-striped > tbody > tr:nth-of-type(odd),
.list-group-item:nth-child(odd),
.alternating-rows > :nth-child(odd) {
  background: rgba(255, 255, 255, 0.03) !important;
}
.table-striped > tbody > tr:nth-of-type(even),
.list-group-item:nth-child(even),
.alternating-rows > :nth-child(even) {
  background: rgba(0, 0, 0, 0.15) !important;
}
.table-striped > tbody > tr:hover,
.list-group-item:hover {
  background: rgba(168, 85, 247, 0.08) !important;
}

img.gravatar {
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}
.img-thumbnail {
  padding: 8px;
  background: var(--ff-glass) !important;
  border: 1px solid var(--ff-border) !important;
  border-radius: 12px !important;
}

/* ---------- Alerts, labels, status bubbles ---------- */

.alert {
  border-radius: 16px !important;
}
.alert a {
  font-weight: 700;
  text-decoration: underline;
}
.alert-success { background: rgba(34, 197, 94, 0.15) !important; border: 1px solid rgba(74, 222, 128, 0.4) !important; }
.alert-info { background: rgba(59, 130, 246, 0.15) !important; border: 1px solid rgba(147, 197, 253, 0.4) !important; }
.alert-warning { background: rgba(245, 158, 11, 0.15) !important; border: 1px solid rgba(252, 211, 77, 0.4) !important; }
.alert-danger { background: rgba(239, 68, 68, 0.15) !important; border: 1px solid rgba(252, 165, 165, 0.4) !important; }
/* the icon strip on the left: softer than Pretix's full-brightness brand colours */
.alert::before { border-radius: 15px 0 0 15px; }
.alert-success::before { background-color: rgba(34, 197, 94, 0.45) !important; }
.alert-info::before { background-color: rgba(59, 130, 246, 0.45) !important; }
.alert-warning::before { background-color: rgba(245, 158, 11, 0.5) !important; }
.alert-danger::before { background-color: rgba(239, 68, 68, 0.5) !important; }
.alert-success, .alert-success * { color: #bbf7d0 !important; }
.alert-info, .alert-info * { color: #dbeafe !important; }
.alert-warning, .alert-warning * { color: #fde68a !important; }
.alert-danger, .alert-danger * { color: #fecaca !important; }

.label,
.textbubble,
.textbubble-success,
.textbubble-info,
.textbubble-warning,
.textbubble-danger {
  display: inline-block;
  padding: 2px 10px !important;
  border: 1px solid;
  border-radius: 999px !important;
  font-weight: 600;
}
.textbubble,
.textbubble-info {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(165, 180, 252, 0.45) !important;
  color: #e0e7ff !important;
}
.label-success,
.textbubble-success {
  background: rgba(34, 197, 94, 0.2) !important;
  border-color: rgba(74, 222, 128, 0.45) !important;
  color: #bbf7d0 !important;
}
.label-warning,
.textbubble-warning {
  background: rgba(245, 158, 11, 0.2) !important;
  border-color: rgba(252, 211, 77, 0.45) !important;
  color: #fde68a !important;
}
.label-danger,
.textbubble-danger {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(252, 165, 165, 0.45) !important;
  color: #fecaca !important;
}

/* ---------- Top bar: back button (added by custom.js) + language switch ---------- */

.page-header-links-outside {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding-top: 16px !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.page-header-links-outside .clearfix {
  display: none !important;
}
.page-header-links-outside .pull-right.header-part {
  float: none !important;
  margin: 0 0 0 auto !important;
}
.ff-back {
  float: none !important;
  margin: 0 !important;
}
/* Like the "View events" button on furryfusion.nl: tinted gradient with a purple glow */
.ff-back .btn {
  padding: 6px 16px;
  font-size: 0.9em;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.35), rgba(168, 85, 247, 0.35), rgba(236, 72, 153, 0.35)) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}
.ff-back .btn:hover,
.ff-back .btn:focus-visible {
  background: var(--ff-cta-hover) !important;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
  transform: scale(1.05);
}

.locales ul {
  display: inline-flex !important;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0 !important;
  padding: 4px !important;
  list-style: none;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 999px !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.locales li {
  margin: 0 !important;
  padding: 0 !important;
}
.locales li::before {
  content: none !important;
}
.locales a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: #cbd5e1 !important;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s;
}
.locales a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}
.locales a.active {
  background: var(--ff-cta-hover);
  color: #fff !important;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.35);
}
.locales a[lang="en"]::before { content: "🇬🇧 "; }
.locales a[lang^="nl"]::before { content: "🇳🇱 "; }

/* ---------- Phones ---------- */

@media (max-width: 768px) {
  h2.content-header {
    font-size: 28px;
  }
  h2.content-header small {
    display: block;
    width: max-content;
    margin: 10px 0 0;
  }
  .page-header-links-outside {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  /* Language switch: flags only */
  .locales a {
    padding: 6px 10px;
    font-size: 0;
  }
  .locales a::before {
    font-size: 18px;
  }
  .ff-back .btn {
    padding: 6px 12px;
    font-size: 0.85em;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ff-sky i {
    animation: none !important;
  }
  .btn,
  .product-row,
  .locales a {
    transition: none !important;
    transform: none !important;
  }
}