/* ==========================================
   SCHEDULE PAGE - Custom Styles
   ========================================== */

/* Hero Section with Background Image - Same as Side Events */
.mission--with-bg {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4xl) 0;
}

/* Fix: Account for fixed navbar - add extra top padding to balance visual spacing */
.mission--header-offset.mission--with-bg {
  padding-top: calc(var(--space-4xl) + 60px);
}

/* Mobile/Tablet: Increase top offset significantly for visual balance */
@media (max-width: 1024px) {
  .mission--header-offset.mission--with-bg {
    padding-top: calc(var(--space-4xl) + 120px); /* Much larger offset for mobile balance */
  }
}

.mission__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.6;
  z-index: 0;
}

/* Ensure content is above background */
.mission--with-bg .container {
  position: relative;
  z-index: 2;
}

/* Darken the background for better text readability */
.mission--with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(243, 27, 248, 0.15) 0%, rgba(10, 10, 15, 0.75) 100%);
  z-index: 1;
}

/* Schedule content section - add padding/spacing */
#schedule-content {
  padding: var(--space-4xl) 0;
}

#schedule-content .container {
  max-width: 1280px;
  margin: 0 auto;
}

/* Year filter spacing on schedule page */
#schedule-content .year-filter {
  margin-bottom: var(--space-3xl);
}

/* Schedule grid */
.schedule__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

/* Schedule grid placeholder */
.schedule__placeholder {
  text-align: center;
  color: var(--color-text-secondary);
  font-size: var(--text-lg);
  padding: var(--space-4xl) 0;
}

/* ==========================================
   SCHEDULE CARD TIME ADJUSTMENT
   Make time font slightly smaller than title
   ========================================== */

.schedule-card__time-main {
  font-size: var(--text-xl) !important;
}

.schedule-card__title {
  font-size: var(--text-2xl) !important;
}

/* ==========================================
   SPEAKER BUTTON OVERRIDES FOR SCHEDULE CARDS
   Remove unwanted green outlines and hover effects
   ========================================== */

/* Align entire speaker section vertically - photo centered with text */
.schedule-speaker {
  align-items: center !important; /* Center photo vertically with text */
  gap: var(--space-md) !important; /* Gap between photo and text info */
  display: flex !important;
  flex-direction: row !important;
  margin: 0 !important;
  padding: 0 0 var(--space-md) 0 !important; /* Add padding at bottom */
  margin-bottom: var(--space-md) !important; /* Space before location/description */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important; /* Subtle divider line */
}

/* Speaker photo - center vertically */
.schedule-speaker__photo {
  align-self: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Ensure speaker info container is left-aligned */
.schedule-speaker__info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left !important;
  gap: 0 !important; /* Remove all gap between name and title */
  justify-content: center !important; /* Center content vertically */
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove ALL spacing from buttons */
.schedule-speaker__name.speaker-card-bem__button,
.schedule-speaker__role.speaker-card-bem__button {
  margin: 0 !important;
  padding: 0 !important;
}

/* Speaker name styling: pink, bold, left aligned, BIGGER */
.schedule-speaker__name.speaker-card-bem__button {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  font-size: var(--text-lg) !important;
  line-height: 1.2 !important;
}

/* Speaker title/role styling: white, left aligned - TINY controlled gap */
.schedule-speaker__role.speaker-card-bem__button {
  color: var(--color-text) !important;
  font-weight: 400 !important;
  transition: color var(--transition-fast) !important;
  margin-top: 4px !important; /* Tiny 4px gap */
  line-height: 1.4 !important;
}

/* Remove green border/outline from speaker name and title buttons */
.schedule-speaker__name.speaker-card-bem__button,
.schedule-speaker__role.speaker-card-bem__button {
  border: none !important;
  background: transparent !important;
  text-align: left !important;
  width: 100% !important;
}

/* FORCE speaker title to turn green on hover */
.schedule-card .schedule-speaker .schedule-speaker__role.speaker-card-bem__button:hover,
.schedule-speaker__role.speaker-card-bem__button:hover,
button.schedule-speaker__role:hover {
  color: var(--color-secondary) !important;
}

/* Remove hover effects on name and title: no background change, no transform */
.schedule-speaker__name.speaker-card-bem__button:hover {
  background: transparent !important;
  transform: none !important;
}

.schedule-speaker__role.speaker-card-bem__button:hover {
  background: transparent !important;
  transform: none !important;
}

/* Keep hover color on name - turns GREEN on hover */
.schedule-speaker__name.speaker-card-bem__button:hover {
  color: var(--color-secondary) !important; /* Green instead of pink */
}

/* Multiple selectors to force speaker name green on hover */
.schedule-card .schedule-speaker .schedule-speaker__name.speaker-card-bem__button:hover,
button.schedule-speaker__name:hover {
  color: var(--color-secondary) !important;
}

/* ==========================================
   SPEAKER PHOTO STYLING
   Round photos with pink outline that turns green on hover
   ========================================== */

/* Read More Button */
.schedule-card__read-more {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.schedule-card__read-more:hover {
  background: var(--color-primary);
  color: white;
}

.schedule-card__read-more:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Description Modal */
.description-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.description-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.description-modal__content {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.description-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--color-primary-20);
}

.description-modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  padding-right: var(--space-lg);
}

.description-modal__close {
  background: none;
  border: none;
  font-size: var(--text-2xl);
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: var(--space-sm);
  line-height: 1;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.description-modal__close:hover {
  color: var(--color-primary);
}

.description-modal__close:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.description-modal__body {
  padding: var(--space-xl);
  overflow: auto;
}

.description-modal__text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.description-modal__text strong {
  color: var(--color-text);
  font-weight: 600;
}

.description-modal__text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.description-modal__text a:hover {
  color: var(--color-secondary);
}

/* Make photo container perfectly square and round with pink outline */
.schedule-speaker__photo {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  border: 3px solid var(--color-primary) !important;
  transition: border-color var(--transition-fast) !important;
  overflow: hidden !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Make the actual image fill the container perfectly */
.schedule-speaker__photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  border-radius: 50% !important;
}

/* Green outline on hover */
.schedule-speaker__photo:hover {
  border-color: var(--color-secondary) !important;
  transform: none !important;
}

/* Tablet: Shrink tabs to fit all on one line */
@media (max-width: 1024px) and (min-width: 769px) {
  #schedule-content .year-filter__button {
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
  }
  
  /* Reduce container side padding on tablet */
  #schedule-content .container {
    padding-inline: var(--space-md) !important;
  }
  
  /* THREE columns on tablet for more compact layout */
  .schedule__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
  }
  
  /* Compact tablet cards */
  .schedule-card {
    padding: var(--space-md) !important;
  }
  
  /* Smaller text on tablet */
  .schedule-card__time-main {
    font-size: var(--text-base) !important;
  }
  
  .schedule-card__title {
    font-size: var(--text-base) !important;
    margin-bottom: var(--space-sm) !important;
  }
  
  /* Smaller speaker photo */
  .schedule-speaker__photo {
    width: 50px !important;
    height: 50px !important;
  }
  
  /* Fix photo vertical alignment */
  .schedule-speaker {
    align-items: center !important;
  }
  
  .schedule-speaker__info {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  
  /* Smaller speaker text */
  .schedule-speaker__name.speaker-card-bem__button {
    font-size: var(--text-sm) !important;
  }
  
  .schedule-speaker__role.speaker-card-bem__button {
    font-size: var(--text-xs) !important;
  }
  
  /* Smaller description */
  .schedule-card__description {
    font-size: var(--text-sm) !important;
  }
  
  .schedule-card__location {
    font-size: var(--text-xs) !important;
  }
}

/* Mobile: Stack tabs vertically */
@media (max-width: 768px) {
  #schedule-content .year-filter {
    flex-direction: column;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-2xl);
    padding: 0;
    gap: 0;
  }
  
  #schedule-content .year-filter__button {
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid var(--color-primary);
  }
  
  /* First button - round top corners */
  #schedule-content .year-filter__button:first-child {
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
  }
  
  /* Last button - round bottom corners, no bottom border */
  #schedule-content .year-filter__button:last-child {
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    border-bottom: none;
  }
  
  /* MOBILE: Reduce container padding to make cards wider */
  #schedule-content .container {
    padding-inline: var(--space-xs) !important; /* Even less padding for 2 columns */
  }
  
  /* MOBILE: TWO columns with minimal gap */
  .schedule__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs); /* Smaller gap between cards */
  }
  
  /* Compact card with minimal padding */
  .schedule-card {
    padding: var(--space-md) !important;
  }
  
  /* Smaller time with less bottom margin */
  .schedule-card__time-main {
    font-size: var(--text-base) !important;
    margin-bottom: 4px !important;
  }
  
  /* Reduce header margin */
  .schedule-card__header {
    margin-bottom: var(--space-sm) !important;
  }
  
  /* Smaller title */
  .schedule-card__title {
    font-size: var(--text-base) !important;
    font-weight: 600 !important;
    margin-bottom: var(--space-sm) !important;
    line-height: 1.3 !important;
  }
  
  /* Speaker section: HORIZONTAL layout on mobile (photo left, text right) */
  .schedule-speaker {
    flex-direction: row !important;
    align-items: center !important;
    padding-bottom: var(--space-sm) !important;
    margin-bottom: var(--space-sm) !important;
    gap: var(--space-sm) !important;
  }
  
  /* Smaller photo on left */
  .schedule-speaker__photo {
    width: 50px !important;
    height: 50px !important;
    flex-shrink: 0 !important;
    align-self: center !important;
  }
  
  /* Speaker info stays left-aligned and vertically centered */
  .schedule-speaker__info {
    text-align: left !important;
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }
  
  /* Smaller speaker name */
  .schedule-speaker__name.speaker-card-bem__button {
    font-size: var(--text-sm) !important;
    text-align: left !important;
  }
  
  /* Smaller speaker role */
  .schedule-speaker__role.speaker-card-bem__button {
    font-size: var(--text-xs) !important;
    line-height: 1.3 !important;
    text-align: left !important;
    margin-top: 2px !important;
  }
  
  /* Smaller description */
  .schedule-card__description {
    font-size: var(--text-sm) !important;
    line-height: 1.5 !important;
  }
  
  /* Smaller location */
  .schedule-card__location {
    font-size: var(--text-xs) !important;
    margin-bottom: var(--space-sm) !important;
  }
}

/* Extra small phones - even more compact */
@media (max-width: 480px) {
  /* Even less side padding */
  #schedule-content .container {
    padding-inline: var(--space-xs) !important;
  }
  
  .schedule__grid {
    gap: var(--space-sm);
  }
  
  .schedule-card {
    padding: var(--space-sm) !important;
  }
  
  .schedule-card__time-main {
    font-size: var(--text-sm) !important;
  }
  
  .schedule-card__title {
    font-size: var(--text-sm) !important;
  }
  
  .schedule-speaker__photo {
    width: 45px !important;
    height: 45px !important;
  }
  
  .schedule-speaker__name.speaker-card-bem__button {
    font-size: var(--text-xs) !important;
  }
  
  .schedule-speaker__role.speaker-card-bem__button {
    font-size: 10px !important;
  }
  
  .schedule-card__description {
    font-size: var(--text-xs) !important;
  }
}