/* ==========================================================================
   1. DESIGN SYSTEM & VARIABLER
   ========================================================================== */
.lighting-terms {
  --term-accent: #28c59d;
  --term-light: #5ce1b7;
  --term-card: rgba(255, 255, 255, 0.045);
  --term-line: rgba(92, 225, 183, 0.2);
}

/* ==========================================================================
   2. HERO SEKTION
   ========================================================================== */
.terms-hero {
  margin: 1rem 0 1.25rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border: 1px solid var(--term-line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(40, 197, 157, 0.17), rgba(15, 23, 42, 0.3));
}

.terms-hero__label {
  display: inline-block;
  margin-bottom: 0.65rem;
  color: var(--term-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.terms-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  line-height: 1.12;
}

.terms-hero p {
  max-width: 720px;
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   3. SØGEFELT & EKSEMPLER
   ========================================================================== */
.terms-search-box {
  margin: 1.25rem 0 0.65rem;
  padding: 1rem;
  border: 1px solid var(--term-line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.35);
}

.terms-search-box label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 700;
}

.terms-search-box input {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 0.8rem 1rem;
  border: 1px solid var(--term-line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.75);
  color: inherit;
  font: inherit;
  outline: none;
}

.terms-search-box input:focus {
  border-color: var(--term-accent);
  box-shadow: 0 0 0 3px rgba(40, 197, 157, 0.13);
}

.search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.search-examples button {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--term-line);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.search-examples button:hover {
  border-color: var(--term-accent);
  background: rgba(40, 197, 157, 0.13);
  color: var(--term-light);
}

/* ==========================================================================
   4. LISTE & STATUS
   ========================================================================== */
.terms-count {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

.terms-list {
  display: grid;
  gap: 0.7rem;
}

.terms-empty {
  margin: 1rem 0;
  padding: 1.2rem;
  border: 1px solid var(--term-line);
  border-radius: 14px;
  background: rgba(40, 197, 157, 0.07);
  text-align: center;
}

.terms-empty p {
  margin: 0.35rem 0 0;
}

/* ==========================================================================
   5. TERM KORT (DETAILS / SUMMARY)
   ========================================================================== */
.term-card {
  overflow: hidden;
  border: 1px solid var(--term-line);
  border-radius: 14px;
  background: var(--term-card);
}

.term-card[hidden] {
  display: none;
}

.term-card summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.term-card summary::-webkit-details-marker {
  display: none;
}

/* +/- Ikoner */
.term-card summary:after {
  content: "+";
  margin-left: .25rem;
  color: var(--term-light);
  font-size: 1.5rem;
}

.term-card[open] summary:after {
  content: "−";
}

/* Elementer indeni kortet */
.term-number {
  display: grid;
  flex: 0 0 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: rgba(40, 197, 157, 0.14);
  color: var(--term-light);
  font-size: 0.75rem;
  font-weight: 800;
}

.term-title {
  font-size: clamp(1rem, 3vw, 1.15rem);
  font-weight: 800;
}

.term-short {
  margin-left: auto;
  color: var(--term-light);
  font-size: 0.86rem;
  font-weight: 700;
}

/* ==========================================================================
   6. INDHOLD I KORT (SVAR & FORMEL)
   ========================================================================== */
.term-answer {
  padding: 0 1.1rem 1.2rem 3.95rem;
}

.term-answer p {
  margin: 0.2rem 0 0.8rem;
  line-height: 1.7;
}

.term-answer ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 1rem;
  padding-left: 1.2rem;
}

.term-answer li {
  padding-left: 0.15rem;
  line-height: 1.55;
}

.term-answer li::marker {
  color: var(--term-accent);
}

.formula {
  display: inline-block;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--term-accent);
  border-radius: 0 8px 8px 0;
  background: rgba(40, 197, 157, 0.08);
  font-weight: 700;
}

/* ==========================================================================
   7. RESPONSIVT DESIGN (MOBIL)
   ========================================================================== */
@media (max-width: 650px) {
  .term-answer {
    padding-left: 1.1rem;
  }
  
  .term-card summary {
    gap: 0.6rem;
  }
  
  .term-short {
    font-size: 0.75rem;
  }
}
