/*
Theme Name:  Astra Child — FGC
Theme URI:   https://framinghamgardenclub.org
Description: Child theme for the Framingham Garden Club. Parent: Astra 4.12.6.
Author:      Framingham Garden Club
Template:    astra
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: astra-child
*/

/* ============================================================
   DESIGN TOKENS — change these hex values to retheme everything
   ============================================================ */
:root {
  --fgc-green:        #3a6b35;
  --fgc-green-light:  #4e8a48;
  --fgc-cream:        #f9f6f0;
  --fgc-white:        #ffffff;
  --fgc-text:         #2c2c2c;
  --fgc-muted:        #6b7280;
  --fgc-border:       #e5e7eb;
  --fgc-radius:       10px;
  --fgc-shadow:       0 2px 8px rgba(0,0,0,.08);
  --fgc-cover-height: 200px;
}

body {
  background-color: var(--fgc-cream);
  color: var(--fgc-text);
}

/* ============================================================
   BUDDYPRESS WRAPPER
   ============================================================ */
#buddypress, .bp-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   MEMBER PROFILE — cover + avatar
   ============================================================ */
#buddypress #item-header {
  background: var(--fgc-green);
  border-radius: var(--fgc-radius) var(--fgc-radius) 0 0;
  min-height: var(--fgc-cover-height);
  position: relative;
  overflow: visible;
}
#buddypress #item-header-cover-image {
  min-height: var(--fgc-cover-height);
  border-radius: var(--fgc-radius) var(--fgc-radius) 0 0;
  background-size: cover;
  background-position: center;
}
#buddypress #item-header .avatar-box,
#buddypress #item-header #item-header-avatar {
  position: absolute;
  bottom: -48px;
  left: 24px;
  z-index: 10;
}
#buddypress #item-header #item-header-avatar img.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--fgc-white);
  box-shadow: var(--fgc-shadow);
  display: block;
}
#buddypress #item-header #item-header-content {
  background: var(--fgc-white);
  padding: 60px 24px 20px 136px;
  border-radius: 0 0 var(--fgc-radius) var(--fgc-radius);
  box-shadow: var(--fgc-shadow);
}
#buddypress #item-header #item-header-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 4px;
}
#buddypress #item-header #item-header-content .activity {
  font-size: 0.85rem;
  color: var(--fgc-muted);
}

/* ============================================================
   NAV TABS
   ============================================================ */
#buddypress #object-nav, #buddypress #subnav {
  background: var(--fgc-white);
  border-bottom: 1px solid var(--fgc-border);
  margin: 16px 0 0;
  border-radius: var(--fgc-radius) var(--fgc-radius) 0 0;
}
#buddypress #object-nav ul, #buddypress #subnav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0 12px;
  gap: 4px;
}
#buddypress #object-nav li a, #buddypress #subnav li a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fgc-muted);
  border-bottom: 3px solid transparent;
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
#buddypress #object-nav li.current a,
#buddypress #object-nav li a:hover,
#buddypress #subnav li.current a,
#buddypress #subnav li a:hover {
  color: var(--fgc-green);
  border-bottom-color: var(--fgc-green);
}

/* ============================================================
   ACTIVITY FEED
   ============================================================ */
#buddypress #activity-stream .activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
#buddypress #activity-stream li.activity-item {
  background: var(--fgc-white);
  border: 1px solid var(--fgc-border);
  border-radius: var(--fgc-radius);
  margin-bottom: 16px;
  padding: 16px;
  box-shadow: var(--fgc-shadow);
}
#buddypress #activity-stream .activity-avatar {
  float: left;
  margin-right: 12px;
}
#buddypress #activity-stream .activity-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: block;
}
#buddypress #activity-stream .activity-header a {
  font-weight: 700;
  color: var(--fgc-green);
  text-decoration: none;
}
#buddypress #activity-stream .activity-header .time-since {
  color: var(--fgc-muted);
  font-size: 0.8rem;
  margin-left: 6px;
}
#buddypress #activity-stream .activity-content .activity-inner {
  clear: both;
  padding-top: 10px;
  font-size: 0.95rem;
  line-height: 1.6;
}
#buddypress #activity-stream .activity-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--fgc-border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#buddypress #activity-stream .activity-meta a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fgc-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--fgc-border);
  transition: all .15s;
}
#buddypress #activity-stream .activity-meta a:hover,
#buddypress #activity-stream .activity-meta a.bp-primary-action {
  background: var(--fgc-green);
  color: var(--fgc-white);
  border-color: var(--fgc-green);
}
#buddypress #activity-stream .activity-comments {
  margin-top: 12px;
  padding-left: 56px;
  border-left: 3px solid var(--fgc-border);
}

/* ============================================================
   POST / DIRECTIVE COMPOSER
   ============================================================ */
#buddypress #whats-new-form,
#buddypress #whats-new-textarea {
  background: var(--fgc-white);
  border: 1px solid var(--fgc-border);
  border-radius: var(--fgc-radius);
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: var(--fgc-shadow);
}
#buddypress #whats-new {
  width: 100%;
  min-height: 80px;
  border: 1px solid var(--fgc-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  resize: vertical;
  background: var(--fgc-cream);
}
#buddypress #whats-new:focus {
  outline: none;
  border-color: var(--fgc-green);
  box-shadow: 0 0 0 3px rgba(58,107,53,.15);
}
#buddypress #whats-new-submit {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
#buddypress #aw-whats-new-submit {
  background: var(--fgc-green);
  color: var(--fgc-white);
  border: none;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
#buddypress #aw-whats-new-submit:hover { background: var(--fgc-green-light); }

/* ============================================================
   GROUPS / COMMITTEES DIRECTORY — card grid
   ============================================================ */
#buddypress #groups-list, #buddypress .item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#buddypress #groups-list li, #buddypress .item-list li {
  background: var(--fgc-white);
  border: 1px solid var(--fgc-border);
  border-radius: var(--fgc-radius);
  box-shadow: var(--fgc-shadow);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
#buddypress #groups-list li:hover, #buddypress .item-list li:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
#buddypress #groups-list .item-avatar a,
#buddypress .item-list .item-avatar a {
  display: block;
  background: var(--fgc-green);
  height: 80px;
  position: relative;
}
#buddypress #groups-list .item-avatar img,
#buddypress .item-list .item-avatar img {
  position: absolute;
  bottom: -28px;
  left: 16px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 3px solid var(--fgc-white);
  box-shadow: var(--fgc-shadow);
}
#buddypress #groups-list .item, #buddypress .item-list .item {
  padding: 40px 16px 16px;
}
#buddypress #groups-list .item .item-title a,
#buddypress .item-list .item .item-title a {
  font-weight: 700;
  font-size: 1rem;
  color: var(--fgc-text);
  text-decoration: none;
}
#buddypress #groups-list .item .item-title a:hover,
#buddypress .item-list .item .item-title a:hover { color: var(--fgc-green); }
#buddypress #groups-list .item-desc, #buddypress .item-list .item-desc {
  font-size: 0.85rem;
  color: var(--fgc-muted);
  margin-top: 6px;
  line-height: 1.5;
}
#buddypress #groups-list .action a, #buddypress .item-list .action a {
  display: inline-block;
  margin: 12px 16px 16px;
  padding: 7px 18px;
  background: var(--fgc-green);
  color: var(--fgc-white);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
}
#buddypress #groups-list .action a:hover,
#buddypress .item-list .action a:hover { background: var(--fgc-green-light); }

/* ============================================================
   MEMBERS DIRECTORY — profile card grid
   ============================================================ */
#buddypress #members-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#buddypress #members-list li {
  background: var(--fgc-white);
  border: 1px solid var(--fgc-border);
  border-radius: var(--fgc-radius);
  box-shadow: var(--fgc-shadow);
  text-align: center;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
#buddypress #members-list li:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
  transform: translateY(-2px);
}
#buddypress #members-list .item-avatar {
  background: var(--fgc-green);
  padding: 20px 0 0;
  display: flex;
  justify-content: center;
}
#buddypress #members-list .item-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--fgc-white);
  margin-bottom: -36px;
  position: relative;
  z-index: 1;
}
#buddypress #members-list .item { padding: 44px 12px 16px; }
#buddypress #members-list .item-title a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fgc-text);
  text-decoration: none;
}
#buddypress #members-list .item-title a:hover { color: var(--fgc-green); }
#buddypress #members-list .item-meta {
  font-size: 0.78rem;
  color: var(--fgc-muted);
  margin-top: 4px;
}

/* ============================================================
   BUDDYPRESS BUTTONS
   ============================================================ */
#buddypress a.button,
#buddypress input[type=submit],
#buddypress button {
  background: var(--fgc-green);
  color: var(--fgc-white);
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}
#buddypress a.button:hover,
#buddypress input[type=submit]:hover,
#buddypress button:hover {
  background: var(--fgc-green-light);
  color: var(--fgc-white);
}

/* ============================================================
   NAVIGATION — dropdown menus white background
   ============================================================ */

/* The dropdown container */
.ast-desktop .main-header-menu .sub-menu,
.main-header-menu .sub-menu {
  background-color: #ffffff;
  border: 1px solid var(--fgc-border);
  border-radius: var(--fgc-radius);
  box-shadow: var(--fgc-shadow);
}

/* Individual dropdown items */
.ast-desktop .main-header-menu .sub-menu li a,
.main-header-menu .sub-menu li a {
  background-color: #ffffff;
  color: var(--fgc-text);
}

/* Dropdown item hover */
.ast-desktop .main-header-menu .sub-menu li a:hover,
.ast-desktop .main-header-menu .sub-menu li:hover > a,
.main-header-menu .sub-menu li a:hover {
  background-color: var(--fgc-cream);
  color: var(--fgc-green);
}

/* Nested sub-menus (dropdowns within dropdowns) */
.ast-desktop .main-header-menu .sub-menu .sub-menu,
.main-header-menu .sub-menu .sub-menu {
  background-color: #ffffff;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  #buddypress #groups-list,
  #buddypress .item-list,
  #buddypress #members-list { grid-template-columns: 1fr; }
  #buddypress #item-header #item-header-content {
    padding: 60px 16px 16px 16px;
  }
}
