/* Workshops Page - Bold Typography Experiment */

.page--workshops-list {
  display: grid;
  gap: 2rem;
}

.page-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 4rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
}

.page-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(226, 227, 234, 0.8);
  max-width: 65ch;
}

/* Workshops Index Container */
.workshops-index {
  display: grid;
  gap: 5rem;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}

/* Workshop Groups (by year/status) */
.workshops-group {
  display: grid;
  gap: 2rem;
}

.workshops-group__title {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 227, 234, 0.75);
  margin: 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Workshop List */
.workshops-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4rem;
}

.workshops-list__item {
  margin: 0;
}

.workshop-item {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* Workshop Link */
.workshop-link {
  display: grid;
  gap: 0.5rem;
  justify-items: center;
  text-align: center;
}

.workshop-link__title {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
  color: rgba(226, 227, 234, 0.95);
  transition: color var(--transition-base), transform var(--transition-base);
  flex: 1 1 auto;
  text-decoration: none;
  min-width: 0;
  overflow-wrap: break-word;
  white-space: normal;
  display: inline;
}

.workshop-link__title:hover {
  color: var(--accent-primary);
  transform: translateX(0.5rem);
}

.workshop-link__title:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 4px;
}

.workshop-link__title-indent {
  padding-left: 0;
}

.workshop-link__title-nowrap {
  white-space: nowrap;
}

.workshop-link__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(226, 227, 234, 0.6);
  margin-bottom: 0.25rem;
  padding-top: 0.5rem;
}

.workshop-link__separator {
  color: rgba(226, 227, 234, 0.75);
}

.workshop-link__date {
  color: rgba(226, 227, 234, 0.8);
}

.workshop-link__status {
  color: rgba(226, 227, 234, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.workshop-link__badge {
  color: rgba(226, 227, 234, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
}

.workshop-link__badge--upcoming {
  color: var(--accent-primary);
  font-weight: 700;
}

.workshop-link__projects {
  color: var(--accent-hover);
  font-weight: 600;
}

/* Project Count Tag */
.workshop-count-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  font-weight: 600;
  font-size: inherit;
  display: inline-flex;
  align-items: center;
  color: rgba(226, 227, 234, 0.75);
}

/* No Projects Empty State */
.workshop-link__no-projects {
  color: rgba(226, 227, 234, 0.75);
  font-style: italic;
  font-size: 0.75rem;
}

/* Workshop Projects */
.workshop-projects {
  text-align: left;
  border-left: 1px solid rgba(226, 227, 234, 0.1);
  padding-left: 2rem;
}

.workshop-projects__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.workshop-projects__item {
  margin: 0;
}

.workshop-projects__link {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0;
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-base), transform var(--transition-base);
  line-height: 1.5;
}

.workshop-projects__link:hover {
  transform: translateX(4px);
}

.workshop-projects__link:hover .workshop-projects__title {
  color: var(--accent-primary);
}

/* Heading items (clickable article headings - link to workshop detail with anchor) */
.workshop-projects__link--heading .workshop-projects__title {
  font-weight: 500;
  font-style: italic;
}

.workshop-projects__link--heading .workshop-projects__title::before {
  content: '"';
}

.workshop-projects__link--heading .workshop-projects__title::after {
  content: '"';
}

/* Line 1: Title + Year */
.workshop-projects__line1 {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.workshop-projects__title {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(226, 227, 234, 0.9);
  transition: color var(--transition-base);
}

.workshop-projects__year {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(226, 227, 234, 0.7);
  white-space: nowrap;
}

/* Line 2: Genre + Duration Bar + Duration + Location */
.workshop-projects__line2 {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(226, 227, 234, 0.75);
}

.workshop-projects__genre {
  font-weight: 500;
  color: rgba(226, 227, 234, 0.85);
}

.workshop-projects__duration-bar {
  font-family: monospace;
  letter-spacing: 0.05em;
  color: rgba(226, 227, 234, 0.3);
  font-size: 0.75rem;
}

.workshop-projects__duration {
  font-weight: 400;
  color: rgba(226, 227, 234, 0.75);
}

.workshop-projects__meta {
  font-weight: 400;
  color: rgba(226, 227, 234, 0.75);
}

.workshop-projects__details {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(226, 227, 234, 0.75);
}

.workshop-projects__location-marker {
  color: rgba(226, 227, 234, 0.5);
  font-weight: 400;
}

.workshop-projects__location {
  font-weight: 400;
  color: rgba(226, 227, 234, 0.75);
}

/* Line 3: Tags & Quotes */
.workshop-projects__line3 {
  display: block;
  font-size: 0.75rem;
  line-height: 1.4;
}

.workshop-projects__tags {
  color: rgba(226, 227, 234, 0.6);
  font-weight: 400;
  word-spacing: 0.25em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workshop-projects__quote {
  color: rgba(226, 227, 234, 0.7);
  font-weight: 400;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Empty State - No Workshops */
.workshops-empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(226, 227, 234, 0.6);
  margin-top: 2rem;
}

.workshops-empty p {
  margin: 0;
  font-size: 1.05rem;
}

/* Light Theme */
html[data-theme="light"] .page-intro {
  color: rgba(47, 50, 68, 0.8);
}

html[data-theme="light"] .workshops-group__title {
  color: rgba(32, 36, 52, 0.75);
  border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .workshop-link__title {
  color: rgba(32, 36, 52, 0.95);
}

html[data-theme="light"] .workshop-link__title:hover {
  color: var(--accent-primary);
}

html[data-theme="light"] .workshop-link__no-projects {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-link__meta {
  color: rgba(32, 36, 52, 0.6);
}

html[data-theme="light"] .workshop-link__separator {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-link__date {
  color: rgba(32, 36, 52, 0.8);
}

html[data-theme="light"] .workshop-link__status {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-link__badge {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-link__badge--upcoming {
  color: var(--accent-primary);
}

html[data-theme="light"] .workshop-link__projects {
  color: var(--accent-hover);
}

html[data-theme="light"] .workshop-count-tag {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-projects {
  border-left-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .workshop-projects__link:hover .workshop-projects__title {
  color: var(--accent-primary);
}

html[data-theme="light"] .workshop-projects__link--heading .workshop-projects__title {
  font-weight: 500;
}

html[data-theme="light"] .workshop-projects__title {
  color: rgba(32, 36, 52, 0.9);
  transition: color 0.2s ease;
}

html[data-theme="light"] .workshop-projects__year {
  color: rgba(32, 36, 52, 0.7);
}

html[data-theme="light"] .workshop-projects__line2 {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-projects__genre {
  color: rgba(32, 36, 52, 0.85);
}

html[data-theme="light"] .workshop-projects__duration-bar {
  color: rgba(32, 36, 52, 0.25);
}

html[data-theme="light"] .workshop-projects__duration {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-projects__meta {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-projects__details {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-projects__location-marker {
  color: rgba(32, 36, 52, 0.5);
}

html[data-theme="light"] .workshop-projects__location {
  color: rgba(32, 36, 52, 0.75);
}

html[data-theme="light"] .workshop-projects__tags {
  color: rgba(32, 36, 52, 0.6);
}

html[data-theme="light"] .workshop-projects__quote {
  color: rgba(32, 36, 52, 0.7);
}

html[data-theme="light"] .workshops-empty {
  border-color: rgba(0, 0, 0, 0.12);
  background: rgba(0, 0, 0, 0.02);
  color: rgba(32, 36, 52, 0.8);
}

/* Below LG (1024px) */
@media (max-width: 63.99rem) {
  .workshops-index {
    max-width: 100%;
    gap: 4rem;
  }

  .workshops-list {
    gap: 3rem;
  }

  .workshop-link__title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
}

/* Below SM (640px) */
@media (max-width: 39.99rem) {
  .page-header h1 {
    font-size: 2rem;
  }

  .page-header {
    margin-bottom: 3rem;
  }

  .workshops-index {
    gap: 3rem;
  }

  .workshops-group {
    gap: 1.5rem;
  }

  .workshops-list {
    gap: 2.5rem;
  }

  .workshop-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .workshop-link__title {
    font-size: clamp(1.75rem, 6vw, 2rem);
    letter-spacing: -0.015em;
    line-height: 1.2;
  }

  .workshop-link__title-indent {
    padding-left: 0;
  }

  .workshop-link__title-nowrap {
    white-space: normal;
  }

  .workshop-link__meta {
    font-size: 0.75rem;
    white-space: normal;
  }

  .workshop-projects {
    border-left: none;
    padding-left: 0;
  }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .workshop-link__title {
    transition: none !important;
  }

  .workshop-projects__link {
    transition: none !important;
  }
}
