/* ===============================
   WRAPPER
================================ */
.sfbc-events-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* ===============================
   SIDEBAR FILTERS
================================ */
.sfbc-events-filters {
  border-right: 1px solid #e5e7eb;
  padding-right: 16px;
}

.sfbc-events-filters input[type="text"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 14px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.sfbc-date-filter {
  margin-bottom: 16px;
}

.sfbc-date-filter label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  cursor: pointer;
}

/* ===============================
   PERKS
================================ */
.sfbc-perks {
  margin-top: 18px;
}

.sfbc-perks h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.sfbc-perk-item {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  cursor: pointer;
}

.sfbc-perk-item input {
  margin-right: 6px;
}

/* ===============================
   RESET BUTTON
================================ */
#sfbc-reset {
  margin-top: 14px;
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background: #ffffff;
  border: 1px solid #2563eb;
  color: #2563eb;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#sfbc-reset:hover {
  background: #2563eb;
  color: #ffffff;
}

/* ===============================
   EVENTS GRID
================================ */
.sfbc-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tablet */
@media (max-width: 1100px) {
  .sfbc-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .sfbc-events-wrapper {
    grid-template-columns: 1fr;
  }

  .sfbc-events-filters {
    border-right: none;
    padding-right: 0;
    margin-bottom: 16px;
  }

  .sfbc-events-grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   EVENT CARD
================================ */
.sfbc-event-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sfbc-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Cover */
.sfbc-event-cover {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}

/* Body */
.sfbc-event-body {
  padding: 14px;
}

.sfbc-event-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.25;
}

.sfbc-event-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 4px;
}

/* ===============================
   LOADING / EMPTY
================================ */
.sfbc-loading {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}

/* ===============================
   PERK BADGES
================================ */
.sfbc-perk-badges {
  margin-top: 6px;
}

.sfbc-perk-badge {
  display: inline-block;
  background: #eef2ff;
  color: #3730a3;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 4px;
}

/* ===============================
   MODAL
================================ */
.sfbc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfbc-modal {
  background: #fff;
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.sfbc-modal-cover {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.sfbc-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.sfbc-modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sfbc-modal-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 6px;
}

.sfbc-modal-description {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
}

/* Actions */
.sfbc-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.sfbc-btn {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.sfbc-btn-google {
  background: #2563eb;
  color: #fff;
}

.sfbc-btn-apple {
  background: #111827;
  color: #fff;
}

.sfbc-btn-close {
  background: #e5e7eb;
  color: #111827;
}
