/**
 * Frontend Styles for RPC Schedule Table
 * Matches the provided design exactly
 */

.rpc-schedule {
  --bg: rgba(9, 20, 38, 0.75);
  --line: rgba(255,255,255,0.06);
  --text-main: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.70);
  --neon: #b7ff2a;
  border-radius: 18px;
}

/* Outer container */
.rpc-schedule-wrap{
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.02)
  );
  border: 1px solid rgba(183,255,42,0.35);
  overflow: hidden;
  transform: none !important;
  transition:
    border-color .25s ease,
    box-shadow .25s ease;
}

/* Hover glow ONLY (no bounce) */
.rpc-schedule-wrap:hover{
  border-color: rgba(183,255,42,0.95);
  box-shadow:
    0 0 0 1px rgba(183,255,42,0.55),
    0 0 32px rgba(183,255,42,0.20),
    0 0 90px rgba(183,255,42,0.10);
  transform: none !important;
}

/* Header */
.rpc-schedule-header{
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 2fr 1.6fr 1fr;
  padding: 20px 24px;
  background: rgba(183,255,42,0.07);
  border-bottom: 1px solid rgba(183,255,42,0.25);
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--neon);
  gap: 16px;
  align-items: center;
  min-height: 55px;
}

/* Rows */
.rpc-schedule-row{
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 2fr 1.6fr 1fr;
  padding: 20px 24px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background .2s ease;
  gap: 16px;
  min-height: 65px;
}

.rpc-schedule-row:last-child{
  border-bottom: none;
}

/* Row hover (subtle highlight only) */
.rpc-schedule-row:hover{
  background: rgba(255,255,255,0.03);
}

/* Day */
.rpc-day{
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

/* Time & Venue */
.rpc-time,
.rpc-venue{
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Session */
.rpc-session{
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

/* Icons */
.rpc-icon{
  width: 18px;
  height: 18px;
  color: var(--neon);
  flex-shrink: 0;
}

/* LEVEL Pills (Orbitron) */
.rpc-pill{
  font-family: 'Orbitron', system-ui, sans-serif;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.05);
  width: fit-content;
}

/* Pill variations */
.rpc-pill.dev{
  color: #00ffc3;
  border-color: rgba(0,255,195,0.45);
  background: rgba(0,255,195,0.10);
}
.rpc-pill.all{
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
}
.rpc-pill.beginner{
  color: rgba(200,220,255,0.95);
  border-color: rgba(160,190,255,0.40);
  background: rgba(160,190,255,0.10);
}
.rpc-pill.elite{
  color: rgba(183,255,42,0.95);
  border-color: rgba(183,255,42,0.55);
  background: rgba(183,255,42,0.10);
}

/* ===== Mobile ===== */
@media (max-width: 767px){
  .rpc-schedule {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }
  
  .rpc-schedule-wrap {
    min-width: 750px; /* Increased to ensure all columns are visible */
    width: max-content;
    max-width: none;
  }

  .rpc-schedule-header {
    grid-template-columns: 110px 160px 200px 150px 110px;
    padding: 18px 20px;
    font-size: 10px;
    letter-spacing: 0.1em;
    gap: 12px;
    min-height: 60px;
  }

  .rpc-schedule-row {
    grid-template-columns: 110px 160px 200px 150px 110px;
    padding: 20px 20px;
    align-items: center;
    gap: 12px;
    min-height: 75px;
  }

  .rpc-day {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .rpc-time {
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
  }

  .rpc-venue {
    font-size: 12px;
    gap: 6px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
  }

  .rpc-session {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    word-break: break-word;
  }

  .rpc-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .rpc-pill {
    font-size: 9px;
    padding: 4px 8px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }
}
