/* ============================================================
   BIZCA brand overrides for BuddyX (Navy #173F35 + Gold #00BF6F)
   Applies site-wide (community/membership/BuddyPress pages).
   BeBuddy-style: rounded cards, gold CTAs, navy chrome.
   ============================================================ */

:root {
  --bizca-navy: #173F35;
  --bizca-navy-light: #245A4C;
  --bizca-navy-dark: #0F2B24;
  --bizca-gold: #00BF6F;
  --bizca-gold-light: #3FD08E;
  --bizca-gold-dark: #017A49;
  --bizca-bg: #F5F7FA;
  --bizca-text: #1a2233;

  /* Map BuddyX / global palette to BIZCA brand */
  --global-palette1: #173F35;   /* primary */
  --global-palette2: #245A4C;   /* primary hover */
  --global-palette3: #1a2233;   /* heading text */
  --global-palette4: #1a2233;   /* body text */
  --global-palette-highlight: #00BF6F;
  --wp--preset--color--primary: #173F35;
  --wp--preset--color--secondary: #00BF6F;

  /* BuddyX theme custom props (best-effort) */
  --buddyx-link-color: #017A49;
  --buddyx-link-hover-color: #173F35;
}

/* Typography — Be Vietnam Pro everywhere */
body,
button,
input,
select,
textarea,
.site-title,
.entry-title,
.widget-title,
.bp-navs,
#buddypress {
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .page-title, .widget-title {
  color: var(--bizca-navy);
  font-weight: 700;
}

a { color: var(--bizca-gold-dark); }
a:hover, a:focus { color: var(--bizca-navy); }

/* ---------- Site header → light (BeBuddy style) ---------- */
.site-header,
.site-header-section,
#masthead,
.site-branding,
.main-navigation,
header.site-header {
  background-color: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bizca-line, #e8edf3);
}
.site-header a,
.main-navigation a,
#masthead a,
.site-header .menu-item > a {
  color: #1f2c44 !important;
  font-weight: 600;
}
.site-header a:hover,
.main-navigation a:hover,
.site-header .current-menu-item > a {
  color: var(--bizca-gold-dark) !important;
}
.site-title a { color: var(--bizca-navy) !important; }
.site-description { color: #94a3b8 !important; }
/* header action icons (search/dark/msg/notif) navy on light */
.site-header .header-buttons a,
.site-header .header-buttons span,
.site-header svg { color: var(--bizca-navy) !important; }

/* ---------- Buttons → gold/navy, rounded (BeBuddy look) ---------- */
.wp-block-button__link,
button:not(.navbar-toggle):not(.float-chat-btn),
input[type="submit"],
.bp-button,
#buddypress .generic-button a,
#buddypress a.button,
#buddypress button,
#buddypress input[type="submit"],
#buddypress input[type="button"],
.buddyx-btn,
.button {
  background: var(--bizca-gold) !important;
  color: var(--bizca-navy) !important;
  border-color: var(--bizca-gold) !important;
  border-radius: 22px !important;
  font-weight: 600 !important;
  transition: all .2s ease;
}
.wp-block-button__link:hover,
input[type="submit"]:hover,
#buddypress a.button:hover,
#buddypress button:hover,
.button:hover {
  background: var(--bizca-gold-dark) !important;
  color: var(--bizca-navy) !important;
  transform: translateY(-1px);
}

/* Secondary / outline buttons */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--bizca-navy) !important;
  border: 2px solid var(--bizca-navy) !important;
}

/* ---------- BuddyPress nav tabs → navy/gold ---------- */
#buddypress div.item-list-tabs ul li.selected a,
#buddypress div.item-list-tabs ul li.current a,
.bp-navs ul li.selected a,
.bp-navs ul li.current a {
  background: var(--bizca-navy) !important;
  color: var(--bizca-gold) !important;
  border-radius: 10px;
}
#buddypress div.item-list-tabs ul li a span,
.bp-navs li.selected a span {
  background: var(--bizca-gold) !important;
  color: var(--bizca-navy) !important;
}

/* ---------- Cards: members, groups, activity (rounded BeBuddy) ---------- */
#buddypress ul.item-list li,
.bp-feedback,
.buddypress-wrap .members-list li,
.buddypress-wrap .groups-list li,
#item-header,
.activity-list li .activity-content {
  border-radius: 16px !important;
}
#buddypress ul.item-list li {
  background: #fff;
  box-shadow: 0 4px 12px rgba(23,63,53,0.06);
  border: 1px solid #e2e8f0;
  padding: 18px;
  transition: all .25s ease;
}
#buddypress ul.item-list li:hover {
  box-shadow: 0 8px 24px rgba(23,63,53,0.10);
  transform: translateY(-3px);
  border-color: var(--bizca-gold);
}

/* Avatars subtle gold ring */
#buddypress img.avatar,
.buddypress-wrap img.avatar {
  border-radius: 50% !important;
  box-shadow: 0 0 0 3px rgba(0,191,111,0.25);
}

/* Member/group cover + headers */
#item-header-cover-image,
.bp-cover-image-status {
  background: linear-gradient(135deg, var(--bizca-navy), var(--bizca-navy-light)) !important;
}

/* Footer → navy with gold top border */
.site-footer,
#colophon,
footer.site-footer {
  background: var(--bizca-navy-dark) !important;
  color: rgba(255,255,255,0.7);
  border-top: 3px solid var(--bizca-gold);
}
.site-footer a, #colophon a { color: rgba(255,255,255,0.75) !important; }
.site-footer a:hover { color: var(--bizca-gold) !important; }

/* Body background */
body { background: var(--bizca-bg); }

/* Forms focus → gold */
input:focus, textarea:focus, select:focus {
  border-color: var(--bizca-gold) !important;
  box-shadow: 0 0 0 3px rgba(0,191,111,0.15) !important;
}

/* Simple Membership level boxes → on-brand */
.swpm-registration-widget-form, .swpm-login-form-inner {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

/* Hide BuddyX "powered by" / keep clean (optional polish) */
.site-info .powered-by { opacity: .5; font-size: 12px; }
