/* WOEM Site Elements (Header + Footer) */

body.woemse-active { overflow-x: hidden; }

/* Headerbar */
.woemse-headerbar{
  position: relative;
  z-index: 999;
  width: 100%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: radial-gradient(1200px 200px at 20% 0%, rgba(123,93,255,.20), transparent 60%),
              linear-gradient(90deg, rgba(10,12,24,.92), rgba(8,12,22,.90));
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.woemse-inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: var(--woemse-logo-gap, 18px);
}
.woemse-logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(var(--woemse-logo-size, 56px) + 16px);
  height: calc(var(--woemse-logo-size, 56px) + 16px);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.25);
}
.woemse-logo img{
  width: var(--woemse-logo-size, 56px);
  height: var(--woemse-logo-size, 56px);
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.woemse-nav{ flex: 1; }
.woemse-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--woemse-item-gap, 22px);
  flex-wrap: nowrap;
  overflow: hidden;
}
.woemse-menu > li{ margin: 0; padding: 0; position: relative; }
.woemse-menu a{
  color: rgba(255,255,255,.90);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 10px 6px;
  border-radius: 10px;
}
.woemse-menu a:hover{
  background: rgba(255,255,255,.06);
  color: #fff;
}
.woemse-donate{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, rgba(154,107,255,1), rgba(126,76,255,1));
  box-shadow: 0 12px 30px rgba(126,76,255,.35);
  white-space: nowrap;
}

/* basic dropdown */
.woemse-menu li ul{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 10px;
  margin: 8px 0 0;
  list-style: none;
  background: rgba(10,12,24,.96);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.45);
}
.woemse-menu li:hover > ul{ display:block; }
.woemse-menu li ul a{ display:block; padding:10px 12px; }

/* Footer */
.woemse-footer{
  background: radial-gradient(1200px 500px at 20% 0%, rgba(123,93,255,.16), transparent 55%),
              linear-gradient(90deg, rgba(10,12,24,.96), rgba(8,12,22,.96));
  color: rgba(255,255,255,.82);
  border-top: 1px solid rgba(255,255,255,.06);
}
.woemse-footer-inner{
  max-width: 1240px;
  margin: 0 auto;
  padding: 54px 18px 26px;
}
.woemse-foot-cols{
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 54px;
  align-items: start;
}
.woemse-foot-col h3{
  color: #fff;
  font-size: 28px;
  margin: 0 0 10px;
}
.woemse-foot-col p{
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,.72);
}

/* Footer menu */
.woemse-foot-menu{
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.woemse-foot-menu-inline .woemse-foot-link{
  color: rgba(255,255,255,.70);
  text-decoration: none;
  padding: 6px 2px;
}
.woemse-foot-menu-inline .woemse-foot-link:hover{ color:#fff; }
.woemse-foot-menu-pills .woemse-foot-link{
  text-decoration: none;
  color: rgba(206,186,255,1);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 700;
}
.woemse-foot-menu-pills .woemse-foot-link:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
}

/* bottom */
.woemse-foot-bottom{
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
.woemse-copy{
  color: rgba(255,255,255,.55);
  font-size: 16px;
}

/* responsive */
@media (max-width: 980px){
  .woemse-menu{ gap: 14px; flex-wrap: wrap; }
  .woemse-foot-cols{ grid-template-columns: 1fr; gap: 26px; }
  .woemse-foot-col h3{ font-size: 24px; }
}

/* Hide OLD THEME footer (ONLY when enabled via option — applied via body class hook below in footer output) */
body.woemse-hide-theme-footer footer,
body.woemse-hide-theme-footer .xs-footer-section,
body.woemse-hide-theme-footer .xs-footer,
body.woemse-hide-theme-footer .footer-section,
body.woemse-hide-theme-footer .footer-widget,
body.woemse-hide-theme-footer .footer-main,
body.woemse-hide-theme-footer .xs-footer-bottom,
body.woemse-hide-theme-footer .footer-bottom,
body.woemse-hide-theme-footer .copyright,
body.woemse-hide-theme-footer .copyright-area{
  display:none !important;
  visibility:hidden !important;
}

/* ===== WOEM Footer Safety (do NOT hide our footer) ===== */
body.woemse-active footer.woemse-footer,
body.woemse-active .woemse-footer { display:block !important; visibility:visible !important; }

/* Hide ONLY the old theme footer wrappers (not generic <footer>) */
body.woemse-active .xs-footer-section,
body.woemse-active .xs-footer,
body.woemse-active .footer-section,
body.woemse-active .footer-widget,
body.woemse-active .footer-main,
body.woemse-active .xs-footer-bottom,
body.woemse-active .footer-bottom,
body.woemse-active .copyright,
body.woemse-active .copyright-area,
body.woemse-active .footer-wrap,
body.woemse-active .xs-footer-wrap,
body.woemse-active .site-footer-wrap { display:none !important; visibility:hidden !important; }

/* If theme uses #colophon or .site-footer, hide it BUT keep our footer */
body.woemse-active #colophon,
body.woemse-active .site-footer { display:none !important; visibility:hidden !important; }
body.woemse-active #colophon.woemse-footer,
body.woemse-active .site-footer.woemse-footer { display:block !important; visibility:visible !important; }

/* ===== WOEMSE Footer (final) ===== */
.woemse-footer{
  background: radial-gradient(1200px 600px at 15% 10%, rgba(116,62,255,.22), transparent 55%),
              radial-gradient(1000px 520px at 85% 20%, rgba(0,190,255,.10), transparent 55%),
              linear-gradient(120deg,#0b0f1a,#121528);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 56px 0 18px;
}
.woemse-footer-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.woemse-footer h3{
  margin: 0 0 10px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .2px;
}
.woemse-footer p{
  margin: 0 0 16px;
  color: rgba(255,255,255,.75);
  font-size: 18px;
  line-height: 1.55;
  max-width: 680px;
}

/* Pills */
.woemse-footer-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.woemse-pill{
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 16px;
  text-decoration: none;
  color: rgba(220,205,255,.92);
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,12,20,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
  font-weight: 700;
}
.woemse-pill:hover{
  transform: translateY(-1px);
  border-color: rgba(160,120,255,.35);
  background: rgba(14,16,28,.55);
}

/* Newsletter box */
.woemse-newsletter-box{
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(10,12,20,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* Bottom bar */
.woemse-footer-bottom{
  max-width: 1200px;
  margin: 26px auto 0;
  padding: 14px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.55);
  font-size: 14px;
}

/* Mobile */
@media (max-width: 900px){
  .woemse-footer-inner{ grid-template-columns: 1fr; gap: 28px; }
  .woemse-footer{ padding: 42px 0 14px; }
  .woemse-footer h3{ font-size: 24px; }
  .woemse-footer p{ font-size: 16px; }
}


/* ===== WOEMSE: Footer menu row (outside the left column) ===== */
.woemse-footer-links-row{
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 24px;
}
.woemse-footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 12px;
  justify-content: center;
  align-items: center;
}
@media (max-width: 768px){
  .woemse-footer-links{ justify-content: center; }
}
