/* ============================================================
   Dombokslexikon plugin - frontend styles
   ============================================================ */

.df-lex-root {
  max-width: 100%;
  margin: 20px 0;
}

.df-lex-intro {
  background: #fdf6e3;
  border-left: 4px solid #800000;
  padding: 14px 18px;
  margin: 0 0 24px 0;
  border-radius: 4px;
}

.df-lex-intro p {
  margin: 0;
}

/* Sökfält */
.df-lex-controls {
  margin: 20px 0;
}

.df-lex-controls input[type="search"] {
  width: 100%;
  max-width: 500px;
  padding: 12px 18px;
  font-size: 1em;
  border: 2px solid #ddd;
  border-radius: 4px;
  background: #fff;
}

.df-lex-controls input[type="search"]:focus {
  border-color: #800000;
  outline: none;
}

/* Alfabetisk navigering */
.df-lex-alphabet {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0 30px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
}

.df-lex-alphabet a {
  display: inline-block;
  min-width: 32px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  color: #800000;
  transition: all 0.15s;
}

.df-lex-alphabet a:hover,
.df-lex-alphabet a:focus {
  background: #800000;
  color: #fff;
  border-color: #800000;
}

/* Sektioner per bokstav */
.df-lex-section {
  margin: 30px 0;
}

.df-lex-letter {
  font-size: 2em;
  color: #800000;
  border-bottom: 3px solid #800000;
  padding-bottom: 6px;
  margin: 30px 0 16px 0;
  position: sticky;
  top: 0;
  background: #fff;
}

/* Termlista */
.df-lex-terms {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 700px) {
  .df-lex-terms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.df-lex-item {
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-left: 3px solid #800000;
  border-radius: 4px;
  min-width: 0;
}

.df-lex-term-link {
  display: block;
  text-decoration: none;
  color: #800000;
  font-size: 1.1em;
  margin-bottom: 4px;
}

.df-lex-term-link:hover {
  color: #b00000;
}

.df-lex-term-link strong {
  font-weight: 700;
}

.df-lex-synonyms {
  font-size: 0.85em;
  color: #888;
  font-weight: normal;
  font-style: italic;
}

.df-lex-summary {
  display: block;
  font-size: 0.93em;
  color: #555;
  line-height: 1.5;
  margin-top: 4px;
}

/* "Inga resultat" */
.df-lex-noresults {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* === SINGLE TERM PAGE === */
.df-lex-single {
  max-width: 100%;
}

.df-lex-synonyms-line {
  background: #f4f1e8;
  padding: 10px 14px;
  border-radius: 4px;
  margin: 0 0 20px 0;
  font-size: 0.95em;
}

.df-lex-content {
  margin: 20px 0;
  line-height: 1.7;
}

.df-lex-see-also {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
  padding: 14px 18px;
  margin: 24px 0;
  border-radius: 4px;
}

.df-lex-see-also h3 {
  margin: 0 0 8px 0;
  font-size: 1em;
  color: #1e3a8a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.df-lex-see-also ul {
  margin: 0;
  padding-left: 20px;
}

.df-lex-sources {
  background: #f5f5f5;
  padding: 14px 18px;
  margin: 24px 0;
  border-radius: 4px;
  font-size: 0.93em;
}

.df-lex-sources h3 {
  margin: 0 0 8px 0;
  font-size: 1em;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.df-lex-back {
  margin: 30px 0 0 0;
  padding-top: 16px;
  border-top: 1px solid #ddd;
}

.df-lex-back a {
  color: #800000;
  text-decoration: none;
  font-weight: 500;
}

.df-lex-back a:hover {
  text-decoration: underline;
}

/* === INLINE LINK === */
.df-lex-inline {
  color: #800000;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  cursor: help;
}

.df-lex-inline:hover {
  text-decoration-style: solid;
}
