/**
 * DiaperGuys — Groups, Events, Search page heroes & discovery UI
 */

/* ---- Page hero ---- */
body.theme-grid .dg-page-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 16px 32px;
  text-align: center;
  color: var(--grid-text);
  background: linear-gradient(165deg, #0c1018 0%, #050505 45%, #0a1210 100%);
  border-bottom: 1px solid var(--grid-border);
}

@media (min-width: 768px) {
  body.theme-grid .dg-page-hero {
    padding: 36px 16px 40px;
  }
}

body.theme-grid .dg-page-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

body.theme-grid .dg-page-hero__glow--1 {
  width: 280px;
  height: 280px;
  top: -80px;
  left: 10%;
  background: rgba(255, 255, 255, 0.12);
}

body.theme-grid .dg-page-hero__glow--2 {
  width: 220px;
  height: 220px;
  bottom: -60px;
  right: 8%;
  background: rgba(255, 255, 255, 0.08);
}

body.theme-grid .dg-page-hero--groups .dg-page-hero__glow--1 {
  background: rgba(255, 255, 255, 0.14);
}

body.theme-grid .dg-page-hero--events .dg-page-hero__glow--1 {
  background: rgba(255, 255, 255, 0.12);
}

body.theme-grid .dg-page-hero--search .dg-page-hero__glow--1 {
  background: rgba(255, 255, 255, 0.16);
}

body.theme-grid .dg-page-hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

body.theme-grid .dg-page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

body.theme-grid .dg-page-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

body.theme-grid .dg-page-hero__icon {
  opacity: 0.9;
  fill: #ffffff;
}

body.theme-grid .dg-page-hero--groups .dg-page-hero__icon {
  fill: #ffffff;
}

body.theme-grid .dg-page-hero--events .dg-page-hero__icon {
  fill: #ffffff;
}

body.theme-grid .dg-page-hero__title {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #fff;
}

body.theme-grid .dg-page-hero__subtitle {
  margin: 0 auto 20px;
  max-width: 520px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--grid-muted);
}

/* ---- Hero search bar ---- */
body.theme-grid .dg-page-hero__search {
  margin-top: 4px;
}

body.theme-grid .dg-page-hero__search-field {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 5px 5px 5px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.theme-grid .dg-page-hero__search-field:focus-within {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.12);
}

body.theme-grid .dg-page-hero__search-icon {
  display: flex;
  align-items: center;
  opacity: 0.55;
  flex-shrink: 0;
  margin-right: 10px;
}

body.theme-grid .dg-page-hero__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1rem;
  padding: 10px 0;
  outline: none;
  box-shadow: none;
}

body.theme-grid .dg-page-hero__search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body.theme-grid .dg-page-hero__search-btn {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #041012;
  background: linear-gradient(135deg, #ffffff 0%, #f4f4f5 100%);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.theme-grid .dg-page-hero__search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.35);
}

body.theme-grid .dg-page-hero__hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

body.theme-grid .dg-page-hero__hint {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  text-decoration: none;
  transition: background 0.15s ease;
}

body.theme-grid .dg-page-hero__hint:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---- Search results page ---- */
body.theme-grid.page-search .nav-search {
  gap: 8px;
  margin-bottom: 16px !important;
  flex-wrap: wrap;
}

body.theme-grid.page-search .nav-search .nav-link {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: var(--grid-muted) !important;
  font-size: 0.82rem;
  padding: 10px 16px;
  transition: all 0.15s ease;
}

body.theme-grid.page-search .nav-search .nav-link:hover {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

body.theme-grid.page-search .nav-search .nav-link.active {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

body.theme-grid.page-search .sg-offcanvas-mainbar > .card:first-child {
  display: none;
}

body.theme-grid .dg-discover-shell {
  margin-top: -8px;
}

/* ---- Groups / Events tabs bar ---- */
body.theme-grid.page-groups .content-tabs,
body.theme-grid.page-events .content-tabs {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--grid-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  margin-bottom: 16px;
}

body.theme-grid.page-groups .content-tabs ul li a,
body.theme-grid.page-events .content-tabs ul li a {
  color: var(--grid-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

body.theme-grid.page-groups .content-tabs ul li.active a,
body.theme-grid.page-events .content-tabs ul li.active a {
  color: #fff;
}

body.theme-grid.page-groups .content-tabs .btn-primary,
body.theme-grid.page-events .content-tabs .btn-primary {
  background: linear-gradient(135deg, #ffffff, #f4f4f5) !important;
  border: none !important;
  color: #041012 !important;
  font-weight: 700;
  border-radius: 999px !important;
}

/* ---- Cleaner empty state on discover pages ---- */
body.theme-grid.page-groups .no-data,
body.theme-grid.page-events .no-data,
body.theme-grid.page-search .no-data {
  font-size: 0.95rem;
  color: var(--grid-muted);
}

body.theme-grid.page-groups .text-center.text-muted svg,
body.theme-grid.page-events .text-center.text-muted svg,
body.theme-grid.page-search .text-center.text-muted svg {
  opacity: 0.35;
  width: 56px !important;
  height: 56px !important;
}

/* ---- Forums hero variant ---- */
body.theme-grid .dg-page-hero--forums .dg-page-hero__glow--1 {
  background: rgba(255, 255, 255, 0.14);
}

body.theme-grid .dg-page-hero--forums .dg-page-hero__glow--2 {
  background: rgba(255, 255, 255, 0.08);
}

/* ---- Forums page shell ---- */
body.theme-grid.page-forums .dg-forums-shell {
  padding-top: 8px;
  padding-bottom: 24px;
}

body.theme-grid.page-forums .page-header {
  display: none !important;
}

body.theme-grid.page-forums .content-tabs {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--grid-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  margin-bottom: 16px;
}

body.theme-grid.page-forums .content-tabs ul li a {
  color: var(--grid-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

body.theme-grid.page-forums .content-tabs ul li.active a {
  color: #fff;
}

body.theme-grid.page-forums .forum-category {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid var(--grid-border) !important;
  border-radius: 12px 12px 0 0 !important;
  color: var(--grid-text) !important;
  font-weight: 700;
  padding: 12px 16px !important;
  margin-top: 12px;
}

body.theme-grid.page-forums .forum-category a {
  color: #fff !important;
}

body.theme-grid.page-forums .forum-head {
  background: rgba(255, 255, 255, 0.03) !important;
  border-left: 1px solid var(--grid-border);
  border-right: 1px solid var(--grid-border);
}

body.theme-grid.page-forums .forum-head > .column {
  background: transparent !important;
  color: var(--grid-muted) !important;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-color: var(--grid-border) !important;
}

body.theme-grid.page-forums .forum-row {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--grid-border) !important;
  border-top: none !important;
  color: var(--grid-text) !important;
}

body.theme-grid.page-forums .forum-row > .column {
  background: transparent !important;
  border-color: var(--grid-border) !important;
  color: var(--grid-text) !important;
}

body.theme-grid.page-forums .forum-row a {
  color: #fff;
}

body.theme-grid.page-forums .forum-row a:hover {
  color: #ffffff;
}

body.theme-grid.page-forums .forum-row .sub-forums li {
  color: var(--grid-muted);
}

body.theme-grid.page-forums .js_forum-toggle-wrapper {
  margin-bottom: 8px;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

body.theme-grid.page-forums .forum-meta-head,
body.theme-grid.page-forums .forum-breadcrumb {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--grid-border) !important;
  color: var(--grid-text) !important;
  border-radius: 10px;
}

body.theme-grid.page-forums .forum-meta-conent {
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid var(--grid-border) !important;
  border-top: none !important;
  color: var(--grid-muted) !important;
}

body.theme-grid.page-forums .forum-meta-conent a {
  color: #fff;
}

body.theme-grid.page-forums .forum-title h1 {
  color: #fff;
  font-size: 1.35rem;
}

body.theme-grid.page-forums .forum-title p {
  color: var(--grid-muted);
}

body.theme-grid.page-forums .forum-thread,
body.theme-grid.page-forums .forum-result {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--grid-border) !important;
  border-radius: 12px !important;
  margin-bottom: 12px;
  color: var(--grid-text) !important;
}

body.theme-grid.page-forums .forum-thread .time,
body.theme-grid.page-forums .forum-result .head {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--grid-border) !important;
  color: var(--grid-muted) !important;
}

body.theme-grid.page-forums .forum-result .content {
  color: var(--grid-text) !important;
}

body.theme-grid.page-forums .card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--grid-border) !important;
  border-radius: 14px !important;
}

body.theme-grid.page-forums .card-header {
  background: transparent !important;
  border-color: var(--grid-border) !important;
  color: #fff !important;
}

body.theme-grid.page-forums .form-control,
body.theme-grid.page-forums .form-select {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--grid-border) !important;
  color: var(--grid-text) !important;
}

body.theme-grid.page-forums .btn-success {
  background: linear-gradient(135deg, #ffffff, #f4f4f5) !important;
  border: none !important;
  color: #041012 !important;
  font-weight: 700;
}

body.theme-grid.page-forums .no-data {
  color: var(--grid-muted);
}

/* ---- Info / static page hero variants ---- */
body.theme-grid .dg-page-hero--info .dg-page-hero__glow--1 {
  background: rgba(255, 255, 255, 0.14);
}

body.theme-grid .dg-page-hero--info .dg-page-hero__icon {
  fill: #ffffff;
}

body.theme-grid .dg-page-hero--legal .dg-page-hero__glow--1 {
  background: rgba(255, 255, 255, 0.14);
}

body.theme-grid .dg-page-hero--legal .dg-page-hero__glow--2 {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-grid .dg-page-hero--legal .dg-page-hero__icon {
  fill: #ffffff;
}

body.theme-grid .dg-page-hero--contact .dg-page-hero__glow--1 {
  background: rgba(52, 211, 153, 0.14);
}

body.theme-grid .dg-page-hero--contact .dg-page-hero__icon {
  fill: #6ee7b7;
}

body.theme-grid .dg-page-hero--directory .dg-page-hero__glow--1 {
  background: rgba(255, 255, 255, 0.12);
}

body.theme-grid .dg-page-hero--directory .dg-page-hero__glow--2 {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-grid .dg-page-hero--directory .dg-page-hero__icon {
  fill: #ffffff;
}

body.theme-grid .dg-page-hero--support .dg-page-hero__glow--1 {
  background: rgba(255, 255, 255, 0.14);
}

body.theme-grid .dg-page-hero--support .dg-page-hero__glow--2 {
  background: rgba(255, 255, 255, 0.08);
}

body.theme-grid .dg-page-hero--support .dg-page-hero__icon {
  fill: #c4b5fd;
}

/* ---- Info pages shell (static, contact, directory, support) ---- */
body.theme-grid.page-static .page-header,
body.theme-grid.page-contact .page-header,
body.theme-grid.page-directory .page-header,
body.theme-grid.page-support .page-header {
  display: none !important;
}

body.theme-grid.page-static .dg-info-shell,
body.theme-grid.page-contact .dg-info-shell,
body.theme-grid.page-directory .dg-info-shell,
body.theme-grid.page-support .dg-info-shell {
  padding-top: 8px;
  padding-bottom: 24px;
}

body.theme-grid.page-static .dg-info-card,
body.theme-grid.page-contact .dg-info-card,
body.theme-grid.page-directory .dg-info-card,
body.theme-grid.page-support .dg-info-card,
body.theme-grid.page-support .card {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--grid-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

body.theme-grid.page-static .dg-info-card .card-header,
body.theme-grid.page-contact .dg-info-card .card-header,
body.theme-grid.page-directory .dg-info-card .card-header,
body.theme-grid.page-support .card-header {
  background: transparent !important;
  border-color: var(--grid-border) !important;
  color: #fff !important;
}

body.theme-grid.page-static .dg-info-card .card-footer,
body.theme-grid.page-support .card-footer {
  background: transparent !important;
  border-color: var(--grid-border) !important;
}

body.theme-grid.page-static .form-label,
body.theme-grid.page-contact .form-label,
body.theme-grid.page-support .form-label {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
  font-size: 0.85rem;
}

body.theme-grid.page-static .form-control,
body.theme-grid.page-contact .form-control,
body.theme-grid.page-support .form-control,
body.theme-grid.page-support .form-select {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--grid-border) !important;
  color: var(--grid-text) !important;
  border-radius: 10px !important;
}

body.theme-grid.page-static .form-control:focus,
body.theme-grid.page-contact .form-control:focus,
body.theme-grid.page-support .form-control:focus {
  border-color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important;
}

body.theme-grid.page-static .btn-primary,
body.theme-grid.page-contact .btn-primary,
body.theme-grid.page-support .btn-primary {
  background: linear-gradient(135deg, #ffffff, #f4f4f5) !important;
  border: none !important;
  color: #041012 !important;
  font-weight: 700;
  border-radius: 999px !important;
}

body.theme-grid.page-static .btn-secondary,
body.theme-grid.page-support .btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid var(--grid-border) !important;
  color: #fff !important;
  border-radius: 999px !important;
}

/* Static page prose */
body.theme-grid.page-static .dg-static-content {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  body.theme-grid.page-static .dg-static-content {
    padding: 36px 40px !important;
  }
}

body.theme-grid.page-static .dg-static-content h1,
body.theme-grid.page-static .dg-static-content h2,
body.theme-grid.page-static .dg-static-content h3,
body.theme-grid.page-static .dg-static-content h4 {
  color: #fff;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

body.theme-grid.page-static .dg-static-content h1:first-child,
body.theme-grid.page-static .dg-static-content h2:first-child,
body.theme-grid.page-static .dg-static-content h3:first-child {
  margin-top: 0;
}

body.theme-grid.page-static .dg-static-content a {
  color: #ffffff;
  text-decoration: none;
}

body.theme-grid.page-static .dg-static-content a:hover {
  color: #99f6e4;
  text-decoration: underline;
}

body.theme-grid.page-static .dg-static-content p,
body.theme-grid.page-static .dg-static-content li {
  color: rgba(255, 255, 255, 0.78);
}

body.theme-grid.page-static .dg-static-content ul,
body.theme-grid.page-static .dg-static-content ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

body.theme-grid.page-static .dg-static-content blockquote {
  border-left: 3px solid rgba(255, 255, 255, 0.45);
  padding-left: 1rem;
  color: var(--grid-muted);
  margin: 1.25rem 0;
}

/* Directory grid cards */
body.theme-grid.page-directory .directory-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 24px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--grid-border);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

body.theme-grid.page-directory .directory-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

body.theme-grid.page-directory .directory-card .main-icon,
body.theme-grid.page-directory .directory-card svg {
  opacity: 0.85;
}

body.theme-grid.page-directory .directory-card .title {
  margin-top: 14px;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

body.theme-grid.page-directory .directory-card p {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--grid-muted);
}

body.theme-grid.page-directory .directory-card:hover .title {
  color: #ffffff;
}

/* Directory / support sub-nav */
body.theme-grid.page-directory .side-nav li a,
body.theme-grid.page-support .side-nav li a {
  color: var(--grid-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

body.theme-grid.page-directory .side-nav li.active a,
body.theme-grid.page-support .side-nav li.active a {
  color: #fff;
}

body.theme-grid.page-directory .content-tabs,
body.theme-grid.page-support .content-tabs {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--grid-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  margin-bottom: 16px;
}

body.theme-grid.page-directory .content-tabs ul li a,
body.theme-grid.page-support .content-tabs ul li a {
  color: var(--grid-muted);
  font-weight: 600;
  font-size: 0.85rem;
}

body.theme-grid.page-directory .content-tabs ul li.active a,
body.theme-grid.page-support .content-tabs ul li.active a {
  color: #fff;
}

body.theme-grid.page-support .content-tabs .btn-primary {
  background: linear-gradient(135deg, #ffffff, #f4f4f5) !important;
  border: none !important;
  color: #041012 !important;
  font-weight: 700;
  border-radius: 999px !important;
}

/* Support tables & threads */
body.theme-grid.page-support .table {
  color: var(--grid-text);
  --bs-table-bg: transparent;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04);
  --bs-table-border-color: var(--grid-border);
}

body.theme-grid.page-support .table thead th {
  color: var(--grid-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-color: var(--grid-border) !important;
}

body.theme-grid.page-support .table td {
  border-color: var(--grid-border) !important;
  vertical-align: middle;
}

body.theme-grid.page-support .table a {
  color: #fff;
}

body.theme-grid.page-support .table a:hover {
  color: #ffffff;
}

body.theme-grid.page-support .forum-thread {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--grid-border) !important;
  border-radius: 12px !important;
  margin-bottom: 12px;
  color: var(--grid-text) !important;
}

body.theme-grid.page-support .forum-thread .time {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--grid-border) !important;
  color: var(--grid-muted) !important;
}

body.theme-grid.page-support .forum-thread .text {
  color: var(--grid-text) !important;
}

body.theme-grid.page-support .posts-filter {
  color: #fff;
  font-weight: 700;
}

body.theme-grid.page-support .posts-filter span {
  font-size: 1.05rem;
}

body.theme-grid.page-support .no-data,
body.theme-grid.page-directory .no-data {
  color: var(--grid-muted);
}

