/* PoomConnect global brand — night canvas (not flat white) */

:root {
  --pc-purple: #6c35ff;
  --pc-pink: #ff2d8d;
  --pc-gradient: linear-gradient(135deg, #6c35ff 0%, #ff2d8d 100%);
  --pc-bg: #050510;
  --pc-bg-soft: #0a0a18;
  --pc-surface: #12121f;
  --pc-surface-2: #181828;
  --pc-text: #f2f2f8;
  --pc-muted: rgba(242, 242, 248, 0.62);
  --pc-border: rgba(255, 255, 255, 0.08);
  --pc-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

/* Page canvas — deep night + soft purple wash */
body {
  background-color: var(--pc-bg-soft) !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(108, 53, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 45, 141, 0.12), transparent 50%),
    linear-gradient(180deg, #070712 0%, #050510 40%, #0a0a18 100%) !important;
  background-attachment: fixed;
  color: var(--pc-text);
}

body:has(.pc-landing) {
  /* landing owns its own full-bleed hero treatment */
  background-image: none !important;
}

/* Elevated surfaces instead of white cards */
body:not(:has(.pc-landing)) .card,
body:not(:has(.pc-landing)) .wrapped,
body:not(:has(.pc-landing)) .update-card,
body:not(:has(.pc-landing)) .card-border,
body:not(:has(.pc-landing)) .bg-white,
body:not(:has(.pc-landing)) .modal-content,
body:not(:has(.pc-landing)) .dropdown-menu,
body:not(:has(.pc-landing)) .popover,
body:not(:has(.pc-landing)) .list-group-item {
  background-color: var(--pc-surface) !important;
  color: var(--pc-text) !important;
  border-color: var(--pc-border) !important;
  box-shadow: var(--pc-shadow);
}

body:not(:has(.pc-landing)) .card-header,
body:not(:has(.pc-landing)) .card-footer,
body:not(:has(.pc-landing)) .modal-header,
body:not(:has(.pc-landing)) .modal-footer {
  background-color: var(--pc-surface-2) !important;
  border-color: var(--pc-border) !important;
  color: var(--pc-text) !important;
}

/* Text hierarchy */
body:not(:has(.pc-landing)),
body:not(:has(.pc-landing)) p,
body:not(:has(.pc-landing)) .text-muted,
body:not(:has(.pc-landing)) small,
body:not(:has(.pc-landing)) .txt-black {
  color: var(--pc-muted);
}

body:not(:has(.pc-landing)) h1,
body:not(:has(.pc-landing)) h2,
body:not(:has(.pc-landing)) h3,
body:not(:has(.pc-landing)) h4,
body:not(:has(.pc-landing)) h5,
body:not(:has(.pc-landing)) h6,
body:not(:has(.pc-landing)) .font-weight-bold,
body:not(:has(.pc-landing)) strong,
body:not(:has(.pc-landing)) .card .card-body,
body:not(:has(.pc-landing)) .update-post {
  color: var(--pc-text);
}

/* Navbar — dark glass */
body:not(:has(.pc-landing)) .navbar,
body:not(:has(.pc-landing)) .navbar.navbar_background_color,
body:not(:has(.pc-landing)) .navbar.bg-white,
body:not(:has(.pc-landing)) .navbar.link-scroll {
  background: rgba(5, 5, 16, 0.92) !important;
  border-bottom: 1px solid var(--pc-border) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body:not(:has(.pc-landing)) .navbar .nav-link:not(.btn),
body:not(:has(.pc-landing)) .navbar.link-scroll a.nav-link:not(.btn),
body:not(:has(.pc-landing)) .navbar .icon-navbar,
body:not(:has(.pc-landing)) .navbar .feather,
body:not(:has(.pc-landing)) .navbar .bi {
  color: rgba(255, 255, 255, 0.88) !important;
}

body:not(:has(.pc-landing)) .navbar .search-bar {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

body:not(:has(.pc-landing)) .navbar .search-bar::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Keep white logo on dark app chrome */
body:not(:has(.pc-landing)) .navbar-brand .logo,
body:not(:has(.pc-landing)) .navbar-brand .logo-nav {
  /* force light wordmark via filter only if blue logo loads — prefer data-logo */
  height: 36px;
  width: auto;
  max-width: none;
  filter: none;
}

/* Left sidebar */
body:not(:has(.pc-landing)) .menu-left-home li > a {
  color: var(--pc-muted) !important;
}

body:not(:has(.pc-landing)) .menu-left-home li > a:hover {
  background-color: rgba(108, 53, 255, 0.16) !important;
  background-image: none !important;
  color: #fff !important;
}

body:not(:has(.pc-landing)) .menu-left-home li > a.active,
body:not(:has(.pc-landing)) .menu-left-home li > a.active:hover {
  background-image: var(--pc-gradient) !important;
  background-color: var(--pc-purple) !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(108, 53, 255, 0.32);
}

/* Forms */
body:not(:has(.pc-landing)) .form-control,
body:not(:has(.pc-landing)) .custom-select,
body:not(:has(.pc-landing)) textarea,
body:not(:has(.pc-landing)) .input-group-text {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: var(--pc-text) !important;
}

body:not(:has(.pc-landing)) .form-control::placeholder,
body:not(:has(.pc-landing)) textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

body:not(:has(.pc-landing)) .form-control:focus,
body:not(:has(.pc-landing)) .custom-select:focus,
body:not(:has(.pc-landing)) .search-bar:focus {
  border-color: rgba(108, 53, 255, 0.55) !important;
  box-shadow: 0 0 0 0.2rem rgba(108, 53, 255, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* Primary CTAs → brand gradient */
.btn-primary,
.btn-main.btn-primary,
button.btn-primary,
a.btn-primary,
.swal2-confirm,
.sa-button-container .confirm,
.btn-register-menu.btn-primary {
  background-image: var(--pc-gradient) !important;
  background-color: var(--pc-purple) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(255, 45, 141, 0.28);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-main.btn-primary:hover,
.show > .btn-primary.dropdown-toggle {
  background-image: linear-gradient(135deg, #5a28e6 0%, #e0217a 100%) !important;
  background-color: var(--pc-pink) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(255, 45, 141, 0.36);
}

.btn-outline-primary {
  color: #d4c4ff !important;
  border-color: rgba(108, 53, 255, 0.55) !important;
  background: transparent !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  color: #fff !important;
  background-image: var(--pc-gradient) !important;
  border-color: transparent !important;
}

.btn-light,
.btn-outline-light {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #fff !important;
}

/* Accents */
a:not(.btn):not(.nav-link):not(.dropdown-item):not(.list-group-item),
.text-primary,
.btn-link {
  color: #c4a8ff;
}

a:not(.btn):not(.nav-link):not(.dropdown-item):hover {
  color: var(--pc-pink);
}

.badge-primary,
.bg-primary {
  background-image: var(--pc-gradient) !important;
  background-color: var(--pc-purple) !important;
  border-color: transparent !important;
}

/* Tables / borders */
body:not(:has(.pc-landing)) .table,
body:not(:has(.pc-landing)) .border,
body:not(:has(.pc-landing)) .border-top,
body:not(:has(.pc-landing)) .border-bottom,
body:not(:has(.pc-landing)) hr {
  border-color: var(--pc-border) !important;
  color: var(--pc-text);
}

body:not(:has(.pc-landing)) .table td,
body:not(:has(.pc-landing)) .table th {
  border-color: var(--pc-border) !important;
  color: var(--pc-text);
}

/* Pagination / tabs */
.page-item.active .page-link,
.nav-pills .nav-link.active,
.nav-tabs .nav-link.active {
  background-image: var(--pc-gradient) !important;
  background-color: var(--pc-purple) !important;
  border-color: transparent !important;
  color: #fff !important;
}

.page-link {
  background: var(--pc-surface) !important;
  border-color: var(--pc-border) !important;
  color: #d4c4ff;
}

.page-link:hover {
  color: var(--pc-pink);
  background: var(--pc-surface-2) !important;
}

.progress-bar,
.pace .pace-progress {
  background-image: var(--pc-gradient) !important;
  background-color: var(--pc-purple) !important;
}

/* Dropdown items */
body:not(:has(.pc-landing)) .dropdown-item {
  color: var(--pc-text) !important;
}

body:not(:has(.pc-landing)) .dropdown-item:hover,
body:not(:has(.pc-landing)) .dropdown-item:focus {
  background: rgba(108, 53, 255, 0.18) !important;
  color: #fff !important;
}

body:not(:has(.pc-landing)) .dropdown-item.active,
body:not(:has(.pc-landing)) .dropdown-item.active:hover {
  background-image: var(--pc-gradient) !important;
  background-color: var(--pc-purple) !important;
  color: #fff !important;
}

body:not(:has(.pc-landing)) .dropdown-divider {
  border-top-color: var(--pc-border) !important;
}

/*
  Footer language/currency menus — always readable.
  Landing footer forces near-white link color, while Bootstrap menus stay white → invisible text.
*/
.footer_background_color .dropdown-menu,
footer .dropdown-menu,
body:has(.pc-landing) .footer_background_color .dropdown-menu {
  background-color: #12121f !important;
  color: #f2f2f8 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}

.footer_background_color .dropdown-item,
footer .dropdown-item,
body:has(.pc-landing) .footer_background_color .dropdown-item,
body:has(.pc-landing) .footer_background_color a.dropdown-item:not(.btn) {
  color: #f2f2f8 !important;
  background-color: transparent !important;
}

.footer_background_color .dropdown-item:hover,
.footer_background_color .dropdown-item:focus,
footer .dropdown-item:hover,
footer .dropdown-item:focus,
body:has(.pc-landing) .footer_background_color .dropdown-item:hover,
body:has(.pc-landing) .footer_background_color a.dropdown-item:not(.btn):hover {
  background: rgba(108, 53, 255, 0.22) !important;
  color: #fff !important;
}

.footer_background_color .dropdown-item.active,
.footer_background_color .dropdown-item.active:hover,
footer .dropdown-item.active,
body:has(.pc-landing) .footer_background_color .dropdown-item.active,
body:has(.pc-landing) .footer_background_color a.dropdown-item.active:not(.btn) {
  background-image: linear-gradient(135deg, #6c35ff 0%, #ff2d8d 100%) !important;
  background-color: #6c35ff !important;
  color: #fff !important;
}

/* Mobile bottom nav */
body:not(:has(.pc-landing)) .menu-mobile,
body:not(:has(.pc-landing)) .navbar-mobile {
  background: rgba(5, 5, 16, 0.96) !important;
  border-color: var(--pc-border) !important;
}

/* Footer */
.footer_background_color {
  background-color: var(--pc-bg) !important;
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer_background_color .link-footer,
.footer_background_color .ico-social,
.footer_background_color .footer-tiny,
.footer_background_color h6,
.footer_text_color,
.link-footer:not(.footer-tiny) {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer_background_color .link-footer:hover,
.footer_background_color a:not(.dropdown-item):hover {
  color: #fff !important;
}

.footer_background_color h6 {
  color: #fff !important;
  letter-spacing: 0.06em;
}

footer.py-3.footer_background_color,
footer.py-3 {
  background-color: #03030a !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Right-rail tiny footer links on feed */
body:not(:has(.pc-landing)) .footer-tiny,
body:not(:has(.pc-landing)) .link-footer.footer-tiny {
  color: var(--pc-muted) !important;
}

/* Event cards in the social feed */
.pc-feed-event-card {
  border: 1px solid rgba(108, 53, 255, 0.28);
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 80% at 0% 0%, rgba(108, 53, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(24, 24, 40, 0.95), rgba(12, 12, 22, 0.95));
  padding: 14px 16px;
}

.pc-feed-event-card--standalone {
  padding: 0;
}

.pc-feed-event-card--standalone .card-body {
  padding: 16px 18px;
}

.pc-feed-event-kicker {
  color: #ff8ec8;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
}

.pc-feed-event-card .h5 {
  color: var(--pc-text);
}

.pc-feed-event-card .h5:hover {
  color: #fff;
}

/* Logo sizing */
.navbar-brand .logo-nav,
.navbar-brand .logo {
  height: 36px;
  width: auto;
  max-width: none;
  filter: none;
  image-rendering: auto;
}
