/* ============================================
   BOR COMMUNITY CANADA — HOME PAGE STYLES
   Designed by Achiek Kuol
   ============================================ */

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
  text-align: center;
  padding: 60px 20px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(212,160,23,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background: rgba(212,160,23,0.2);
  border: 1px solid rgba(212,160,23,0.4);
  color: var(--accent-light);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-highlight { color: var(--accent); }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- STATS --- */
.stats-section {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.stat-icon {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
}

/* --- EVENTS GRID --- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.event-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.event-badge.paid { background: #fff3cd; color: #856404; }
.event-badge.free { background: #d1e7dd; color: #0a3622; }
.event-badge.donation { background: #cfe2ff; color: #084298; }
.event-badge.members { background: #f8d7da; color: #842029; }

.event-image {
  height: 140px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
}

.event-body { padding: 20px; }

.event-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.event-meta span {
  font-size: 0.8rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-meta i { color: var(--primary); width: 12px; }

.event-body p {
  font-size: 0.85rem;
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 16px;
}

.event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
}

.members-only { color: var(--red); }

/* --- FUNDRAISER --- */
.fundraiser-section {
  background: linear-gradient(135deg, #f8f9fa, #e8f5e9);
}

.fundraiser-featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.fundraiser-image {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: rgba(255,255,255,0.5);
  min-height: 280px;
}

.fundraiser-content { padding: 32px 32px 32px 0; }

.fundraiser-tag {
  display: inline-block;
  background: #fee2e2;
  color: #991b1b;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.fundraiser-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.fundraiser-content > p {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.progress-section { margin-bottom: 24px; }

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.raised {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.target {
  font-size: 0.88rem;
  color: var(--text-light);
}

.progress-bar {
  height: 12px;
  background: var(--light-gray);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 50px;
  transition: width 1s ease;
}

.progress-meta {
  display: flex;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-light);
}

.recent-donors { margin-bottom: 24px; }

.recent-donors h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-donors h4 i { color: var(--red); }

.donors-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.donor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}

.donor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.donor-avatar.anon { background: var(--mid-gray); }

.donor-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.donor-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.donor-city {
  font-size: 0.78rem;
  color: var(--text-light);
}

.donor-amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
}

.fundraiser-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* --- FEED PREVIEW --- */
.feed-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.feed-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feed-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.feed-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.feed-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feed-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.feed-location, .feed-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

.feed-location i { color: var(--primary); }

.feed-text {
  font-size: 0.9rem;
  color: var(--dark-gray);
  line-height: 1.65;
  margin-bottom: 16px;
}

.feed-actions {
  display: flex;
  gap: 12px;
  border-top: 1px solid var(--light-gray);
  padding-top: 12px;
}

.feed-action {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-size: 0.82rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-family: var(--font);
}

.feed-action:hover { background: var(--off-white); color: var(--primary); }
.feed-action i { color: var(--red); }

/* --- VISITOR PROMPT --- */
.visitor-prompt {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.visitor-prompt-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.visitor-prompt-content > i {
  font-size: 2.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.visitor-prompt-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.visitor-prompt-content p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
}

.visitor-prompt-content div { flex: 1; }

.visitor-prompt-content .btn {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
  font-weight: 700;
}

.visitor-prompt-content .btn:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
}

/* --- HOME RESPONSIVE --- */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: repeat(2, 1fr); }
  .feed-preview { grid-template-columns: repeat(2, 1fr); }
  .fundraiser-featured { grid-template-columns: 1fr; }
  .fundraiser-image { min-height: 200px; }
  .fundraiser-content { padding: 24px; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .feed-preview { grid-template-columns: 1fr; }
  .hero { min-height: 70vh; }
  .visitor-prompt-content { flex-direction: column; text-align: center; }
}