/* Component CSS - Extracted from calendar, teacher_grid, and classes_grid components */

/* ===== CALENDAR COMPONENT STYLES ===== */
.calendar table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-family: Montserrat, sans-serif;
}
.calendar tr.Past {
  opacity: 0.3;
}
.calendar td {
  padding: 0.5em 0;
}
.calendar td.date {
  width: 10em;
}
.calendar td.category {
  width: 8em;
  opacity: 0.5;
  font-size: 0.8em;
}
.calendar td.entry {
  padding-left: 1em;
}

/* ===== TEACHER GRID COMPONENT STYLES ===== */
/* Note: Teacher grid uses Tailwind classes, so no additional CSS needed */

/* ===== CLASSES GRID COMPONENT STYLES ===== */
*,
*:before,
*:after {
  box-sizing: border-box;
}

.classGridHolder {
  width: 100%;
  max-width: 1200px;
}

.classGridControls {
  font-family: "Montserrat";
  margin: 0 0 2rem;
  display: flex;
  justify-content: space-between;
}

.classGridControls select {
  font-size: 1rem;
  margin-left: 0.25em;
  -webkit-appearance: menulist;
}

.classGridControls .showAll {
  color: #0189be;
  text-decoration: underline;
  font-family: "Montserrat";
  cursor: pointer;
}

.typeButtons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  max-width: 1200px;
}

.typeButtons .typeButton {
  padding: 1.5em 3em;
  width: 32%;
  color: #555;
  text-align: center;
  font-family: "Montserrat";
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 0.85rem;
  letter-spacing: .15rem;
  text-transform: uppercase;
  text-decoration: none;
  color: white;
  background-color: #0189be;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
}

.typeButtons .typeButton:disabled,
.typeButtons .typeButton[disabled] {
  opacity: 0.5;
}

.typeButtons .typeButton.active {
  color: white;
  background: #0189be;
  border: 1px solid #0189be;
}

.fade-enter-active,
.fade-leave-active {
  transition: opacity .3s ease;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

.myGrid {
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.myGrid.hide {
  opacity: 0;
}

.myGrid .item {
  background: #888;
  overflow: hidden;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2);
}

.myGrid .item:hover .strap {
  color: white;
  background: #0189be;
}

.myGrid .item:hover .strap .bottomLine {
  color: white;
}

.myGrid .item a {
  text-decoration: none;
}

.myGrid .item img {
  width: 100%;
  display: block;
}

.myGrid .item .strap {
  font-family: "Montserrat";
  font-size: 0.8rem;
  font-weight: 700;
  color: #555;
  background: #f2f2f2;
  padding: 0.625rem 0.75rem;
  width: 100%;
  height: 3.5rem;
}

.myGrid .item .strap div {
  margin: 0;
  padding: 0;
  line-height: 1.125rem;
}

.myGrid .item .strap .topLine {
  display: flex;
  justify-content: space-between;
}

.myGrid .item .strap .topLine span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.myGrid .item .strap .topLine .topLineAges {
  flex-shrink: 0;
  padding-left: 0.5em;
}

.myGrid .item .strap .bottomLine {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-weight: 500;
}

.myGrid .item .strap .bottomLine .unavailable {
  opacity: 0.3;
}

.mySummary {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.mySummary.hide {
  opacity: 0;
}

.mySummary .item {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.mySummary .item button {
  background: #0189be;
  border: none;
  border-radius: 0.25em;
  box-shadow: none;
  color: white;
  padding: 0.75em 1.5em;
  font-size: 1em;
}

.mySummary .item .classImage {
  max-width: 25%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mySummary .item .classImage a {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mySummary .item .classImage img {
  width: 100%;
  height: intrinsic;
  display: block;
  border-radius: 0.25em;
}

.mySummary .item .classImage button {
  width: 100%;
}

.mySummary .item .classDetails {
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-family: "Montserrat";
  font-size: 1rem;
  font-weight: 500;
  color: #555;
  background: white;
  width: 100%;
}

.mySummary .item .classDetails .unavailable {
  opacity: 0.3;
}

.mySummary .item .classDetails button {
  width: auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media only screen and (min-width: 1011px) {
  .mySummary .item .classImage button {
    display: initial;
  }
  .mySummary .item .classDetails button {
    display: none;
  }
}

@media only screen and (max-width: 1010px) {
  .myGrid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mySummary .item .classImage button {
    display: initial;
  }
  .mySummary .item .classDetails button {
    display: none;
  }
}

@media only screen and (max-width: 700px) {
  .myGrid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mySummary .item .classImage button {
    display: initial;
  }
  .mySummary .item .classDetails button {
    display: none;
  }
}

@media only screen and (max-width: 500px) {
  .typeButtons {
    flex-direction: column;
    margin-bottom: 1em;
  }
  .typeButtons .typeButton {
    width: 100%;
    margin-bottom: 1em;
  }
  .mySummary .item {
    flex-direction: column;
  }
  .mySummary .item .classImage {
    max-width: 100%;
  }
  .mySummary .item .classImage button {
    display: none;
  }
  .mySummary .item .classDetails {
    font-size: 1rem;
  }
  .mySummary .item .classDetails button {
    display: initial;
    width: 100%;
  }
}

@media only screen and (max-width: 320px) {
  .myGrid {
    grid-template-columns: 1fr;
  }
}
