:root {
  --ink: #e9f6ff;
  --panel: rgba(5, 18, 29, 0.72);
  --accent: #8bdcff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.min-vh-100 { min-height: 100dvh; }
.w-100 { width: 100%; }
.d-none { display: none !important; }
.opacity-75 { opacity: 0.75; }

.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }

.display-5 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.12;
}

.fw-bold { font-weight: 700; }
.lead { font-size: 1.05rem; line-height: 1.45; }
.small { font-size: 0.875rem; }

html.home-page code {
  color: #ff6fb5;
  font-weight: 700;
  background: rgba(255, 111, 181, 0.12);
  border: 1px solid rgba(255, 111, 181, 0.35);
  border-radius: 6px;
  padding: 1px 6px;
}

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  gap: 0;
}

.form-control,
.form-select {
  display: block;
  width: 100%;
  border: 1px solid rgba(164, 224, 253, 0.35);
  background: rgba(6, 31, 49, 0.62);
  color: #ecf9ff;
  border-radius: 10px;
  padding: 0.68rem 0.8rem;
  font: inherit;
  outline: none;
}

.form-control::placeholder {
  color: rgba(209, 241, 255, 0.7);
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(115, 208, 247, 0.95);
  box-shadow: 0 0 0 3px rgba(63, 183, 237, 0.22);
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.68rem 0.95rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  color: #06243a;
  background: linear-gradient(130deg, #9de7ff 0%, #50c5f1 52%, #2ca8e0 100%);
  border-color: rgba(74, 199, 242, 0.7);
}

.btn-outline-light {
  color: #dff4ff;
  background: rgba(8, 37, 58, 0.38);
  border-color: rgba(192, 233, 252, 0.46);
}

body {
  --bg-url: none;
  margin: 0;
  min-height: 100dvh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(140deg, #0f172a 0%, #1b3851 52%, #316f99 100%);
  overflow-x: hidden;
  position: relative;
}

html.bg-home body {
  --bg-url: url('/images/achtergrond1.png');
}

html.bg-query body {
  --bg-url: url('/images/achtergrond2.png');
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--bg-url, none);
  background-size: cover;
  background-position: 62% 70%;
  background-repeat: no-repeat;
  filter: blur(1px) saturate(1.05);
  transform: scale(1.02);
  opacity: 0.88;
  pointer-events: none;
}

html.profile-page body::before {
  background-position: 68% 64%;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(8, 20, 36, 0.28) 0%, rgba(12, 44, 68, 0.20) 48%, rgba(32, 95, 140, 0.12) 100%),
    radial-gradient(circle at 18% 20%, rgba(142, 220, 255, 0.06), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(95, 183, 232, 0.05), transparent 45%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.006) 0px,
      rgba(255, 255, 255, 0.006) 1px,
      transparent 1px,
      transparent 2px
    );
}

.parody-card {
  position: relative;
  z-index: 3;
  background: var(--panel);
  border: 1px solid rgba(196, 237, 255, 0.35);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  animation: reveal .5s ease-out;
}

.main-card {
  max-width: 820px;
}

main {
  position: relative;
  z-index: 3;
}

.profile-shell {
  text-align: left;
  max-width: 900px;
  position: relative;
}

.creator-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(166, 226, 255, 0.28);
  padding-bottom: 11px;
}

.creator-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #d9f5ff;
  text-decoration: none;
}

.tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-link {
  text-decoration: none;
  color: #d4f2ff;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(166, 226, 255, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(14, 47, 72, 0.34);
}

.tab-link.active {
  color: #06243a;
  background: linear-gradient(120deg, #96e5ff 0%, #54c8f4 70%);
  border-color: transparent;
}

.profile-top {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-avatar {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(139, 220, 255, 0.68);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  flex: 0 0 auto;
}

.creator-handle {
  font-size: 0.95rem;
  opacity: 0.86;
}

.creator-title {
  font-size: clamp(1.5rem, 3.1vw, 2.2rem);
  font-weight: 800;
  margin: 4px 0 6px;
  line-height: 1.1;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.stat-pill {
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  border: 1px solid rgba(188, 232, 252, 0.35);
  background: rgba(21, 64, 96, 0.52);
}

.actions-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.action-link {
  text-decoration: none;
  border-radius: 10px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease;
}

.action-link:hover {
  transform: translateY(-1px);
}

.action-link-accent {
  border: 0;
  color: #06243a;
  font-weight: 700;
  background: linear-gradient(130deg, #9de7ff 0%, #50c5f1 52%, #2ca8e0 100%);
  box-shadow: 0 10px 22px rgba(43, 160, 223, 0.35);
}

.action-link-ghost {
  border: 1px solid rgba(192, 233, 252, 0.46);
  color: #dff4ff;
  background: rgba(8, 37, 58, 0.38);
  font-weight: 700;
}

.username {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(139, 220, 255, 0.45);
  word-break: break-word;
}

.profile-photo {
  width: 100%;
  max-height: 52vh;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid rgba(139, 220, 255, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.media-card {
  margin-top: 16px;
  border: 1px solid rgba(157, 220, 250, 0.30);
  background: rgba(7, 26, 42, 0.44);
  border-radius: 16px;
  padding: 12px;
}

.media-caption {
  margin-top: 9px;
  font-size: 13px;
  opacity: 0.88;
}

.featured-copy {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.95;
  white-space: pre-line;
}

.comments-card {
  margin-top: 14px;
  border: 1px solid rgba(157, 220, 250, 0.30);
  background: rgba(7, 26, 42, 0.44);
  border-radius: 16px;
  padding: 12px;
}

.comments-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.94;
}

.comment-item {
  border: 1px solid rgba(167, 225, 252, 0.25);
  border-radius: 12px;
  background: rgba(10, 35, 54, 0.52);
  padding: 9px 10px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.comment-item:last-child {
  margin-bottom: 0;
}

.comment-user {
  font-weight: 700;
  color: #a6e9ff;
  margin-right: 6px;
}

.profile-fallback {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 700;
  color: #dff6ff;
  border: 3px solid rgba(139, 220, 255, 0.75);
  background: rgba(15, 58, 86, 0.75);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.generator-card {
  margin-top: 18px;
  border: 1px solid rgba(157, 220, 250, 0.30);
  background: rgba(7, 26, 42, 0.44);
  border-radius: 14px;
  padding: 14px;
  text-align: left;
}

.generator-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.92;
}

.generator-grid {
  display: grid;
  grid-template-columns: 140px 1fr 170px;
  gap: 10px;
  align-items: end;
}

.generator-field {
  min-width: 0;
}

.generator-mini-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  opacity: 0.7;
}

.generator-output-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 10px;
}

.generated-link {
  margin-top: 10px;
  font-size: 13px;
  word-break: break-all;
  background: rgba(11, 35, 54, 0.55);
  border: 1px solid rgba(157, 220, 250, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
  display: none;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 768px) {
  .d-md-block { display: none !important; }
  .p-md-4 { padding: 1rem; }
  .p-md-5 { padding: 1.5rem; }

  body::before {
    filter: blur(1px) saturate(1.03);
    transform: scale(1.01);
    opacity: 0.84;
    background-position: 74% 78%;
  }

  html.profile-page body::before {
    background-position: 79% 72%;
  }

  .profile-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .creator-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .generator-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .generator-output-row {
    grid-template-columns: 1fr;
  }

  .generator-action .btn {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .d-md-block { display: block !important; }
  .p-md-4 { padding: 1.5rem; }
  .p-md-5 { padding: 2rem; }
}
