/*
    TITLE:          vvo_browser_style.css
    VERSION         1-003
    AUTHOR(S):      Dr Hlaszny, Edit PhD  [HED]
    SUPERVISED BY:  -
    CREATION DATE:  11-FEB-2026

    ENVIRONMENT:    Google Chrome Version 144.0.7559.133 (Official Build) (x86_64)
                    Safari Version 15.6.1 (17613.3.9.1.16)
                    on iMAC macOS Monterey (12.5.1)

    DESIGN ISSUES:
        1) http://www.w3.org/TR/2004/WD-xhtml2-20040722/
        2) http://www.w3.org/TR/REC-CSS1 Cascading Style Sheets, level 1

    PORTABILITY ISSUES:     see DESIGN ISSUES 2)
    SUBSYSTEM:              none
    MODIFICATION HISTORY:
        date        modified by
        11-FEB-2026 [HED]    1-001 first draw
        12-FEB-2026 [HED]    1-002 modified some colours and font sizes
        13-FEB-2026 [HED]    1-003 added features belong to vvo.html
 */

  :root {
    --bg-main: #faf9f6;
    --bg-tree: #f4f1eb;
    --bg-detail: #ffffff;
    --bg-header: #229944;
    --text-primary: #2c2417;
    --text-secondary: #6b5e4f;
    --text-muted: #9a8d7e;
    --accent-vine: #5b7a3a;
    --accent-vine-light: #7a9e54;
    --accent-berry: #7b2d4e;
    --accent-berry-light: #a24068;
    --border-subtle: #d2ddc4;
    --border-medium: #cec7ba;
    --highlight-bg: #f0eadb;
    --tag-en-bg: #e8f0de;
    --tag-en-text: #3d5a1e;
    --tag-de-bg: #fde8d0;
    --tag-de-text: #8a4a0a;
    --shadow-sm: 0 1px 3px rgba(44,36,23,0.06);
    --shadow-md: 0 4px 12px rgba(44,36,23,0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-main);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* ── HEADER ── */
  header {
    background: var(--bg-header);
    color: #faf9f6;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    z-index: 10;
  }

  .logo {
    font-family: 'Source Serif 4', serif;
    font-weight: 500;
    font-size: 22px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
  }

  .logo-icon {
    width:  48px;
    height: 48px;
    background: var(--bg-tree); /* var(--accent-vine); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
  }

  .logo-sub {
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    font-size: 18px;
    opacity: 0.8;
    margin-left: 4px;
    margin-top: 2px;
  }

  .search-box {
    flex: 1;
    max-width: 420px;
    position: relative;
  }

  .search-box input {
    width: 100%;
    padding: 12px 14px 8px 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: #faf9f6;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
  }

  .search-box input::placeholder { color: rgba(255,255,255,0.55); }
  .search-box input:focus {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.3);
  }

  .search-icon {
    position: absolute;
    left: 11px;
    top: 60%;
    transform: translateY(-50%);
    opacity: 0.8;
    font-size: 14px;
    pointer-events: none;
  }

  .search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-detail);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    max-height: 320px;
    overflow-y: auto;
    display: none;
    z-index: 100;
  }

  .search-results-dropdown.visible { display: block; }

  .search-result-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s;
  }

  .search-result-item:hover { background: var(--highlight-bg); }
  .search-result-item:last-child { border-bottom: none; }

  .search-result-class {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--accent-vine);
  }

  .search-result-match {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stats {
    font-size: 12px;
    font-weight: 300;
    opacity: 0.6;
    white-space: nowrap;
  }

  /* ── MAIN LAYOUT ── */
  .main {
    display: flex;
    flex: 1;
    overflow: hidden;
  }

  /* ── TREE PANEL ── */
  .tree-panel {
    width: 340px;
    min-width: 418px;
    background: var(--bg-tree);
    border-right: 1px solid var(--border-medium);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .tree-panel-header {
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
  }

  .tree-panel-header span {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
  }

  .tree-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
  }

  .tree-scroll::-webkit-scrollbar { width: 6px; }
  .tree-scroll::-webkit-scrollbar-track { background: transparent; }
  .tree-scroll::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }

  /* Tree nodes */
  .tree-node { user-select: none; }

  .tree-node-row {
    display:     flex;
    align-items: center;
    padding:     2px 12px 0px 0px;
    cursor:      pointer;
    transition:  background 0.12s;
    border-left: 4px solid transparent;
  }

  .tree-node-row:hover { background: rgba(91,122,58,0.07); }

  .tree-node-row.selected {
    background: rgba(91,122,58,0.12);
    border-left-color: var(--accent-vine);
  }

  .tree-toggle {
    width:   16px;
    height:  16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.5s;
  }

  .tree-toggle.open { transform: rotate(90deg); }
  .tree-toggle.leaf { visibility: hidden; }

  .tree-label {
    font-size:   13px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 100;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tree-node-row.selected .tree-label {
    font-weight: 500;
    color: var(--accent-vine);
  }

  .tree-children { display: none; }
  .tree-children.expanded { display: block; }

  /* ── DETAIL PANEL ── */
  .detail-panel {
    flex: 1;
    background: var(--bg-detail);
    overflow-y: auto;
    padding: 0;
  }

  .detail-panel::-webkit-scrollbar { width: 6px; }
  .detail-panel::-webkit-scrollbar-track { background: transparent; }
  .detail-panel::-webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }

  .detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    gap: 12px;
  }

  .detail-empty-icon { font-size: 48px; opacity: 0.6; }
  .detail-empty-text { font-size: 14px; font-weight: 300; }

  .detail-content { padding: 28px 36px 40px; max-width: 820px; }

  .detail-breadcrumb {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
  }

  .detail-breadcrumb span {
    cursor: pointer;
    transition: color 0.15s;
  }

  .detail-breadcrumb span:hover { color: var(--accent-vine); }

  .detail-title {
    font-family: 'Source Serif 4', serif;
    font-size: 26px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 6px;
    word-break: break-word;
  }

  .detail-bfo-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
/*    color: var(--accent-berry);
      background: rgba(123,45,78,0.08);
      padding: 0px 8px; */
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
  }

  .detail-section {
    margin-bottom: 24px;
  }

  .detail-section-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .detail-section-text {
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-primary);
  }

  .detail-section-text.definition {
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-primary);
/*  $1
    font-family: 'Source Serif 4', serif;
    font-size: 15px;
 */
  }

  /* Alternative terms */
  .terms-group {
    margin-bottom: 8px;
  }

  .terms-lang-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
  }

  .terms-lang-label.en { color: var(--tag-en-text); }
  .terms-lang-label.de { color: var(--tag-de-text); }

  .term-tags { display: flex; flex-wrap: wrap; gap: 5px; }

  .term-tag {
    font-size: 12.5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 400;
  }

  .term-tag.en { background: var(--tag-en-bg); color: var(--tag-en-text); }
  .term-tag.de { background: var(--tag-de-bg); color: var(--tag-de-text); }

  /* Links */
  .detail-link {
    color: var(--accent-vine);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    transition: color 0.15s;
  }

  .detail-link:hover { color: var(--accent-vine-light); text-decoration: underline; }

  /* Source formatting */
  .source-entry {
    font-size: 14px;
    line-height: 1.3;
    color: var(--text-secondary);
    margin-bottom: 4px;
  }

  /* ── RESIZE HANDLE ── */
  .resize-handle {
    width: 4px;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .resize-handle:hover, .resize-handle.active {
    background: var(--accent-vine-light);
  }

  /* ── FOOTER ── */
  footer {
    height: 28px;
    background: var(--bg-tree);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    font-size: 11px;
    color: var(--text-secondary);
    flex-shrink: 0;
  }

  /* ── LOADING INDICATOR ── */
  .loading-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--accent-vine);
    padding: 2px 0;
  }

  .loading-dot {
    width: 6px; height: 6px;
    background: var(--accent-vine);
    border-radius: 50%;
    animation: pulse 1s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }

.smaller  /* be careful: this entity name is referred in vvo_browser_js.js   */
{
    font-size:   3px;
    line-height: 3px;
    margin-left: 0px;
    margin-top:  0px;
}

.ontology-container
{
    flex:          1;
    background:    var(--bg-tree);
    overflow-y:    auto;

    margin-top:    20px;
    margin-right:  -2px;
    margin-bottom: 20px;
    margin-left:   10px;

    padding-top:     0px;
    padding-right:  30px;
    padding-bottom:  0px;
    padding-left:   20px;

    -webkit-scrollbar { width: 2px; }
    -webkit-scrollbar-track { background: transparent; }
    -webkit-scrollbar-thumb { background: var(--border-medium); border-radius: 3px; }
}

.ontology-container h2
{
    font-size:     1.5rem;
    font-weight:   600;
    color:         var(--text-primary);
    margin-top:    0.15rem;
    margin-bottom: 1.2rem;
    margin-left:   0rem;
}


.ontology-container h3
{
    font-size:     1.2rem;
    font-weight:   400;
    color:         var(--text-primary);
    margin-top:    0.15rem;
    margin-bottom: 0.4rem;
    margin-left:   0rem;
}

.ontology-container h4
{
    font-size:     0.9rem;
    font-weight:   800;
    margin-left:   1.6rem;
    margin-top:    0.6rem;
    margin-bottom: 0.4rem;
    color:         var(--text-primary);
}

.ontology-container h5
{
    font-size:     0.9rem;
    font-weight:   200;
    color:         var(--text-primary);
    margin-top:    0.1rem;
    margin-bottom: 0.5rem;
    margin-left:   1.5rem;
}

.ontology-container p
{
    padding-top:     4px;
}

.own_footer
{
    height: 28px;
    background: var(--bg-tree);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top:     0px;
    padding-right:   0px;
    padding-bottom:  0px;
    padding-left:   30px;

    font-size:      11px;
    color:          var(--text-secondary);
    flex-shrink:     0;
/*
    align-items:     center;
*/
}

.fleuron
{
    background:      var(--bg-tree);
    text-align:      center;
    justify-content: space-between;
    font-size:       24px;
    opacity:         0.4;
    margin-top:      20px;
    margin-bottom:   20px;
    flex-shrink:      0;
}

.own_footer
{
    height: 28px;
    background: var(--bg-tree);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-top:     0px;
    padding-right:   0px;
    padding-bottom:  0px;
    padding-left:   30px;

    font-size:      11px;
    color:          var(--text-secondary);
    flex-shrink:     0;
/*
    align-items:     center;
*/
}

.simple_list
{
    font-size:     0.9rem;
    font-weight:   200;
    color:         var(--text-primary);
    margin-top:    0.2rem;
    margin-bottom: 0rem;
    margin-left:   2.5rem;
}

.noBullets
{
    margin-top:    0.5rem;
    margin-bottom: 0.5rem;
}

/*
  end of vvo_browser_css.css
 */
