/* Admin Events — most styling uses shared admin classes from admin_runs.css */

/* RSVP toggle rows */
.rsvp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border, #e5e5e5);
}

.rsvp-toggle-row:last-child {
  border-bottom: none;
}

.rsvp-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rsvp-toggle-label-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text, #111);
}

.rsvp-toggle-label-hint {
  font-size: 13px;
  color: var(--color-text-secondary, #666);
}

.rsvp-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.rsvp-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.rsvp-toggle-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 24px;
  background-color: #059669;
  transition: background-color 0.2s ease;
}

.rsvp-toggle-thumb {
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
  transform: translateX(20px);
}

/* When checked (disabled), toggle is OFF (red/gray) */
.rsvp-toggle-switch input:checked ~ .rsvp-toggle-track {
  background-color: #ccc;
}

.rsvp-toggle-switch input:checked ~ .rsvp-toggle-thumb {
  transform: translateX(0);
}

/* Publish status cards */
.publish-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.publish-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 2px solid var(--color-border, #e5e5e5);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: white;
}

.publish-option:hover {
  border-color: #b0b0b0;
}

.publish-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.publish-option:has(input:checked) {
  border-color: var(--color-primary, #2563eb);
  background: #f0f5ff;
}

.publish-option-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text, #111);
  display: flex;
  align-items: center;
  gap: 8px;
}

.publish-option-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.publish-option-dot--draft {
  background: #9ca3af;
}

.publish-option-dot--published {
  background: #059669;
}

.publish-option-desc {
  font-size: 13px;
  color: var(--color-text-secondary, #666);
  line-height: 1.4;
}

/* Event type cards */
.event-type-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.event-type-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 2px solid var(--color-border, #e5e5e5);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: white;
}

.event-type-option:hover {
  border-color: #b0b0b0;
}

.event-type-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.event-type-option:has(input:checked) {
  border-color: var(--color-primary, #2563eb);
  background: #f0f5ff;
}

.event-type-option-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text, #111);
}

.event-type-option-desc {
  font-size: 13px;
  color: var(--color-text-secondary, #666);
  line-height: 1.4;
}

/* Admin event show header */
.admin-event-show-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-event-show-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.admin-event-show-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 639px) {
  .publish-options {
    grid-template-columns: 1fr;
  }

  .event-type-options {
    grid-template-columns: 1fr;
  }

  .admin-event-show-header {
    flex-direction: column;
  }

  .admin-event-show-title-row {
    flex-wrap: wrap;
  }

  .admin-event-show-title-row h1 {
    width: 100%;
  }

  .admin-event-show-actions {
    flex-direction: column;
    width: 100%;
  }

  .admin-event-show-actions .btn,
  .admin-event-show-actions .admin-share-link {
    width: 100%;
  }

  .admin-event-show-actions .btn {
    text-align: center;
  }

  .admin-event-show-actions .admin-action-btn {
    width: 100%;
  }
}
