/**
 * E08_U09_1 – Wer hat welche Hobbys? (FI)
 * Tabela po skici: stolpec Name (rowspan 3), Bild (koda/slika), Aktivität (besedilo ali fill-in).
 * Pisava iz assets/fonts.
 */

@font-face {
  font-family: "League Spartan";
  src: url("../assets/fonts/LeagueSpartan-VariableFont_wght.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 100%;
  font-style: normal;
  font-display: swap;
}

.exercise-container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  font-family: "League Spartan", sans-serif;
  padding-bottom: 2rem;
}

.intro-text {
  margin-bottom: 0.8rem;
  padding: 0.5rem 0.8rem;
  background-color: #f5f5f5;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.25;
  color: #333;
  column-count: 2;
  column-gap: 2rem;
}

.intro-text p {
  margin: 0 0 0.15rem 0;
  break-inside: avoid;
}

.intro-text p:last-child {
  margin-bottom: 0;
}

.table-wrapper {
  width: 100%;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  flex-wrap: nowrap;
  justify-content: center;
}

.table-column {
  flex: 0 1 auto;
  min-width: 24rem;
  background-color: #fff;
  border-radius: 0.5rem;
  border: 0.1rem solid #ddd;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.08);
}

.hobby-table {
  width: auto;
  border-collapse: collapse;
  font-size: 1rem;
  table-layout: auto;
}

.hobby-table th,
.hobby-table td {
  padding: 0.35rem 0.5rem;
  border: 0.1rem solid #e0e0e0;
  vertical-align: middle;
}

.hobby-table thead th {
  font-weight: bold;
  color: #00699F;
  background-color: #fff;
  border-bottom: 0.2rem solid #00699F;
  text-align: left;
}

.col-name {
  width: 6.5rem;
}

.col-code {
  width: 4.5rem;
}

.col-activity {
  width: 34ch;
  min-width: 34ch;
}

.cell-name {
  font-weight: 500;
  color: #333;
  width: 6.5rem;
  vertical-align: middle;
}

.cell-image {
  width: 4.5rem;
  text-align: center;
}

.cell-image img {
  max-width: 100%;
  width: 2rem;
  height: auto;
  max-height: 4rem;
  object-fit: contain;
  border-radius: 0.4rem;
  display: block;
  margin: 0 auto;
}

.cell-activity {
  color: #333;
  width: 34ch;
  min-width: 34ch;
  white-space: nowrap;
}

.cell-activity .fill-in {
  width: 34ch;
  max-width: 34ch;
  min-width: 34ch;
  display: inline-block;
}

.fill-in {
  width: auto;
  max-width: 20ch;
  min-width: 8ch;
  height: 1.75rem;
  padding: 0 0.4rem;
  font-size: 0.95rem;
  font-family: "League Spartan", sans-serif;
  border: 0.15rem solid #F9B002;
  border-radius: 0.8rem;
  background-color: #fff;
  box-sizing: border-box;
}

.fill-in-name {
  width: 8ch;
  max-width: 10ch;
  min-width: 8ch;
}

.fill-in:focus {
  outline: none;
  border-color: #00699f;
  box-shadow: 0 0 0.25rem rgba(0, 105, 159, 0.35);
}

.fill-in.correct {
  background-color: rgba(37, 129, 116, 0.1);
  border-color: #258174;
}

.fill-in.incorrect {
  background-color: rgba(255, 0, 0, 0.08);
  border-color: #e00;
}
