/**
 * E02_U07_1 – Bilderrätsel: Lieblingsfächer. (FI)
 * Slike + stavek z vpisi. Ena žarnica odpre pomoč (slika 007). 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-style: normal;
  font-display: swap;
}

.exercise-container {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  font-family: "League Spartan", sans-serif;
  box-sizing: border-box;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.help-bulb-wrap {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  z-index: 15;
}

.bulb-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.2s ease;
}

.bulb-button:hover {
  transform: scale(1.1);
}

.bulb-icon {
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0.85;
  display: block;
}

.puzzle-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 0.75rem 1rem;
  padding-top: 2.5rem;
  padding-bottom: 1rem;
  align-items: center;
}

.puzzle-item {
  display: contents;
}

.puzzle-image {
  width: 12rem;
  height: 9rem;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.4rem rgba(0, 0, 0, 0.1);
}

.puzzle-sentence {
  min-width: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: #333;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem 0.35rem;
  font-family: "League Spartan", sans-serif;
  text-align: left;
}

.fill-in {
  width: 6.5rem;
  min-width: 5rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 1rem;
  font-family: "League Spartan", sans-serif;
  border: 0.2rem solid #F9B002;
  border-radius: 1.25rem;
  text-align: center;
  background-color: #fff;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

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

.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;
}

/* Popup pomoči – besedilo (seznam besed) */
.help-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

.help-popup.is-open {
  pointer-events: auto;
}

/* Popup ob žarnici (desno zgoraj) – brez drsnika, gumb × vedno viden */
.help-popup .popup-content {
  position: fixed;
  top: 5.5rem;
  right: 26rem;
  background-color: #fff;
  padding: 0.75rem 1.25rem 1rem;
  padding-top: 2.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  width: 11rem;
  overflow: visible;
}

.popup-help-text {
  font-family: "League Spartan", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

/* Ena beseda na vrstico, brez senčenja (čisto besedilo) */
.popup-help-text span {
  display: block;
  background: none;
  padding: 0;
  border-radius: 0;
}

.close-popup {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 20;
  background: #fff;
  border: 0.1rem solid #ccc;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
}

