/*
 * MojeBJJ navy background theme.
 * Celowo tylko warstwa wizualna: tło, powierzchnie pomocnicze, kontrast kart.
 */

:root {
  --mojebjj-navy-bg-top: #071324;
  --mojebjj-navy-bg-mid: #0c1d36;
  --mojebjj-navy-bg-bottom: #132746;
  --mojebjj-navy-glow: rgba(59, 130, 246, 0.14);
  --mojebjj-surface-card: #f8fbff;
  --mojebjj-surface-card-strong: #ffffff;
  --mojebjj-surface-line: #d7e0eb;
  --mojebjj-text-main: #0f172a;
  --mojebjj-text-soft: #5f7086;
}

body.mojebjj-dashboard-page {
  background-color: var(--mojebjj-navy-bg-mid) !important;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 24%),
    radial-gradient(circle at 20% 8%, var(--mojebjj-navy-glow) 0%, rgba(59,130,246,0) 28%),
    radial-gradient(circle at 80% 18%, rgba(14,165,233,0.10) 0%, rgba(14,165,233,0) 22%),
    linear-gradient(180deg, var(--mojebjj-navy-bg-top) 0%, var(--mojebjj-navy-bg-mid) 48%, var(--mojebjj-navy-bg-bottom) 100%) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  color: var(--mojebjj-text-main);
}

body.mojebjj-dashboard-page .site,
body.mojebjj-dashboard-page .site-main,
body.mojebjj-dashboard-page .content-area,
body.mojebjj-dashboard-page .entry-content,
body.mojebjj-dashboard-page .entry,
body.mojebjj-dashboard-page .post,
body.mojebjj-dashboard-page article {
  background: transparent !important;
}

body.mojebjj-dashboard-page .mojebjj-card,
body.mojebjj-dashboard-page .mojebjj-panel,
body.mojebjj-dashboard-page .mojebjj-login-card,
body.mojebjj-dashboard-page .mojebjj-register-card,
body.mojebjj-dashboard-page .mojebjj-form-wrap,
body.mojebjj-dashboard-page .mojebjj-modal__content,
body.mojebjj-dashboard-page .mojebjj-children-switcher,
body.mojebjj-dashboard-page .mojebjj-dashboard-panel,
body.mojebjj-dashboard-page .mojebjj-gallery-card,
body.mojebjj-dashboard-page .mojebjj-rank-card,
body.mojebjj-dashboard-page .mojebjj-status-card,
body.mojebjj-dashboard-page .mojebjj-profile-card {
  background: linear-gradient(180deg, var(--mojebjj-surface-card-strong) 0%, var(--mojebjj-surface-card) 100%) !important;
  border-color: var(--mojebjj-surface-line) !important;
  box-shadow: 0 12px 28px rgba(2, 8, 23, 0.18) !important;
}

body.mojebjj-dashboard-page .mojebjj-member-profile {
  background-image: none !important;
}

body.mojebjj-dashboard-page .mojebjj-muted,
body.mojebjj-dashboard-page .mojebjj-card p,
body.mojebjj-dashboard-page .mojebjj-card small,
body.mojebjj-dashboard-page .mojebjj-card .description,
body.mojebjj-dashboard-page .mojebjj-card .mojebjj-helper-text {
  color: var(--mojebjj-text-soft);
}

body.mojebjj-dashboard-page .mojebjj-card h1,
body.mojebjj-dashboard-page .mojebjj-card h2,
body.mojebjj-dashboard-page .mojebjj-card h3,
body.mojebjj-dashboard-page .mojebjj-card h4,
body.mojebjj-dashboard-page .mojebjj-card strong,
body.mojebjj-dashboard-page .mojebjj-card label {
  color: var(--mojebjj-text-main);
}

body.mojebjj-dashboard-page .mojebjj-form input[type="text"],
body.mojebjj-dashboard-page .mojebjj-form input[type="email"],
body.mojebjj-dashboard-page .mojebjj-form input[type="password"],
body.mojebjj-dashboard-page .mojebjj-form textarea,
body.mojebjj-dashboard-page .mojebjj-form select {
  background: #ffffff !important;
  border-color: #c9d5e4 !important;
  color: var(--mojebjj-text-main) !important;
}

body.mojebjj-dashboard-page .mojebjj-button,
body.mojebjj-dashboard-page .mojebjj-button-secondary,
body.mojebjj-dashboard-page .mojebjj-button-danger {
  box-shadow: 0 10px 18px rgba(2, 8, 23, 0.18);
}

body.mojebjj-dashboard-page .mojebjj-member-profile__hero,
body.mojebjj-dashboard-page .mojebjj-club-profile__hero,
body.mojebjj-dashboard-page .mojebjj-profile-hero {
  box-shadow: 0 16px 34px rgba(2, 8, 23, 0.22);
}

body.mojebjj-dashboard-page .mojebjj-progress-circle-panel,
body.mojebjj-dashboard-page .mojebjj-badges-panel,
body.mojebjj-dashboard-page .mojebjj-badges-unlock-panel {
  box-shadow: 0 16px 34px rgba(2, 8, 23, 0.24) !important;
}

@media (max-width: 782px) {
  body.mojebjj-dashboard-page {
    background-image:
      radial-gradient(circle at 50% 0%, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0) 18%),
      radial-gradient(circle at 18% 6%, rgba(59,130,246,0.14) 0%, rgba(59,130,246,0) 22%),
      linear-gradient(180deg, var(--mojebjj-navy-bg-top) 0%, var(--mojebjj-navy-bg-mid) 44%, var(--mojebjj-navy-bg-bottom) 100%) !important;
  }

  body.mojebjj-dashboard-page .mojebjj-card,
  body.mojebjj-dashboard-page .mojebjj-panel,
  body.mojebjj-dashboard-page .mojebjj-login-card,
  body.mojebjj-dashboard-page .mojebjj-register-card,
  body.mojebjj-dashboard-page .mojebjj-form-wrap,
  body.mojebjj-dashboard-page .mojebjj-modal__content {
    box-shadow: 0 10px 22px rgba(2, 8, 23, 0.20) !important;
  }
}


body.mojebjj-dashboard-page .mojebjj-member-profile {
  background: linear-gradient(180deg, var(--mojebjj-surface-card-strong) 0%, var(--mojebjj-surface-card) 100%) !important;
  border: 1px solid var(--mojebjj-surface-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 14px 32px rgba(2, 8, 23, 0.20) !important;
}

body.mojebjj-dashboard-page .mojebjj-member-head,
body.mojebjj-dashboard-page .mojebjj-member-title,
body.mojebjj-dashboard-page .mojebjj-member-meta,
body.mojebjj-dashboard-page .mojebjj-member-actions,
body.mojebjj-dashboard-page .mojebjj-member-profile > *:not(.mojebjj-member-cover) {
  position: relative;
  z-index: 1;
}




body.mojebjj-dashboard-page .mojebjj-member-profile {
  position: relative;
  isolation: isolate;
}

body.mojebjj-dashboard-page .mojebjj-club-pattern-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background-repeat: repeat;
  background-size: 92px 92px;
  background-position: center top;
  opacity: .072;
  filter: grayscale(1) brightness(1.52) contrast(.58);
  mix-blend-mode: multiply;
  transform: scale(1.03) rotate(-4deg);
}

body.mojebjj-dashboard-page .mojebjj-club-pattern-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.08) 100%);
}

body.mojebjj-dashboard-page .mojebjj-member-profile.has-club-pattern {
  overflow: hidden;
}

@media (max-width: 782px) {
  body.mojebjj-dashboard-page .mojebjj-club-pattern-layer {
    background-size: 78px 78px;
    opacity: .064;
  }
}


body.mojebjj-dashboard-page .mojebjj-club-pattern-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

body.mojebjj-dashboard-page .mojebjj-club-pattern-track {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(60px, 1fr));
  align-content: start;
  justify-items: center;
  gap: 18px 14px;
  padding: 22px 14px 18px;
  transform: rotate(-6deg) scale(1.06);
}

body.mojebjj-dashboard-page .mojebjj-club-pattern-tile {
  width: 62px;
  height: 62px;
  object-fit: contain;
  opacity: .072;
  filter: grayscale(1) brightness(1.55) contrast(.55);
}

body.mojebjj-dashboard-page .mojebjj-club-pattern-tile.is-alt {
  opacity: .05;
  transform: scale(.92);
}

@media (max-width: 782px) {
  body.mojebjj-dashboard-page .mojebjj-club-pattern-track {
    grid-template-columns: repeat(5, minmax(48px, 1fr));
    gap: 16px 10px;
    padding: 18px 10px 14px;
  }

  body.mojebjj-dashboard-page .mojebjj-club-pattern-tile {
    width: 52px;
    height: 52px;
    opacity: .078;
  }
}


/* v0.1.5: spójne chłodne panele bez deseniu */
:root {
  --mojebjj-surface-card: #f3f7fc;
  --mojebjj-surface-card-strong: #f8fafd;
  --mojebjj-surface-line: #d9e4f0;
  --mojebjj-text-main: #0f172a;
  --mojebjj-text-soft: #5b6b82;
}

body.mojebjj-dashboard-page .mojebjj-card,
body.mojebjj-dashboard-page .mojebjj-panel,
body.mojebjj-dashboard-page .mojebjj-login-card,
body.mojebjj-dashboard-page .mojebjj-register-card,
body.mojebjj-dashboard-page .mojebjj-form-wrap,
body.mojebjj-dashboard-page .mojebjj-modal__content,
body.mojebjj-dashboard-page .mojebjj-children-switcher,
body.mojebjj-dashboard-page .mojebjj-dashboard-panel,
body.mojebjj-dashboard-page .mojebjj-gallery-card,
body.mojebjj-dashboard-page .mojebjj-rank-card,
body.mojebjj-dashboard-page .mojebjj-status-card,
body.mojebjj-dashboard-page .mojebjj-profile-card,
body.mojebjj-dashboard-page .mojebjj-member-profile {
  background: linear-gradient(180deg, #f8fafd 0%, #f3f7fc 100%) !important;
  border-color: #d9e4f0 !important;
}

body.mojebjj-dashboard-page .mojebjj-club-pattern-layer,
body.mojebjj-dashboard-page .mojebjj-member-profile::before {
  display: none !important;
}


/* v0.1.6: morski, ciemniejszy panel */
:root {
  --mojebjj-surface-card: #dce9e5;
  --mojebjj-surface-card-strong: #e6f0ed;
  --mojebjj-surface-line: #b8ccc5;
  --mojebjj-text-main: #102033;
  --mojebjj-text-soft: #526774;
}

body.mojebjj-dashboard-page .mojebjj-card,
body.mojebjj-dashboard-page .mojebjj-panel,
body.mojebjj-dashboard-page .mojebjj-login-card,
body.mojebjj-dashboard-page .mojebjj-register-card,
body.mojebjj-dashboard-page .mojebjj-form-wrap,
body.mojebjj-dashboard-page .mojebjj-modal__content,
body.mojebjj-dashboard-page .mojebjj-children-switcher,
body.mojebjj-dashboard-page .mojebjj-dashboard-panel,
body.mojebjj-dashboard-page .mojebjj-gallery-card,
body.mojebjj-dashboard-page .mojebjj-rank-card,
body.mojebjj-dashboard-page .mojebjj-status-card,
body.mojebjj-dashboard-page .mojebjj-profile-card,
body.mojebjj-dashboard-page .mojebjj-member-profile {
  background: linear-gradient(180deg, #e6f0ed 0%, #dce9e5 100%) !important;
  border-color: #b8ccc5 !important;
}

body.mojebjj-dashboard-page .mojebjj-muted,
body.mojebjj-dashboard-page .mojebjj-card p,
body.mojebjj-dashboard-page .mojebjj-card small,
body.mojebjj-dashboard-page .mojebjj-card .description,
body.mojebjj-dashboard-page .mojebjj-card .mojebjj-helper-text {
  color: #526774 !important;
}

body.mojebjj-dashboard-page .mojebjj-card h1,
body.mojebjj-dashboard-page .mojebjj-card h2,
body.mojebjj-dashboard-page .mojebjj-card h3,
body.mojebjj-dashboard-page .mojebjj-card h4,
body.mojebjj-dashboard-page .mojebjj-card strong,
body.mojebjj-dashboard-page .mojebjj-card label {
  color: #102033 !important;
}


/* v0.1.7: morski jeszcze ciemniejszy */
:root {
  --mojebjj-surface-card: #c6dbd5;
  --mojebjj-surface-card-strong: #d3e4df;
  --mojebjj-surface-line: #9fb9b2;
  --mojebjj-text-main: #0f1d2e;
  --mojebjj-text-soft: #4b6270;
}

body.mojebjj-dashboard-page .mojebjj-card,
body.mojebjj-dashboard-page .mojebjj-panel,
body.mojebjj-dashboard-page .mojebjj-login-card,
body.mojebjj-dashboard-page .mojebjj-register-card,
body.mojebjj-dashboard-page .mojebjj-form-wrap,
body.mojebjj-dashboard-page .mojebjj-modal__content,
body.mojebjj-dashboard-page .mojebjj-children-switcher,
body.mojebjj-dashboard-page .mojebjj-dashboard-panel,
body.mojebjj-dashboard-page .mojebjj-gallery-card,
body.mojebjj-dashboard-page .mojebjj-rank-card,
body.mojebjj-dashboard-page .mojebjj-status-card,
body.mojebjj-dashboard-page .mojebjj-profile-card,
body.mojebjj-dashboard-page .mojebjj-member-profile {
  background: linear-gradient(180deg, #d3e4df 0%, #c6dbd5 100%) !important;
  border-color: #9fb9b2 !important;
}

body.mojebjj-dashboard-page .mojebjj-muted,
body.mojebjj-dashboard-page .mojebjj-card p,
body.mojebjj-dashboard-page .mojebjj-card small,
body.mojebjj-dashboard-page .mojebjj-card .description,
body.mojebjj-dashboard-page .mojebjj-card .mojebjj-helper-text {
  color: #4b6270 !important;
}

body.mojebjj-dashboard-page .mojebjj-card h1,
body.mojebjj-dashboard-page .mojebjj-card h2,
body.mojebjj-dashboard-page .mojebjj-card h3,
body.mojebjj-dashboard-page .mojebjj-card h4,
body.mojebjj-dashboard-page .mojebjj-card strong,
body.mojebjj-dashboard-page .mojebjj-card label {
  color: #0f1d2e !important;
}


/* v0.1.8: morska poświata pod logo aplikacji */
body.mojebjj-dashboard-page .mojebjj-app-logo-wrap {
  position: relative;
}

body.mojebjj-dashboard-page .mojebjj-app-logo-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 168px;
  height: 76px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(171, 240, 229, 0.60) 0%, rgba(122, 227, 210, 0.36) 42%, rgba(122, 227, 210, 0.10) 68%, rgba(122, 227, 210, 0) 100%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

body.mojebjj-dashboard-page .mojebjj-app-logo,
body.mojebjj-dashboard-page .mojebjj-app-logo-link {
  position: relative;
  z-index: 1;
}

body.mojebjj-dashboard-page .mojebjj-app-logo {
  filter: drop-shadow(0 0 10px rgba(171, 240, 229, 0.40)) drop-shadow(0 0 22px rgba(122, 227, 210, 0.26));
}

@media (max-width: 782px) {
  body.mojebjj-dashboard-page .mojebjj-app-logo-wrap::before {
    width: 148px;
    height: 68px;
    filter: blur(9px);
  }
}


/* v0.1.11: tylko warstwa NEWS nad logo */
body.mojebjj-dashboard-page .mojebjj-app-logo-link {
  position: relative !important;
  overflow: visible !important;
}

body.mojebjj-dashboard-page .mojebjj-app-logo {
  position: relative !important;
  z-index: 1 !important;
}

body.mojebjj-dashboard-page .mojebjj-app-logo-badge {
  position: absolute !important;
  z-index: 5 !important;
}
