/* ============================================================
   bevischat.css
   Stylesheet til bevischat-skabelon (andersmichaelnielsen.com)
   Selvbaerende: indeholder de noedvendige basisregler fra
   aug-20.css + den nye tre-kolonne bevis/transskription/chat-layout.
   ============================================================ */

/* ---------- BASIS ---------- */
html, body { height: 100%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  line-height: 180%;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #171717;
  background: #ffffff;
}

h1 { font-size: 19px; line-height: 1.3; color: #003755; }
h2 { font-size: 16px; line-height: 1.3; }
h3 { font-size: 15px; font-weight: bold; line-height: 1.3; }
h1, h2, h3 { margin-top: 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-weight: bold; }

a { color: #0066cc; }

.container { width: 1200px; margin: 0 auto; }
#page { overflow: hidden; margin-bottom: 10px; padding-top: 10px; }

.breadcrumb-home { font-size: 13px; margin-bottom: 10px; }
.breadcrumb-home a { color: #0066cc; text-decoration: none; }
.breadcrumb-home a:hover { text-decoration: underline; }

/* ---------- INTRO ---------- */
.top-section {
  width: 100%;
  margin-top: 30px;
  table-layout: fixed;
  border-spacing: 10px 0;
}
.left-column {
  width: 240px;
  vertical-align: top;
  padding: 16px;
  background-color: #f7f9fb;
  border-radius: 8px;
}
.right-column {
  width: auto;
  vertical-align: top;
  padding: 30px;
  background-color: #f0f8ff;
  border-radius: 8px;
}
.right-column table td { vertical-align: top; }

/* Stor intro-video: fylder hele den lyseblå boks, 16:9 */
.intro-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 15px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.intro-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ---------- DROPDOWN (videoresumé) ---------- */
.dropdown-section {
  width: 100%;
  margin-top: 10px;
  clear: both;
  cursor: pointer;
}
#content-dropdown-body {
  font-size: 15px !important;
  line-height: 2.3 !important;
  background-color: #f7f9fb;
  border-radius: 8px;
  padding: 16px 36px;
  margin-top: 10px;
}

/* ============================================================
   NY SEKTION: bevis + transskription + chat i tre kolonner
   ============================================================ */
.bevischat-section {
  width: 100%;
  margin-top: 20px;
  table-layout: fixed;
  border-spacing: 16px 0;
}
.bevischat-section > tbody > tr > td { vertical-align: top; }

/* Venstre: selve beviset (bredt) */
.bevis-column { width: auto; vertical-align: top; }

/* Midt: transskription (samme bredde som chat) */
.transcript-column { width: 280px; vertical-align: top; }

/* Hoejre: chatbot */
.chat-column { width: 280px; vertical-align: top; }

/* ---------- BEVIS-KOLONNE ---------- */
.bevis-box {
  background: #ffffff;
  border: 1px solid #e2e8ee;
  border-radius: 8px;
  padding: 20px 26px;
  box-shadow: 0 0 10px rgba(0,0,0,0.06);
}
.bevis-box h2 { color: #003755; margin-bottom: 4px; }
.bevis-intro { font-size: 14px; line-height: 1.7; margin: 0 0 18px; }

/* Rammen om selve saetningen (som den brune ramme paa tavlen) */
.saetning-ramme {
  border: 3px solid #8a5a2b;
  border-radius: 8px;
  padding: 10px 18px 4px;
  margin: 6px 0 18px;
  background: #fffdf9;
}

/* Et bevis-trin: valgfri forklaring + formel */
.bevis-trin { margin: 0 0 30px; }
.bevis-forklaring {
  font-size: 13.5px;
  line-height: 1.7;
  color: #333;
  margin: 0 0 6px;
}
.bevis-formel {
  font-size: 16px;
  margin: 4px 0 4px;
  overflow: visible;     /* ingen scroll-bars omkring formlerne */
}
.bevis-trin-nr {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: #003755;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  margin-right: 8px;
}
.bevis-slut {
  font-size: 13px;
  color: #2e7d32;
  font-weight: bold;
  margin-top: 10px;
}

/* Farvede understregninger under arealformlerne (som paa tavlen) */
.us-blaa   { border-bottom: 3px solid #1565c0; padding-bottom: 2px; }
.us-orange { border-bottom: 3px solid #ef8c00; padding-bottom: 2px; }
.us-groen  { border-bottom: 3px solid #2e9b3f; padding-bottom: 2px; }

/* Trekant-figurer */
.trekant-figurer { display: flex; gap: 24px; margin: 4px 0 16px; flex-wrap: wrap; }
.trekant-figurer svg { width: 150px; height: auto; }

/* KaTeX-display: ingen egen scroll-bar, kompakt margin */
.bevis-box .katex-display { overflow: visible; margin: 0.35em 0; }

/* ---------- TRANSSKRIPTIONS-KOLONNE ---------- */
.panel-titel {
  font-size: 13px;
  font-weight: bold;
  color: #003755;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.transcript-wrap {
  background-color: rgb(98%, 98%, 98%);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.transcript-box {
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 560px;
  overflow-y: auto;
  padding: 12px 14px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
}
.tr-line { margin: 0 0 10px; }
.tr-time {
  display: inline-block;
  min-width: 38px;
  color: #0066cc;
  font-weight: bold;
  font-size: 11px;
  margin-right: 8px;
}

/* ---------- CHAT-KOLONNE ---------- */
#chat-container {
  background-color: rgb(98%, 98%, 98%);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
#chatbox {
  background: #ffffff;
  border: 1px solid #ccc;
  height: 560px;
  overflow-y: auto;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}
#chat-input { display: flex; gap: 8px; align-items: center; }
#msg { flex: 1; padding: 8px; font-size: 12px; border: 1px solid #ccc; border-radius: 3px; }
#chat-input button {
  padding: 8px 12px;
  font-size: 14px;
  white-space: nowrap;
  background-color: #0066cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.quiz-button {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  background: #0066cc;
  color: #fff;
}

/* ---------- FOOTER ---------- */
.site-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  color: #666;
  font-size: 12px;
}
.site-footer a { color: #0066cc; text-decoration: none; }

/* ============================================================
   RESPONSIVT: under 1000px stables kolonnerne
   ============================================================ */
@media (max-width: 1000px) {
  .container { width: auto; padding: 0 12px; }

  .bevischat-section,
  .bevischat-section > tbody,
  .bevischat-section > tbody > tr,
  .bevischat-section > tbody > tr > td {
    display: block;
    width: auto !important;
  }
  .transcript-column, .chat-column { margin-top: 16px; }
  .transcript-box, #chatbox { height: 320px; }

  .top-section,
  .top-section > tbody,
  .top-section > tbody > tr,
  .top-section > tbody > tr > td {
    display: block;
    width: auto !important;
  }
  .left-column { margin-bottom: 16px; }
}
