/* ============================================
   Prospect Camps Page — Additional Styles
   ============================================ */

/* View Toggle Bar */
.view-toggle-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: 44px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 var(--space-lg);
  gap: var(--space-sm);
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.view-btn.active {
  background: rgba(212,168,67,0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.camp-count-badge {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
}

/* Map View */
.camps-map-view {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.camps-map-view .map-container {
  width: 100%;
  height: 100%;
}

/* Camps Sidebar */
.camps-sidebar {
  width: 280px;
  top: var(--space-md);
  left: var(--space-md);
}

.camp-search-input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.camp-search-input:focus {
  border-color: var(--gold);
}

.camp-search-input::placeholder {
  color: var(--text-muted);
}

.camp-state-select {
  width: 100%;
  padding: 7px 10px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236a6a82' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.camp-state-select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Tier badge colors on filter buttons */
.filter-btn.tier-elite.active { background: rgba(255,215,0,0.15); border-color: #FFD700; color: #FFD700; }
.filter-btn.tier-premier.active { background: rgba(196,30,58,0.15); border-color: #c41e3a; color: #c41e3a; }
.filter-btn.tier-high.active { background: rgba(232,135,43,0.15); border-color: #e8872b; color: #e8872b; }
.filter-btn.tier-solid.active { background: rgba(74,144,217,0.15); border-color: #4a90d9; color: #4a90d9; }
.filter-btn.tier-dev.active { background: rgba(122,122,154,0.15); border-color: #7a7a9a; color: #7a7a9a; }

.reset-filters-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 8px;
  margin-top: var(--space-md);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.reset-filters-btn:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* Sidebar Legend */
.camps-legend {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.camps-legend h4 {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 600;
}

.camps-legend .legend-item {
  font-size: 0.72rem;
  padding: 3px 0;
}

/* List View */
.camps-list-view {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.list-controls {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}

.list-filter-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

.list-filter-row .camp-state-select,
.list-filter-row .camp-search-input {
  width: auto;
  min-width: 140px;
  flex: 1;
}

.list-search {
  max-width: 200px;
}

.list-scroll {
  flex: 1;
  overflow-y: auto;
}

.camps-table th {
  position: sticky;
  top: 0;
  z-index: 10;
}

.camps-table .camp-name-cell {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 280px;
}

.camps-table .camp-name-cell a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.camps-table .camp-name-cell a:hover {
  color: var(--gold);
}

/* Tier Badges */
.tier-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.tier-badge.tier-1 { background: rgba(255,215,0,0.15); color: #FFD700; }
.tier-badge.tier-2 { background: rgba(196,30,58,0.15); color: #e05068; }
.tier-badge.tier-3 { background: rgba(232,135,43,0.15); color: #e8872b; }
.tier-badge.tier-4 { background: rgba(74,144,217,0.15); color: #6aadea; }
.tier-badge.tier-5 { background: rgba(122,122,154,0.15); color: #9a9ab4; }

/* Invite badge */
.invite-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(212,168,67,0.12);
  color: var(--gold);
  white-space: nowrap;
}

.open-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 500;
  background: rgba(80,200,120,0.12);
  color: #50c878;
  white-space: nowrap;
}

/* Division badge */
.div-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Camp Popup */
.camp-popup {
  padding: 4px;
  min-width: 260px;
  max-width: 340px;
}

.camp-popup-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.camp-popup h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  line-height: 1.3;
  flex: 1;
}

.camp-popup-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 10px;
}

.camp-popup-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.camp-popup-detail strong {
  color: var(--text-primary);
  font-weight: 600;
}

.camp-popup-detail .detail-row {
  display: flex;
  gap: 6px;
}

.camp-popup-detail .detail-row .detail-icon {
  flex-shrink: 0;
  width: 16px;
  text-align: center;
  opacity: 0.6;
}

.camp-popup-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
}

.camp-popup-register {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 5px 12px;
  background: rgba(212,168,67,0.15);
  border: 1px solid var(--gold);
  border-radius: 100px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.camp-popup-register:hover {
  background: rgba(212,168,67,0.25);
  color: var(--gold-bright);
}

/* University Info Block */
.univ-info {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(42,42,78,0.5);
}

.univ-info h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.univ-info p {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Custom circle markers */
.camp-marker {
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}

.camp-marker:hover {
  transform: scale(1.3);
  z-index: 10000 !important;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .view-toggle-bar {
    padding: 0 var(--space-md);
    gap: 4px;
  }
  
  .view-btn {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
  
  .camps-sidebar {
    width: calc(100% - 16px);
    max-height: 45%;
    top: 8px;
    left: 8px;
    right: 8px;
    width: auto;
  }
  
  .list-filter-row {
    flex-wrap: wrap;
  }
  
  .list-filter-row .camp-state-select,
  .list-filter-row .camp-search-input {
    min-width: 100px;
    font-size: 0.75rem;
  }
  
  .list-search {
    max-width: 100%;
  }
  
  .camps-table {
    font-size: 0.75rem;
  }
  
  .camps-table th,
  .camps-table td {
    padding: 6px 8px;
  }
  
  /* Hide some columns on mobile */
  .camps-table th:nth-child(6),
  .camps-table td:nth-child(6),
  .camps-table th:nth-child(7),
  .camps-table td:nth-child(7) {
    display: none;
  }
  
  .camp-count-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .camps-table th:nth-child(4),
  .camps-table td:nth-child(4) {
    display: none;
  }
}

/* ============================================
   Page Legend Bar (below view toggle)
   ============================================ */
.page-legend-bar {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 890;
  height: 38px;
  background: rgba(10,10,20,0.97);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0 var(--space-lg);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.page-legend-bar::-webkit-scrollbar { display: none; }

.page-legend-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.page-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.page-legend-item .legend-circle {
  border-radius: 50%;
  display: inline-block;
}

/* Shift map view down to account for legend bar */
.camps-map-view {
  top: 82px !important; /* 44px toggle + 38px legend */
}

@media (max-width: 768px) {
  .page-legend-bar {
    gap: var(--space-md);
    padding: 0 var(--space-md);
  }
}

/* ============================================
   Calendar View
   ============================================ */
.camps-calendar-view {
  position: absolute;
  top: 82px; /* below toggle + legend bars */
  left: 0; right: 0; bottom: 0;
  background: var(--bg-primary);
  overflow-y: auto;
  padding: var(--space-lg);
}

.cal-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.cal-month-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  min-width: 220px;
  text-align: center;
}

.cal-nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.cal-nav-btn:hover { color: var(--gold); border-color: var(--gold); }

.cal-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 2px;
  max-width: 1100px;
  margin-left: auto; margin-right: auto;
}

.cal-grid-header > div {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding: var(--space-sm) 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}

.cal-cell {
  min-height: 90px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 6px;
  cursor: default;
  transition: background var(--transition-fast);
}

.cal-cell.other-month { opacity: 0.35; }
.cal-cell.today { border-color: var(--gold); }
.cal-cell.has-camps { cursor: pointer; }
.cal-cell.has-camps:hover { background: var(--bg-card-hover); border-color: var(--border-hover); }

.cal-day-num {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cal-cell.today .cal-day-num {
  color: var(--gold);
  font-weight: 700;
}

.cal-camp-dot {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255,255,255,0.04);
  margin-bottom: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cal-camp-dot:hover { background: rgba(255,255,255,0.08); }

.cal-dot-color {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cal-more-badge {
  font-size: 0.62rem;
  color: var(--text-muted);
  padding: 2px 4px;
  cursor: pointer;
}
.cal-more-badge:hover { color: var(--gold); }

/* Day Detail Panel */
.cal-day-detail {
  max-width: 1100px;
  margin: var(--space-md) auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.cal-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.cal-detail-list {
  padding: var(--space-sm) 0;
  max-height: 300px;
  overflow-y: auto;
}

.cal-detail-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px var(--space-lg);
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
}
.cal-detail-item:last-child { border-bottom: none; }
.cal-detail-item:hover { background: rgba(255,255,255,0.03); }

.cal-detail-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cal-detail-name { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); flex: 1; }
.cal-detail-loc { font-size: 0.75rem; color: var(--text-secondary); }
.cal-detail-tier { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; flex-shrink: 0; }

@media (max-width: 768px) {
  .cal-cell { min-height: 60px; }
  .cal-month-title { font-size: 1.4rem; min-width: 180px; }
  .camps-calendar-view { padding: var(--space-sm); }
}
