/* assets/css/wimeo.css */

/* ------------- GLOBAL TOKENS (Brand) ------------- */

:root {
  /* WICREATIONS web palette (afgeleid uit Brand Guidelines) */
  --wi-deep-blue: #364ce2;
  --wi-kobalt-blue: #0d13e1;
  --wi-sea-blue: #5c81e4;

  --wi-black: #000000;
  --wi-white: #ffffff;

  --wi-bg: #050814;
  --wi-bg-elevated: #0c1020;
  --wi-bg-soft: #151a2b;

  --wi-text-main: #f5f7ff;
  --wi-text-soft: #c0c5dd;
  --wi-text-muted: #8087a5;

  --wi-border: rgba(255, 255, 255, 0.08);

  --wi-radius-lg: 18px;
  --wi-radius-md: 12px;
  --wi-radius-sm: 8px;

  --wi-shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);

  --wi-gap-lg: 24px;
  --wi-gap-md: 16px;
  --wi-gap-sm: 8px;

  --wi-font-title: "DIN Condensed", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wi-font-body: "Neue Montreal", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ------------- GLOBAL RESET-ish ------------- */

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--wi-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--wi-text-main);
  background: radial-gradient(circle at top, #161a33 0, #050814 60%);
}

/* ------------- LAYOUTS / UTILS ------------- */

.wi-page-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.wi-text-right { text-align: right; }
.wi-text-center { text-align: center; }
.wi-mt-md { margin-top: 16px; }
.wi-mt-lg { margin-top: 24px; }

/* ------------- AUTH CARD / LOGIN ------------- */

.wi-auth-card {
  background: linear-gradient(
    145deg,
    rgba(12, 16, 32, 0.98),
    rgba(14, 21, 55, 0.98)
  );
  border-radius: 24px;
  padding: 28px 32px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--wi-shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* HEADER / LOGO */

.wi-auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.wi-auth-title-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wi-logo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(54, 76, 226, 0.12);
  color: var(--wi-sea-blue);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wi-auth-title {
  font-family: var(--wi-font-title);
  font-size: 36px;
  letter-spacing: 0.08em;
}

.wi-auth-subtitle {
  font-size: 13px;
  color: var(--wi-text-soft);
}

.wi-auth-badge {
  text-align: right;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--wi-text-muted);
}

/* ------------- FORM ------------- */

.wi-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wi-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wi-label {
  font-size: 13px;
  color: var(--wi-text-soft);
}

.wi-input {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--wi-text-main);
  padding: 10px 12px;
  outline: none;
  font-size: 14px;
}

.wi-input:focus {
  border-color: var(--wi-sea-blue);
  box-shadow: 0 0 0 1px rgba(92, 129, 228, 0.5);
}

.wi-helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--wi-text-muted);
}

/* ------------- BUTTONS ------------- */

.wi-btn {
  border-radius: 999px;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.wi-btn-primary {
  background: linear-gradient(135deg, var(--wi-sea-blue), var(--wi-deep-blue));
  color: var(--wi-white);
  box-shadow: 0 12px 26px rgba(8, 19, 120, 0.75);
}

.wi-btn-primary:hover {
  filter: brightness(1.06);
}

.wi-btn-ghost {
  background: transparent;
  color: var(--wi-text-soft);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.wi-btn-ghost:hover {
  border-color: var(--wi-sea-blue);
  color: var(--wi-sea-blue);
}

.wi-btn-icon {
  background: none;
  border: none;
  color: var(--wi-text-main);
  font-size: 22px;
  cursor: pointer;
}

/* ------------- TABS (Login / Access code) ------------- */

.wi-tab-bar {
  display: inline-flex;
  padding: 3px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  margin: 8px 0 16px;
}

.wi-tab {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--wi-text-muted);
}

.wi-tab-active {
  background: rgba(54, 76, 226, 0.8);
  color: var(--wi-white);
}

/* ------------- ALERT / STATUS ------------- */

.wi-alert-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wi-alert {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
}

.wi-alert-error {
  background: rgba(255, 92, 122, 0.12);
  color: #ff8ca1;
  border: 1px solid rgba(255, 92, 122, 0.4);
}

.wi-alert-info {
  background: rgba(92, 129, 228, 0.12);
  color: #b4c2ff;
  border: 1px solid rgba(92, 129, 228, 0.4);
}

/* ======================================================================= */
/* DASHBOARD / GENERIC HEADER + MAIN */
/* ======================================================================= */

.wi-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 32px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wi-dash-left {
  display: flex;
  flex-direction: column;
}

.wi-dash-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wi-dash-title {
  font-family: var(--wi-font-title);
  font-size: 48px;
  letter-spacing: 0.05em;
  margin: 8px 0 0 0;
}

.wi-dash-subtitle {
  color: var(--wi-text-soft);
  font-size: 15px;
  margin-top: 4px;
}

.wi-dash-main {
  padding: 32px;
}

/* ======================================================================= */
/* PROJECT GRID (Dashboard) */
/* ======================================================================= */

.wi-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.wi-project-card {
  background: linear-gradient(145deg, #0d1428, #111830);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 22px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

.wi-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* oude + nieuwe classnaam beide stylen */
.wi-project-name,
.wi-project-title {
  font-family: var(--wi-font-title);
  font-size: 28px;
  margin: 0;
  letter-spacing: 0.03em;
}

.wi-project-description {
  font-size: 14px;
  color: var(--wi-text-soft);
  margin-top: 6px;
}

.wi-project-meta {
  color: var(--wi-text-muted);
  font-size: 13px;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wi-project-bottom {
  margin-top: 16px;
  color: var(--wi-sea-blue);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ======================================================================= */
/* GENERIC SECTION + CARDS (Project / Admin / Upload) */
/* ======================================================================= */

.wi-section-title {
  font-family: var(--wi-font-title);
  font-size: 34px;
  margin: 10px 0 18px;
  letter-spacing: 0.03em;
}

.wi-project-info-card,
.wi-admin-card {
  background: linear-gradient(145deg, #0d1428, #111830);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4);
}

/* ======================================================================= */
/* PROJECT PAGE: VIDEOS */
/* ======================================================================= */

.wi-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.wi-video-card {
  background: #10182e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.wi-video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.wi-video-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.wi-video-content {
  padding: 14px 16px;
}

.wi-video-title {
  font-size: 17px;
  font-weight: 600;
  margin: 0;
}

.wi-video-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--wi-text-muted);
}

/* ======================================================================= */
/* REVIEW PAGE */
/* ======================================================================= */

.wi-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 24px 32px;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.wi-review-left {
  display: flex;
  flex-direction: column;
}

.wi-review-title {
  font-family: var(--wi-font-title);
  margin: 6px 0 0;
  font-size: 36px;
}

.wi-version-pill {
  background: rgba(92, 129, 228, 0.2);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* layout */

.wi-review-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 22px;
  padding: 22px 32px;
}

.wi-review-video-area {
  display: flex;
  flex-direction: column;
}

/* video shell – nieuwe naming, oude .wi-player blijft als alias */

.wi-video-shell,
.wi-player {
  width: 100%;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

.wi-video-player,
.wi-video {
  width: 100%;
  display: block;
  background: #000;
}

/* controls */

.wi-player-controls,
.wi-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.35);
}

.wi-time-label,
.wi-time {
  font-size: 13px;
  color: var(--wi-text-soft);
}

/* SCRUBBAR – nieuwe naming */

.wi-scrubbar {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  overflow: hidden;
}

.wi-scrub-buffer,
.wi-buffer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  background: rgba(255, 255, 255, 0.35);
}

.wi-scrub-progress,
.wi-progress {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0%;
  background: var(--wi-sea-blue);
}

/* MARKER LAYER */

.wi-marker-layer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.wi-marker {
  width: 4px;
  height: 100%;
  background: #ff547a;
  position: absolute;
  border-radius: 2px;
}

.wi-marker-done {
  background: #4ae088;
}

/* COMMENTS PANEL */

.wi-review-comments-panel,
.wi-review-right {
  background: #0d1428;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 160px);
}

.wi-comments-header {
  margin-bottom: 6px;
}

.wi-comment-filters {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.wi-filter-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  color: var(--wi-text-muted);
  border: none;
  cursor: pointer;
}

.wi-filter-active {
  background: var(--wi-sea-blue);
  color: #fff !important;
}

/* lijst + items (beide classnamen ondersteunen) */

.wi-comment-list,
.wi-comments-list {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 6px;
}

.wi-comment {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: 3px solid var(--wi-sea-blue);
  cursor: pointer;
}

.wi-comment-done {
  border-left-color: #4ae088;
  opacity: 0.55;
}

.wi-comment-meta {
  font-size: 12px;
  color: var(--wi-text-muted);
}

.wi-comment-text {
  font-size: 14px;
  margin-top: 3px;
}

.wi-comment-actions {
  margin-top: 6px;
  display: flex;
  gap: 6px;
}

.wi-comment-action {
  background: none;
  border: none;
  color: var(--wi-text-muted);
  font-size: 12px;
  cursor: pointer;
}

.wi-comment-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

/* ======================================================================= */
/* UPLOAD PAGE */
/* ======================================================================= */

.wi-upload-status {
  margin-top: 12px;
  display: none;
}

.wi-upload-bar-outer {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 6px;
}

.wi-upload-bar-inner {
  width: 0%;
  height: 100%;
  background: var(--wi-sea-blue);
  transition: width 0.2s ease;
}

.wi-upload-status-text {
  font-size: 12px;
  color: var(--wi-text-soft);
}

/* ======================================================================= */
/* ADMIN PAGE */
/* ======================================================================= */

.wi-admin-table,
.wi-admin-list {
  background: #0d1428;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.wi-admin-user,
.wi-admin-project {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wi-admin-user:last-child,
.wi-admin-project:last-child {
  border-bottom: none;
}

.wi-admin-title {
  font-size: 17px;
  font-weight: 600;
}

.wi-admin-sub {
  font-size: 13px;
  color: var(--wi-text-muted);
}

.wi-admin-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ======================================================================= */
/* PROJECT – TECH INFO & PATCH NOTES */
/* ======================================================================= */

.wi-project-tech-card {
  margin-top: 24px;
}

.wi-tech-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.wi-tech-subtitle {
  font-size: 13px;
  color: var(--wi-text-muted);
}

.wi-tech-list {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wi-tech-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wi-tech-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.wi-tech-title {
  font-size: 15px;
  font-weight: 600;
}

.wi-tech-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(92, 129, 228, 0.18);
  color: var(--wi-text-main);
}

.wi-tech-badge--patch {
  background: rgba(74, 224, 136, 0.18);
}

.wi-tech-meta {
  font-size: 12px;
  color: var(--wi-text-muted);
}

.wi-tech-description {
  font-size: 13px;
  color: var(--wi-text-soft);
}

.wi-tech-actions {
  margin-top: 4px;
  font-size: 12px;
}

.wi-tech-link {
  color: var(--wi-sea-blue);
  text-decoration: none;
}

.wi-tech-link:hover {
  text-decoration: underline;
}

/* Upload-form iets compacter binnen tech-card */
.wi-tech-form {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 12px;
}

/* ======================================================================= */
/* PROJECT – ACTIVITY LOG */
/* ======================================================================= */

.wi-activity-card {
  margin-top: 24px;
}

.wi-activity-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wi-activity-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px 12px;
  border-radius: 10px;
  border-left: 3px solid var(--wi-sea-blue);
}

.wi-activity-meta {
  font-size: 12px;
  color: var(--wi-text-muted);
}

.wi-activity-desc {
  font-size: 14px;
  margin-top: 4px;
  color: var(--wi-text-soft);
}

/* ======================================================================= */
/* NJ–LIGHTING SIGNATURE + FOOTER */
/* ======================================================================= */

#nj-floating-badge {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 60px;
  height: 60px;
  background: transparent;
  cursor: pointer;
  z-index: 999;
  opacity: 0.85;
  transition: 0.2s ease;
}

#nj-floating-badge:hover {
  opacity: 1;
  transform: scale(1.06);
}

.wi-footer {
  margin-top: 40px;
  padding: 14px 0;
  text-align: center;
  font-size: 12px;
  color: var(--wi-text-muted);
  opacity: 0.8;
}

.wi-footer img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 50%;
}

/* Login footer (variant B) */
.wi-login-credit {
  margin-top: 20px;
  font-size: 12px;
  opacity: 0.75;
  text-align: center;
  color: var(--wi-text-muted);
}

.wi-login-credit img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 50%;
}

/* About Modal */
#nj-about-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#nj-about-modal {
  background: #1c1c1c;
  padding: 28px 34px;
  border-radius: 16px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

#nj-about-modal img {
  width: 140px;
  margin-bottom: 14px;
}

#nj-about-modal h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

#nj-about-modal p {
  color: var(--wi-text-soft);
  font-size: 14px;
  margin-bottom: 14px;
}

#nj-close-about {
  margin-top: 6px;
  padding: 8px 18px;
}

/* ======================================================================= */
/* RESPONSIVE BREAKPOINTS */
/* ======================================================================= */

/* Tablets / small laptops */
@media (max-width: 900px) {
  .wi-dash-header,
  .wi-review-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 18px;
  }

  .wi-dash-main,
  .wi-review-layout {
    padding: 20px 18px;
  }

  .wi-dash-title {
    font-size: 36px;
  }

  .wi-section-title {
    font-size: 28px;
  }

  .wi-review-layout {
    grid-template-columns: 1fr;
  }

  .wi-review-comments-panel,
  .wi-review-right {
    max-height: none;
  }
}

/* Mobiel */
@media (max-width: 600px) {
  .wi-page-center {
    padding: 20px 10px;
  }

  .wi-auth-card {
    padding: 20px 18px;
  }

  .wi-dash-header,
  .wi-review-header {
    padding: 16px 12px;
  }

  .wi-dash-main,
  .wi-review-layout {
    padding: 16px 12px;
  }

  .wi-dash-title {
    font-size: 30px;
  }

  .wi-section-title {
    font-size: 24px;
  }

  .wi-project-grid,
  .wi-video-grid {
    grid-template-columns: 1fr;
  }

  .wi-review-layout {
    gap: 16px;
  }

  .wi-dash-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Extra breed scherm: iets meer max-width zodat login niet helemaal links kleeft */
@media (min-width: 1600px) {
  .wi-page-center {
    justify-content: center;
  }

  .wi-auth-card {
    max-width: 520px;
  }
}

.wi-marker-temp {
  background: #ffd447 !important; /* Gele marker */
  opacity: 1;
  height: 100%;
}
/* THREADING / REPLIES ------------------------------------- */

.wi-guest-pill {
  display: none;              /* standaard verborgen, JS zet 'm op flex */
  background: #ff9800;
  margin-left: 8px;
}

.wi-comment-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.wi-btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

/* Replies in een 'thread' onder een hoofdcomment */
.wi-reply-block {
  margin-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  padding-left: 10px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Optioneel: iets kleinere comments in replies */
.wi-reply-block .wi-comment {
  font-size: 13px;
}

/* Link-styling voor NJ-link in modal */
.wi-link-accent {
  color: var(--wi-sea-blue);
  text-decoration: none;
}

.wi-link-accent:hover {
  text-decoration: underline;
}

.wi-inline-role {
  display: inline-block;
  width: auto;
  margin: 0 8px;
}

.wi-btn-xs {
  padding: 4px 8px;
  font-size: 12px;
}
