﻿/* Post Cards */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.post-card.pinned {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, var(--gold-100) 0%, var(--surface) 75px);
}
.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 11px;
}
.post-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.post-time {
  font-size: 0.77rem;
  color: var(--text-light);
}
.post-title {
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.35;
}
.post-body {
  font-size: 0.93rem;
  color: var(--text);
  white-space: pre-line;
  margin-bottom: 14px;
}
.post-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-soft);
  background: var(--bg-soft);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.action-chip:hover { border-color: var(--emerald-700); color: var(--emerald-700); }
.action-chip.active {
  background: var(--emerald-100);
  color: var(--emerald-700);
  border-color: var(--emerald-700);
}
.action-chip.aamiin-active {
  background: var(--gold-100);
  color: var(--gold-600);
  border-color: var(--gold-500);
}

/* Comments Drawer */
.comments-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment-item {
  display: flex;
  gap: 10px;
  background: var(--bg-soft);
  padding: 11px 13px;
  border-radius: var(--radius-md);
}
.comment-content { flex: 1; min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-text {
  font-size: 0.88rem;
  white-space: pre-line;
}
.comment-form {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}
.comment-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
}

/* Schedules Grid */
.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.schedule-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.schedule-card.past { opacity: 0.78; }

.schedule-date-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.date-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.date-tile {
  width: 48px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-700));
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.date-tile .day { font-size: 1.15rem; font-weight: 800; }
.date-tile .mon { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.9; }

.schedule-meta-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.rsvp-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
}
.attendee-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.attendee-chip {
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-100);
}
.attendee-chip.izin {
  background: var(--bg-soft);
  color: var(--text-muted);
  border-color: var(--border);
}

/* Prayer Cards */
.prayer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.prayer-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-line;
}

/* Material Cards */
.material-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.material-points {
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reference-box {
  background: var(--gold-100);
  border-left: 3px solid var(--gold-500);
  padding: 10px 12px;
  border-radius: 0 10px 10px 0;
  font-size: 0.83rem;
  font-style: italic;
}


/* Members */
.member-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.member-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.member-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.member-meta {
  font-size: 0.79rem;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.member-actions {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

