/*
Theme Name: Cashew Core
Template: buddyx
Author: Cashew Social
Version: 1.1
Description: Cashew Social child theme built on BuddyX. UI-only overrides (safe for updates).
*/

/* --------- Brand Tokens --------- */
:root{
  --cashew-orange:#F59E0B;
  --cashew-orange-2:#F97316;
  --cashew-cream:#FFF7ED;
  --cashew-brown:#7C4A2D;
  --cashew-ink:#1F2937;
  --cashew-muted:#6B7280;
  --cashew-border: rgba(15, 23, 42, .10);
  --cashew-shadow: 0 10px 24px rgba(15, 23, 42, .10);
  --cashew-radius: 22px;
  --cashew-radius-sm: 14px;
}

/* Background */
body{
  background: var(--cashew-cream) !important;
  color: var(--cashew-ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Header polish (BuddyX header classes) */
.site-header,
header.site-header{
  background: rgba(255, 247, 237, .85) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cashew-border);
}

/* Links */
a{
  color: var(--cashew-brown);
}
a:hover{
  color: var(--cashew-orange-2);
}

/* Buttons */
.button,
button,
input[type="submit"],
input[type="button"],
a.bp-primary-action,
a.bp-secondary-action{
  border-radius: var(--cashew-radius-sm) !important;
}

.button,
button,
input[type="submit"],
input[type="button"],
a.bp-primary-action{
  background: linear-gradient(135deg, var(--cashew-orange), var(--cashew-orange-2)) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .18);
}

a.bp-secondary-action,
.button.secondary,
button.secondary{
  background: #fff !important;
  border: 1px solid var(--cashew-border) !important;
  color: var(--cashew-ink) !important;
}

/* Cards: general */
.buddyx-card,
.buddyx-card .card,
.activity-item,
#buddypress .activity-list li.activity-item,
.widget,
.bp-widget,
.item-list-tabs,
.bp-wrap .bp-subnavs,
.bp-wrap .subnav,
.bp-navs{
  border-radius: var(--cashew-radius) !important;
}

/* Activity feed: Instagram-style cards */
#buddypress .activity-list li.activity-item,
.activity-list .activity-item{
  background: #fff !important;
  border: 1px solid var(--cashew-border) !important;
  box-shadow: var(--cashew-shadow);
  overflow: hidden;
  padding: 0 !important;
  margin-bottom: 18px !important;
}

/* Feed header row */
#buddypress .activity-item .activity-avatar{
  padding: 16px 16px 0 16px !important;
}
#buddypress .activity-item .activity-header{
  padding: 8px 16px 0 16px !important;
  font-size: 14px;
  color: var(--cashew-muted);
}
#buddypress .activity-item .activity-header a{
  font-weight: 700;
  color: var(--cashew-ink);
}

/* Feed content */
#buddypress .activity-item .activity-content{
  padding: 10px 16px 16px 16px !important;
}
#buddypress .activity-item .activity-inner{
  font-size: 16px;
  line-height: 1.45;
}
#buddypress .activity-item .activity-meta{
  padding: 0 16px 16px 16px !important;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#buddypress .activity-item .activity-meta a{
  border-radius: 999px !important;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .22);
  color: var(--cashew-brown) !important;
  padding: 6px 10px !important;
  font-weight: 600;
  text-decoration: none !important;
}

/* Comments block */
#buddypress .activity-item .activity-comments{
  border-top: 1px solid var(--cashew-border);
  padding: 14px 16px !important;
  background: rgba(255, 247, 237, .55);
}
#buddypress .activity-item .activity-comments .acomment-options a{
  color: var(--cashew-brown) !important;
}

/* Post box */
#buddypress #whats-new-form{
  background: #fff !important;
  border: 1px solid var(--cashew-border) !important;
  border-radius: var(--cashew-radius) !important;
  box-shadow: var(--cashew-shadow);
  padding: 16px !important;
}
#buddypress #whats-new-textarea textarea{
  border-radius: 18px !important;
  border: 1px solid var(--cashew-border) !important;
  background: rgba(255, 247, 237, .55);
}

/* Avatars: round and crisp */
#buddypress img.avatar,
.avatar{
  border-radius: 999px !important;
}

/* Sidebar widgets */
.widget,
.bp-widget{
  background:#fff;
  border: 1px solid var(--cashew-border);
  box-shadow: var(--cashew-shadow);
  padding: 14px 14px;
}

/* Friend suggestions list */
.cashew-suggestions{
  display: grid;
  gap: 12px;
}
.cashew-suggestion{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 10px 10px;
  border: 1px solid var(--cashew-border);
  border-radius: 18px;
  background: rgba(255, 247, 237, .55);
}
.cashew-suggestion .left{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
}
.cashew-suggestion .left .name{
  font-weight: 800;
  color: var(--cashew-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cashew-suggestion .left .handle{
  font-size: 12px;
  color: var(--cashew-muted);
}
.cashew-suggestion img{
  width: 42px;
  height: 42px;
  border-radius: 999px;
  object-fit: cover;
}
.cashew-suggestions .cashew-more{
  margin-top: 10px;
  width: 100%;
}

/* Mobile spacing */
@media (max-width: 768px){
  #buddypress .activity-item .activity-content{
    padding: 10px 14px 14px 14px !important;
  }
  #buddypress .activity-item .activity-meta{
    padding: 0 14px 14px 14px !important;
  }
}
