/* Regatta Manager — Read-only Schedule View
 * Layout & chrome only; table styles come from styles.css.
 */

.regatta-schedule-view {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  font-family: "Nunito Sans", "Segoe UI", Arial, sans-serif;
  color: #1a0a2e;
  background: #f8f4ff;
  min-height: 100vh;
}

.rsv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #7413dc;
}

.rsv-title {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: #4f0aa1;
}

.rsv-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  color: #5e5272;
}

.rsv-live-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #23a950;
  animation: rsv-pulse 2s infinite;
}

@keyframes rsv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.rsv-live-label {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.rsv-updated {
  font-size: 0.85rem;
  color: #8a7a9e;
}

/* Days container */
.rsv-days {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Day blocks use .day-block from styles.css, override border-radius */
.day-block {
  border-radius: 18px;
}

/* Day title override */
.day-block h3 {
  background: linear-gradient(135deg, #4f0aa1, #7413dc);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 0.9rem 1.2rem;
  margin: 0;
}

/* Empty state */
.rsv-empty {
  text-align: center;
  padding: 3rem;
  color: #8a7a9e;
  font-size: 1.2rem;
}

/* Footer */
.rsv-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.rsv-footer-note {
  color: #8a7a9e;
  font-size: 0.85rem;
}

/* Print */
@media print {
  .regatta-schedule-view {
    padding: 0;
    background: #fff;
    min-height: auto;
  }

  .rsv-header {
    border-bottom-color: #000;
  }

  .rsv-title {
    color: #000;
  }

  .rsv-status {
    display: none;
  }

  .day-block {
    break-inside: avoid;
    border-color: #ccc;
    box-shadow: none;
  }

  .rsv-footer {
    display: none;
  }
}

/* Small screens */
@media (max-width: 768px) {
  .regatta-schedule-view {
    padding: 0.8rem;
  }

  .rsv-title {
    font-size: 1.5rem;
  }

  .rsv-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .col-time {
    font-size: 1rem;
  }
}

/* Loading / error states */
.rsv-loading,
.rsv-error {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 1.2rem;
  color: #5e5272;
}

.rsv-error {
  color: #c0392b;
}

.rsv-error button {
  margin-left: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid #c0392b;
  border-radius: 999px;
  background: #fff;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
}

.rsv-error button:hover {
  background: #c0392b;
  color: #fff;
}

.rsv-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid #e0d6f2;
  border-top-color: #7413dc;
  border-radius: 50%;
  animation: rsv-spin 0.8s linear infinite;
  margin-bottom: 1rem;
}

@keyframes rsv-spin {
  to { transform: rotate(360deg); }
}
