/* ===============================
   WRAPPER
================================ */
.sfbc-events-wrapper {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* ===============================
   SIDEBAR
================================ */
.sfbc-events-filters {
  border-right: 1px solid #e5e7eb;
  padding-right: 16px;
}

.sfbc-events-filters input,
.sfbc-events-filters button {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  font-size: 14px;
}

.sfbc-events-filters label {
  font-size: 13px;
  margin-bottom: 4px;
  display: block;
}

#sfbc-reset {
  background: #fff;
  border: 1px solid #2563eb;
  color: #2563eb;
  cursor: pointer;
}
#sfbc-reset:hover {
  background: #2563eb;
  color: #fff;
}

/* ===============================
   GRID
================================ */
.sfbc-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .sfbc-events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sfbc-events-wrapper { grid-template-columns: 1fr; }
  .sfbc-events-filters { border-right: none; }
  .sfbc-events-grid { grid-template-columns: 1fr; }
}

/* ===============================
   EVENT CARD
================================ */
.sfbc-event-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.sfbc-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}

.sfbc-event-cover {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #f3f4f6;
}

.sfbc-event-body {
  padding: 14px;
}

.sfbc-event-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}

.sfbc-event-meta {
  font-size: 13px;
  color: #6b7280;
}

/* ===============================
   GAME CARD
================================ */
.sfbc-game-card {
  background: #fefce8;
  border-left: 4px solid #eab308;
}

.sfbc-game-badge {
  display: inline-block;
  background: #eab308;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.sfbc-game-rows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.sfbc-game-team {
  width: 40%;
  text-align: center;
}
.sfbc-game-team img {
  height: 36px;
  object-fit: contain;
}
.sfbc-game-vs {
  width: 20%;
  font-weight: 800;
}

/* ===============================
   MODAL
================================ */
.sfbc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfbc-modal {
  background: #fff;
  max-width: 720px;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  max-height: 90vh;
}

.sfbc-modal-cover {
  height: 240px;
  background-size: cover;
  background-position: center;
}

.sfbc-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.sfbc-modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

#sfbc-modal-x {
  background: #e5e7eb;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
}

.sfbc-modal-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 6px;
}

.sfbc-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.sfbc-btn {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  border: none;
  cursor: pointer;
}
.sfbc-btn-google {
  background: #2563eb;
  color: #fff;
}
.sfbc-btn-apple {
  background: #111827;
  color: #fff;
}
/* ===============================
   PAGINATION
================================ */
.sfbc-pagination {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.sfbc-pagination button {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
}

.sfbc-pagination button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

.sfbc-pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
