@import url("styles.css");

/* Hillsborough-specific styles */
.sub-nav--hillsborough .sub-nav__inner li:nth-child(2),
.sub-nav--hillsborough .sub-nav__inner li:nth-child(3) {
  display: none;
}

@media (max-width: 393px) {
  .sub-nav--hillsborough .sub-nav__inner li:nth-child(2),
  .sub-nav--hillsborough .sub-nav__inner li:nth-child(3) {
    display: none;
  }
}

/* Club Roster Widget — IEEE Dark Theme */
:root {
  --navy: #615c68;
  --navy-mid: #4a4752;
  --slate: #8b8793;
  --slate-light: #a9a0b0;
  --cream: #1a1a1f;
  --white: #dddddd;
  --border: #3e3d42;
  --border-dark: #4a4752;
  --accent: #24849d;
  --accent-light: #d4e9f0;
  --amber: #c9956f;
  --amber-light: #e8d5c4;
  --success: #4caf7f;
}
.SchoolLogo-Hcc {
  max-width: 8rem;
  height: auto;
  margin: 1rem;
}

.roster-container {
  width: 100%;

  margin: 2rem 0;
  background: var(--cream);
  color: var(--white);
}

.roster-container h2 {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.subtitle {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 1.75rem;
}
.codingClub-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Member cards --- */
.grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));

  gap: 24px;
}

.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.5),
    0 1px 2px rgba(0, 0, 0, 0.2);
  transition: border-color 0.15s ease;
}
.pastClasses {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease;
}

.card:hover {
  border-color: var(--slate);
}

/* --- Avatars --- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
}
/* Avatar color (circle with intials)*/
/* add av-'color' then add to JS code to have more avatar color 
options */

.av-blue {
  background: rgba(36, 132, 157, 0.25);
  color: #6ec6d8;
}
.av-teal {
  background: rgba(97, 92, 104, 0.45);
  color: var(--slate-light);
}
.av-purple {
  background: rgba(74, 71, 82, 0.6);
  color: #c4bfcc;
}
.av-coral {
  background: rgba(235, 136, 66, 0.25);
  color: #dbb08e;
}
.av-amber {
  background: rgba(35, 191, 82, 0.2);
  color: #7ecfa9;
}

/* --- Name & badge (add a b- then position, then add color for that position.
then go in JS file and change that position to the class matching the position) --- */
.name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-family: "DM Sans", system-ui, sans-serif;
  padding: 2px 8px;
  border-radius: 99px;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.b-president {
  background: rgba(36, 132, 157, 0.2);
  color: rgb(151, 186, 238);
  border: 1px solid rgba(36, 132, 157, 0.35);
}
.b-analytics {
  color: rgb(21, 180, 69);
  background-color: rgb(32, 56, 42);
}
.b-lead {
  background: rgba(129, 10, 119, 0.2);
  color: #dbb08e;
  border: 1px solid rgba(194, 11, 176, 0.614);
}
.b-dev {
  background: rgba(11, 30, 203, 0.35);
  color: rgb(110, 166, 236);
  border: 1px solid var(--border);
}
.b-officer {
  background: rgba(201, 149, 111, 0.2);
  color: white;
  border: 1px solid rgba(201, 149, 111, 0.35);
}
.b-member {
  background: rgba(91, 25, 183, 0.35);
  color: var(--slate-light);
  border: 1px solid var(--border);
}
.b-treasurer {
  background: rgba(76, 175, 127, 0.15);
  color: #7ecfa9;
  border: 1px solid rgba(76, 175, 127, 0.3);
}
.b-secretary {
  background: rgba(97, 92, 104, 0.25);
  color: #c4bfcc;
  border: 1px solid var(--border);
}
.b-designer {
  background: rgba(254, 32, 69, 0.15);
  color: #e86069;
  border: 1px solid rgba(233, 97, 97, 0.3);
}

/* --- Divider --- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 1.75rem 0;
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .pin-input {
    width: 100%;
  }

  .row-form {
    flex-direction: column;
  }

  .row-form input,
  .row-form select {
    min-width: unset;
  }
}
