/* AfricanConnect – Buzz People & Events Styles */

/* ══════════════════════════════════════════
   BUZZ PEOPLE
══════════════════════════════════════════ */

/* ── Buzz card ────────────────────────────────────────────── */
.ac-buzz-card {
  background: var(--ac-black2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  transition: var(--ac-transition);
  display: flex;
  flex-direction: column;
}

.ac-buzz-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,200,83,0.2);
  box-shadow: var(--ac-shadow-md);
}

/* ── Buzz media area ──────────────────────────────────────── */
.ac-buzz-media {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.ac-buzz-media .emoji-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.2;
  pointer-events: none;
}

.ac-buzz-type {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ac-white);
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

.ac-buzz-viral {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

/* ── Buzz body ────────────────────────────────────────────── */
.ac-buzz-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ac-buzz-title {
  font-family: var(--ac-font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--ac-white);
}

.ac-buzz-title a {
  color: inherit;
  text-decoration: none;
  transition: var(--ac-transition);
}

.ac-buzz-title a:hover {
  color: var(--ac-green);
}

/* ── Poll card ────────────────────────────────────────────── */
.ac-poll-card {
  background: var(--ac-black3);
  border-radius: var(--ac-radius-md);
  padding: var(--ac-spacing-md);
  margin-top: auto;
}

.ac-poll-question {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--ac-spacing-md);
  color: var(--ac-white);
  line-height: 1.4;
}

.ac-poll-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ac-poll-option {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  position: relative;
  overflow: hidden;
  transition: var(--ac-transition);
  text-align: left;
  width: 100%;
  color: var(--ac-white2);
}

.ac-poll-option:hover:not(:disabled) {
  border-color: var(--ac-green);
  background: rgba(0,200,83,0.05);
}

.ac-poll-option:disabled {
  cursor: default;
}

.ac-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(0,200,83,0.12);
  border-radius: 8px 0 0 8px;
  transition: width 0.5s ease;
  pointer-events: none;
}

.ac-opt-label {
  position: relative;
  z-index: 1;
  font-weight: 500;
}

.ac-opt-pct {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--ac-green);
  flex-shrink: 0;
  margin-left: 8px;
}

/* Yes/No specific styles */
.ac-poll-option[data-option-id="yes"] .ac-bar {
  background: rgba(0,200,83,0.15);
}

.ac-poll-option[data-option-id="no"] .ac-bar {
  background: rgba(255,61,0,0.12);
}

.ac-poll-option[data-option-id="yes"] .ac-opt-pct {
  color: var(--ac-green);
}

.ac-poll-option[data-option-id="no"] .ac-opt-pct {
  color: #ff6d3d;
}

/* Scale styles */
.ac-poll-option[data-option-id="star5"] .ac-bar,
.ac-poll-option[data-option-id="star4"] .ac-bar {
  background: rgba(255,215,0,0.12);
}

/* ── Buzz footer actions ───────────────────────────────────── */
.ac-buzz-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ac-buzz-stat {
  background: none;
  border: none;
  color: var(--ac-gray);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--ac-transition);
  text-decoration: none;
}

.ac-buzz-stat:hover {
  color: var(--ac-white);
  background: rgba(255,255,255,0.06);
}

.ac-like-btn:hover {
  color: var(--ac-red) !important;
}

.ac-like-btn.is-liked {
  color: var(--ac-red);
}

/* ── Buzz page filter tabs ─────────────────────────────────── */
.ac-buzz-filter-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow-x: auto;
  scrollbar-width: none;
}

.ac-buzz-filter-tabs::-webkit-scrollbar {
  display: none;
}

/* ── Featured badge ────────────────────────────────────────── */
.ac-buzz-featured-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, var(--ac-gold), var(--ac-gold3));
  color: var(--ac-black);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}


/* ══════════════════════════════════════════
   EVENTS
══════════════════════════════════════════ */

/* ── Event card ───────────────────────────────────────────── */
.ac-event-card {
  background: var(--ac-black2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--ac-radius-lg);
  overflow: hidden;
  transition: var(--ac-transition);
  display: flex;
  flex-direction: column;
}

.ac-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ac-shadow-md);
}

/* ── Event poster area ────────────────────────────────────── */
.ac-event-poster {
  position: relative;
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  flex-shrink: 0;
}

.ac-event-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ac-event-card:hover .ac-event-poster img {
  transform: scale(1.05);
}

/* ── Date badge ───────────────────────────────────────────── */
.ac-event-date-badge {
  position: relative;
  z-index: 2;
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--ac-font-heading);
  font-weight: 800;
  line-height: 1;
  display: inline-block;
}

.ac-event-date-badge .day {
  font-size: 22px;
  line-height: 1;
  display: block;
}

.ac-event-date-badge .month {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* ── Event info ───────────────────────────────────────────── */
.ac-event-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ac-event-title {
  font-family: var(--ac-font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--ac-white);
}

.ac-event-title a {
  color: inherit;
  text-decoration: none;
}

.ac-event-title a:hover {
  color: var(--ac-green);
}

.ac-event-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  flex: 1;
}

.ac-event-meta span {
  font-size: 12px;
  color: var(--ac-gray);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}

.ac-event-meta span i {
  color: var(--ac-green);
  width: 14px;
  flex-shrink: 0;
  font-size: 11px;
}

/* ── Event price ──────────────────────────────────────────── */
.ac-event-price {
  font-family: var(--ac-font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--ac-gold);
  line-height: 1;
}

.ac-event-price .currency {
  font-size: 12px;
  font-weight: 600;
  margin-left: 2px;
}

.ac-event-price.is-free {
  color: var(--ac-green);
  font-size: 14px;
  font-weight: 700;
}

/* ── Capacity bar ─────────────────────────────────────────── */
.ac-capacity-bar {
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  height: 5px;
  margin-top: 10px;
  overflow: hidden;
}

.ac-capacity-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.ac-capacity-txt {
  font-size: 11px;
  color: var(--ac-gray);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Event footer ─────────────────────────────────────────── */
.ac-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Event status tags ────────────────────────────────────── */
.ac-event-status {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* ── Filters ──────────────────────────────────────────────── */
.ac-event-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--ac-spacing-xl);
}

/* ── Events page header ────────────────────────────────────── */
.ac-events-header {
  background: linear-gradient(135deg, #0a0a0a 0%, #0d1a0d 100%);
  padding: var(--ac-spacing-2xl) 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* ── Event CTA membership ─────────────────────────────────── */
.ac-event-member-cta {
  background: linear-gradient(90deg, #0d1a0d, #1a1200);
  padding: var(--ac-spacing-2xl) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .ac-buzz-grid,
  .ac-events-grid {
    grid-template-columns: 1fr;
  }

  .ac-event-poster {
    height: 160px;
  }

  .ac-event-date-badge .day {
    font-size: 18px;
  }

  .ac-buzz-type {
    font-size: 10px;
    padding: 3px 8px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ac-buzz-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ac-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Animation ────────────────────────────────────────────── */
.ac-buzz-card,
.ac-event-card {
  animation: ac-fadeIn 0.4s ease both;
}

.ac-buzz-grid .ac-buzz-card:nth-child(1) { animation-delay: 0.05s; }
.ac-buzz-grid .ac-buzz-card:nth-child(2) { animation-delay: 0.10s; }
.ac-buzz-grid .ac-buzz-card:nth-child(3) { animation-delay: 0.15s; }
.ac-buzz-grid .ac-buzz-card:nth-child(4) { animation-delay: 0.20s; }
.ac-buzz-grid .ac-buzz-card:nth-child(5) { animation-delay: 0.25s; }
.ac-buzz-grid .ac-buzz-card:nth-child(6) { animation-delay: 0.30s; }

.ac-events-grid .ac-event-card:nth-child(1) { animation-delay: 0.05s; }
.ac-events-grid .ac-event-card:nth-child(2) { animation-delay: 0.10s; }
.ac-events-grid .ac-event-card:nth-child(3) { animation-delay: 0.15s; }
.ac-events-grid .ac-event-card:nth-child(4) { animation-delay: 0.20s; }
