/* ==================================================
   style.css – SloKJV
   ================================================== */

/* ==================================================
   1. OSNOVA: html, body, ozadje
   ================================================== */
html {
    font-family: Arial, sans-serif;
    line-height: 1.15;
    background-color: #f6f1e6;
    color: #000000;
    transition: background-color 0.3s, color 0.3s;
}

html, body {
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
    background: #f6f1e6;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("slike/ozadje_pergament.jpg") center / cover no-repeat;
    opacity: 0.85;
    z-index: -1;
    transform: translateZ(0);
}

/* Mobilne naprave – odstrani fixed, da ne uhaja ozadje */
@media (hover: none) and (pointer: coarse) {
    body::before {
        position: absolute;
    }
}

/* ==================================================
   2. NOČNI NAČIN
   ================================================== */
html.night-mode,
html.night-mode body {
    background-color: #1a1a1a !important;
    color: #e0e0e0;
}

html.night-mode body::before {
    content: none !important;
}

/* ==================================================
   3. TIPOGRAFIJA
   ================================================== */
.content {
    padding: 3px 10px 10px 10px;
}

h1 {
    color: navy;
    text-align: center;
    font-size: 1.4em;
    line-height: 1;
    margin: 10px 0;
    transition: color 0.3s;
}
h1 a { color: navy; text-decoration: none; transition: color 0.3s; }
h1 a:hover { text-decoration: underline; }
html.night-mode h1,
html.night-mode h1 a { color: #87ceeb; }

h2 {
    font-size: 1.2em;
    text-align: center;
    margin: 10px 0 15px;
    color: #333;
    transition: color 0.3s;
}
html.night-mode h2 { color: #d3d3d3; }

h3 {
    font-size: 1.1em;
    margin: 0;
    color: #555;
    transition: color 0.3s;
}
html.night-mode h3 { color: #c0c0c0; }

h4 {
    font-size: 1.1em;
    font-weight: bold;
    margin: 15px 0;
    color: #444;
    transition: color 0.3s;
}
html.night-mode h4 { color: #b0b0b0; }

p {
    margin: 8px 0;
    text-align: justify;
}

sup {
    font-size: 0.8em;
    color: #555;
    vertical-align: super;
    transition: color 0.3s;
}
html.night-mode sup { color: #a0a0a0; }

i { font-style: italic !important; }
b { font-weight: bold; }

del {
    text-decoration: line-through;
    color: #888;
    transition: color 0.3s;
}
html.night-mode del { color: #666; }

a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }

label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-weight: 600;
    display: block;
    margin-top: 6px;
}
label input { margin-right: 8px; }

input[type="text"],
input[type="url"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    padding: 8px;
    margin: 6px 0 12px;
    box-sizing: border-box;
}

fieldset {
    border: 1px solid #ccc;
    padding: 12px;
    margin-top: 18px;
}
legend { font-weight: bold; }

/* ==================================================
   4. POSEBNE BESEDILNE OZNAKE (biblično besedilo)
   ================================================== */
.small-caps   { font-variant: small-caps; }
.quote-jesus  { color: #D43128; }
html.night-mode .quote-jesus { color: #ff6666; }
.quote-other  { font-style: italic; }

.foreign {
    font-weight: bold;
    color: purple;
    transition: color 0.3s;
}
html.night-mode .foreign { color: #dda0dd; }

.amplified {
    font-style: italic;
    color: #ff4500;
    transition: color 0.3s;
}
html.night-mode .amplified { color: #ff7f50; }

.inscription {
    font-weight: bold;
    text-transform: uppercase;
    color: #2f4f4f;
    transition: color 0.3s;
}
html.night-mode .inscription { color: #b0c4de; }

.colophon {
    color: gray;
    margin: 15px 0;
    text-align: left;
    font-style: italic;
    transition: color 0.3s;
}
html.night-mode .colophon { color: #888; }

.poetry { margin: 15px 0; }
.poetry-line { margin-left: 30px; }

/* ==================================================
   5. OPOMBE IN REFERENCE (study notes, xrefs)
   ================================================== */
.study-container,
.xref-container {
    display: inline-block;
    position: relative;
}

.study-ref {
    font-size: 0.7em;
    color: green;
    vertical-align: super;
    cursor: pointer;
    margin-left: 2px;
    transition: color 0.3s;
}
html.night-mode .study-ref { color: #90ee90; }

.study-note {
    font-size: 0.9em;
    color: green;
    transition: color 0.3s;
}
html.night-mode .study-note { color: #90ee90; }

.study-note.hidden  { display: none; }
.study-note.visible { display: inline; }

.xref-ref {
    font-size: 0.7em;
    color: #0066cc;
    vertical-align: sub;
    cursor: pointer;
    margin-left: 2px;
    transition: color 0.3s;
}
html.night-mode .xref-ref { color: #66b3ff; }

.xref-note {
    font-size: 0.9em;
    color: #0066cc;
    transition: color 0.3s;
}
html.night-mode .xref-note { color: #66b3ff; }

.xref-note.hidden  { display: none; }
.xref-note.visible { display: inline; }

.xref-link { color: #0066cc; text-decoration: none; transition: color 0.3s; }
html.night-mode .xref-link { color: #66b3ff; }
.xref-link:hover { text-decoration: underline; }

/* Tooltip za study opombe (zelene) */
.study-container:hover .study-note.hidden {
    display: block !important;
    position: absolute;
    bottom: 1.8em;
    left: 0;
    right: auto;
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 6px 8px;
    z-index: 999;
    text-align: left;
    max-width: 70vw;
    min-width: 250px;
    white-space: normal;
    overflow-wrap: break-word;
    max-height: 60vh;
    overflow-y: auto;
    box-sizing: border-box;
}
html.night-mode .study-container:hover .study-note.hidden {
    background: #1a1a1a;
    border-color: #555;
}

/* Tooltip za xref reference (modre) */
.xref-container:hover .xref-note.hidden {
    display: block !important;
    position: absolute;
    bottom: 1.8em;
    left: 0;
    right: auto;
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 6px 8px;
    z-index: 999;
    text-align: left;
    max-width: 70vw;
    min-width: 160px;
    white-space: normal;
    overflow-wrap: break-word;
    max-height: 60vh;
    overflow-y: auto;
    box-sizing: border-box;
}
html.night-mode .xref-container:hover .xref-note.hidden {
    background: #1a1a1a;
    border-color: #555;
}

/* ==================================================
   6. STRONG NUMBERS (KJV besedilo z leksikoni)
   ================================================== */
.word-group {
    display: inline-block;
    margin-right: 4px;
    cursor: help;
    border-bottom: 1px dotted #bbb;
}

.s-num {
    color: #888;
    font-size: 0.75em;
    vertical-align: super;
    text-decoration: none;
}

.m-num {
    color: #8ab;
    font-size: 0.7em;
    vertical-align: super;
    text-decoration: none;
    font-style: italic;
}

.kjv-note {
    color: #c00;
    font-weight: bold;
    cursor: help;
    padding: 0 2px;
    font-size: 0.9em;
}

/* ==================================================
   7. STRONG.PHP – definicije leksikona
   ================================================== */
.definition {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.slo-def { border-left: 5px solid #3498db; }
.en-def  { border-left: 5px solid #95a5a6; background: #fafafa; font-size: 0.95em; color: #555; }
.pron    { color: #555; font-size: 0.9em; margin-bottom: 15px; }
.strong-ref { color: #3498db; text-decoration: none; font-weight: bold; }
.morph-box  { padding: 15px; }
.notice     { padding: 10px; color: #888; }

/* XML značke znotraj definicij */
etym, def, seg, orth { display: inline; font-style: normal; }
etym {
    display: block;
    font-style: italic;
    color: #333;
    margin-bottom: 10px;
    font-size: 0.95em;
}
etym::before { content: 'Izvor: '; font-style: normal; color: #999; }
etym orth    { font-weight: bold; font-style: normal; color: #333; }
def          { display: block; margin-top: 5px; }
seg[type='x-kjv-usage'] {
    display: block;
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px dashed #ddd;
    color: #333;
}
seg[type='x-kjv-usage']::before { content: 'Prevod (KJV): '; color: #7f8c8d; }

.search-link {
    display: inline-block;
    background: #3498db;
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: bold;
    transition: background 0.2s;
}
.search-link:hover { background: #2980b9; }

/* ==================================================
   8. SEARCH_STRONG.PHP – paralelna tabela zadetkov
   ================================================== */
.header-info {
    background: white;
    padding: 20px;
    border-bottom: 2px solid #3498db;
}

.container {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table-head {
    display: flex;
    background: #2c3e50;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    font-weight: bold;
    font-size: 0.8em;
    text-transform: uppercase;
}
.table-head div { padding: 15px; border-right: 1px solid #3e4f5f; }

.verse-row { display: flex; border-bottom: 1px solid #ddd; }
.verse-row:hover { background: #f9f9f9; }

.col-ref {
    width: 100px;
    flex-shrink: 0;
    text-align: center;
    color: #7f8c8d;
    font-weight: bold;
    padding: 15px 5px;
    border-right: 1px solid #eee;
}
.col-text { flex: 1; padding: 15px; line-height: 1.6; }

.kjv { background: #fcfcfc; border-right: 1px solid #eee; }
.slo { border-right: 1px solid #eee; }
.chr { background: #fdfaff; }

.highlight {
    background-color: #fff3cd;
    font-weight: bold;
    padding: 0 2px;
    color: #d35400;
    border-radius: 2px;
}
.note-star { color: #3498db; font-weight: bold; cursor: help; }

/* ==================================================
   9. NAVIGACIJA: knjige, poglavja, puščice
   ================================================== */
.book-nav {
    text-align: center;
    margin: 5px 0 1px;
}
.book-nav p {
    text-align: center;
    margin: 5px 0;
    line-height: 1.1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.book-nav a {
    margin: 0 8px;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1em;
}
html.night-mode .book-nav a { color: #66b3ff; }
.book-nav a:hover { text-decoration: underline; }

@media (max-width: 1024px) { .book-nav a { margin: 0 6px; font-size: 1.1em; } }
@media (max-width: 600px)  { .book-nav a { margin: 0 5px; font-size: 1em; } }

.chapter-nav {
    text-align: center;
    margin: 15px 0;
}
.chapter-nav a {
    margin: 0 8px;
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}
html.night-mode .chapter-nav a { color: #66b3ff; }
.chapter-nav a:hover { text-decoration: underline; }

.chapter-arrows {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}
.chapter-arrows .arrow {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    text-decoration: none;
}
.chapter-arrows .arrow svg { width: 2rem; height: auto; }
.chapter-arrows .arrow.home { font-weight: 600; }

.chapter-top-link {
    display: inline-block;
    margin-left: 15px;
    opacity: 0.7;
    transition: opacity 0.3s;
    vertical-align: middle;
}
.chapter-top-link:hover { opacity: 1; }
.chapter-top-link svg { vertical-align: middle; }
html.night-mode .chapter-top-link svg { stroke: #FFCC00; }

.chapter-top-link-container {
    text-align: right;
    margin: 10px 0 20px 0;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.chapter-top-link-container .chapter-top-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    text-decoration: none;
}

.top-link { text-align: right; margin: 15px 0; }
.top-link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s;
}
html.night-mode .top-link a { color: #66b3ff; }
.top-link a:hover { text-decoration: underline; }

/* ==================================================
   10. HEADER: hamburger + naslov + pisava + tema
   ================================================== */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 6px;
    margin: 0;
    gap: 6px;
}

.header-top h1 {
    flex: 1;
    margin: 0 8px;
    text-align: center;
    font-size: 1.15em;
    color: navy;
    min-width: 0;
    line-height: 1;
    transition: color 0.3s;
}
html.night-mode .header-top h1 { color: #87ceeb; }

.header-top h1 .full-title  { display: block; }
.header-top h1 .short-title { display: none; }

@media (max-width: 880px) {
    .header-top h1 .full-title  { display: none; }
    .header-top h1 .short-title { display: block; }
}

@media (max-width: 480px) {
    body { padding-top: 2px; }
    .header-top { padding: 0 4px; }
    .header-top h1 { font-size: 1.05em; margin: 0 4px; }
    .header-top h1 .short-title { font-size: 0.98em; line-height: 1.1; }
    .menu-toggle,
    .theme-toggle-container button { padding: 6px; }
    .theme-toggle-container svg { width: 13px; height: 13px; }
}

/* ==================================================
   11. DROPDOWN MENI
   ================================================== */
.menu-container {
    position: relative;
    display: inline-block;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: inherit;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -10px;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu ul    { margin: 0; padding: 8px 0; list-style: none; }
.dropdown-menu li    { margin: 0; }
.dropdown-menu a     { display: block; padding: 10px 16px; color: #0066cc; text-decoration: none; font-size: 0.95em; }
.dropdown-menu a:hover { background-color: #f0f0f0; }

html.night-mode .dropdown-menu           { background-color: #2a2a2a; border-color: #555; }
html.night-mode .dropdown-menu a         { color: #66b3ff; }
html.night-mode .dropdown-menu a:hover   { background-color: #333; }

/* ==================================================
   12. TEMA (sonce/luna ikoni)
   ================================================== */
#theme-icon-sun,
#theme-icon-moon {
    display: none;
    width: 20px;
    height: 20px;
}
html:not(.night-mode) #theme-icon-sun { display: block; }
html.night-mode #theme-icon-moon      { display: block; }

/* ==================================================
   13. KONTROLE PISAVE
   ================================================== */

/* Mobilna verzija (v meniju) */
.font-controls-menu {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 12px;
    padding-bottom: 8px;
    display: none;
}
html.night-mode .font-controls-menu { border-top-color: #444; }

.font-size-label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 500;
}
html.night-mode .font-size-label { color: #aaa; }

.font-size-controls-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0 10px;
}

.font-btn-menu {
    flex: 1;
    max-width: 50px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    color: #333;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
}
html.night-mode .font-btn-menu          { background-color: #333; border-color: #555; color: #e0e0e0; }
.font-btn-menu:hover                     { background-color: #e8e8e8; border-color: #ccc; }
html.night-mode .font-btn-menu:hover     { background-color: #444; border-color: #666; }
.font-btn-menu:active                    { transform: scale(0.98); }
.font-btn-menu.active                    { background-color: #0066cc; color: white; border-color: #0066cc; }
html.night-mode .font-btn-menu.active    { background-color: #4682b4; border-color: #4682b4; }

.reset-btn { font-size: 14px; background-color: #f0f0f0; }
html.night-mode .reset-btn { background-color: #3a3a3a; }

/* Desktop verzija (v headerju) */
.desktop-font-controls {
    display: none;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    border-radius: 20px;
    padding: 4px;
    border: 1px solid #ddd;
    margin-right: 10px;
}
html.night-mode .desktop-font-controls { background-color: #2a2a2a; border-color: #555; }

.desktop-font-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: transparent;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin: 0;
    padding: 0;
}
.desktop-font-btn:hover                  { background-color: #e0e0e0; }
html.night-mode .desktop-font-btn        { color: #e0e0e0; }
html.night-mode .desktop-font-btn:hover  { background-color: #444; }
.desktop-font-btn.active                 { background-color: #0066cc; color: white; }
html.night-mode .desktop-font-btn.active { background-color: #4682b4; }

/* Responsive: kdaj kateri set gumbov */
@media (min-width: 768px) {
    .font-controls-menu    { display: none !important; }
    .desktop-font-controls { display: flex !important; }
}
@media (max-width: 767px) {
    .desktop-font-controls { display: none !important; }
    .font-controls-menu    { display: block !important; }
}

/* Velikostni razredi (nastavljeni na <html>) */
html.font-small   { font-size: 85%; }
html.font-medium  { font-size: 100%; }
html.font-large   { font-size: 115%; }
html.font-xlarge  { font-size: 130%; }
html.font-xxlarge { font-size: 150%; }
html.font-xxxlarge {
    font-size: 170%;
    line-height: 1.4;
}

html.font-large p,
html.font-xlarge p,
html.font-xxlarge p,
html.font-xxxlarge p { margin: 10px 0; }

html.font-xxxlarge p { margin: 12px 0; }

html.font-large body,
html.font-xlarge body,
html.font-xxlarge body,
html.font-xxxlarge body { line-height: 1.3; }

/* ==================================================
   14. GUMBI (splošni)
   ================================================== */
button {
    margin: 4px;
    padding: 5px 10px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
button:hover                  { background-color: #005bb5; }
html.night-mode button        { background-color: #4682b4; }
html.night-mode button:hover  { background-color: #5a9bd4; }

.search-icon-btn {
    padding: 5px;
    min-width: 30px;
    height: 30px;
}
.search-icon-btn svg        { pointer-events: none; }
.search-icon-btn:hover      { background-color: #005bb5; }
html.night-mode .search-icon-btn:hover { background-color: #5a9bd4; }

.gumb { display: inline-block; padding: 8px 14px; background: #4CAF50; color: #fff; text-decoration: none; border-radius: 3px; border: none; cursor: pointer; }
.gumb:hover { background: #45a049; }
html.night-mode .gumb       { background: #3d8b40; }
html.night-mode .gumb:hover { background: #357a38; }

.mini { font-size: 12px; padding: 4px 8px; margin-left: 6px; background: #eee; color: #333; border: 1px solid #ccc; border-radius: 3px; cursor: pointer; }
.mini:hover { background: #e6e6e6; }
.mini.danger { background: #fbeaea; border-color: #f1c0c0; color: #b61827; }
.mini.danger:hover { background: #f6dada; }

.actions { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; }

.format-icon { width: 20px; height: 20px; margin-right: 8px; vertical-align: middle; }

/* ==================================================
   15. ISKALNO POLJE
   ================================================== */
.center-buttons {
    text-align: center;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.center-buttons br { display: none; }

.search-input {
    margin: 4px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 200px;
    transition: border-color 0.3s, background-color 0.3s;
}
html.night-mode .search-input { background-color: #2a2a2a; border-color: #555; color: #e0e0e0; }
.search-input:focus            { outline: none; border-color: #0066cc; }
html.night-mode .search-input:focus { border-color: #66b3ff; }
@media (max-width: 600px) { .search-input { width: 150px; } }

/* ==================================================
   16. NAKLJUČNI VERZ
   ================================================== */
.random-verse { margin: 5px 0; }

.verse-container  { display: flex; flex-direction: column; }
.v-row            { padding: 4px; border-radius: 4px; border-left: 4px solid #ddd; }
.v-slo            { border-color: #2ecc71; }
.v-kjv            { border-color: #3498db; }
.v-chr            { border-color: #9b59b6; }
.v-label          { font-size: 0.7em; font-weight: bold; text-transform: uppercase; display: block; color: #888; margin-bottom: 5px; }

/* ==================================================
   17. ZEMLJEVIDI
   ================================================== */
.maps-section { text-align: center; margin-top: 30px; }
.maps-section h2 { color: #333; transition: color 0.3s; }
html.night-mode .maps-section h2 { color: #d3d3d3; }

.map-preview {
    max-width: 250px;
    height: auto;
    margin: 15px;
    border: 1px solid #ccc;
    transition: border-color 0.3s;
    cursor: pointer;
}
html.night-mode .map-preview { border-color: #555; }
.map-preview:hover { border-color: #0066cc; }

/* ==================================================
   18. FOOTER
   ================================================== */
.footer {
    text-align: center;
    font-size: 0.9em;
    color: #666;
    margin-top: 30px;
    transition: color 0.3s;
}
html.night-mode .footer { color: #999; }
.footer a { color: #0066cc; transition: color 0.3s; }
html.night-mode .footer a { color: #66b3ff; }
.footer a:hover { text-decoration: underline; }

/* ==================================================
   19. MP3 POVEZAVE V MENIJU
   ================================================== */
.mp3-link {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 12px;
    padding-bottom: 8px;
}
html.night-mode .mp3-link { border-top-color: #444; }

.mp3-link a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
}
.mp3-link a:hover                  { background-color: #f0f0f0; transform: translateY(-1px); }
html.night-mode .mp3-link a        { color: #66b3ff; }
html.night-mode .mp3-link a:hover  { background-color: #333; }

.audio-icon { width: 20px; height: 20px; stroke-width: 2; }
.audio-text { font-weight: 500; }

.mp3-link a:hover .audio-icon { animation: audio-pulse 1.5s infinite; }
@keyframes audio-pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.1); }
}

/* ==================================================
   20. DATOTEKE Z IKONAMI PLATFORM V MENIJU
   ================================================== */
.files-link {
    border-top: 1px solid #eee;
    margin-top: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
}
html.night-mode .files-link { border-top-color: #444; }

.files-link a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
    color: #0066cc;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
}
.files-link a:hover                  { background-color: #f0f0f0; transform: translateY(-1px); }
html.night-mode .files-link a        { color: #66b3ff; }
html.night-mode .files-link a:hover  { background-color: #333; }

.files-text {
    font-weight: 600;
    font-size: 0.95em;
    text-align: center;
    margin-bottom: 4px;
}

.platform-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.platform-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    transition: all 0.3s ease;
}
@media (min-width: 768px) { .platform-icon { width: 16px; height: 16px; } }
@media (max-width: 480px) { .platform-icon { width: 14px; height: 14px; } .files-text { font-size: 0.9em; } }

.platform-icon.windows { color: #0078d7; }
.platform-icon.apple   { color: #999999; }
.platform-icon.android { color: #3ddc84; }
.platform-icon.audio   { color: #ff6b6b; }
.platform-icon.epub    { color: #4ecdc4; }
.platform-icon.pdf     { color: #f44336; }

.files-link a:hover .platform-icon.windows { color: #005a9e; transform: scale(1.1); }
.files-link a:hover .platform-icon.apple   { color: #666666; transform: scale(1.1); }
.files-link a:hover .platform-icon.android { color: #2bbd69; transform: scale(1.1); }
.files-link a:hover .platform-icon.audio   { color: #ff5252; transform: scale(1.1); }
.files-link a:hover .platform-icon.epub    { color: #26a69a; transform: scale(1.1); }
.files-link a:hover .platform-icon.pdf     { color: #d32f2f; transform: scale(1.1); }

.files-link a:hover .platform-icon { animation: icon-bounce 0.6s ease; }
@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-3px); }
}

/* ==================================================
   21. NOVOSTI (knjige/novosti.php)
   ================================================== */
.top-links { margin: 4px 0 16px 80px; }
.top-links a { color: #1a73e8; text-decoration: none; }
.top-links a:hover { text-decoration: underline; }

.searchbar { display: flex; gap: 8px; align-items: center; margin: 0 0 14px 0; }
.searchbar input[type="text"] { flex: 1; }
.searchbar .small { font-size: 0.9em; }

.novost { margin: 16px 0; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.novost .date  { font-weight: bold; margin-right: 8px; white-space: nowrap; }
.novost .title { font-weight: bold; margin: 4px 0; }
.novost .txt   { display: block; margin-top: 4px; }

.pager { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 10px; border: 1px solid #ccc; border-radius: 3px; text-decoration: none; }
.pager a         { background: #fafafa; color: #333; }
.pager a:hover   { background: #f0f0f0; }
.pager .active   { background: #4CAF50; color: #fff; border-color: #4CAF50; }
.pager .muted    { color: #888; border-color: #ddd; }

.small { color: #666; font-size: 0.9em; }

@media (max-width: 600px) {
    .top-links { margin-left: 0; }
}

/* ==================================================
   23. NAVODILA ZA ISKANJE
   ================================================== */
/* ==================================================
   23. ISKALNA STRAN – panel, opcije, navodila, rezultati
   ================================================== */

.search-panel {
    max-width: 680px;
    margin: 10px auto 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.search-row {
    display: flex;
    align-items: center;
    gap: 0;
}
.search-row .search-input {
    flex: 1;
    margin: 0;
    padding: 8px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 6px 0 0 6px;
    border-right: none;
    width: auto;
}
html.night-mode .search-row .search-input { background: #2a2a2a; border-color: #555; color: #e0e0e0; }
.search-row .search-input:focus { outline: none; border-color: #0066cc; box-shadow: 0 0 0 2px rgba(0,102,204,0.15); }

#search-button {
    margin: 0;
    padding: 0 14px;
    height: 38px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0066cc;
    border: 1px solid #0066cc;
}
#search-button:hover { background: #005bb5; border-color: #005bb5; }

.clear-button {
    margin: 0;
    padding: 0 11px;
    height: 38px;
    border-radius: 0 6px 6px 0;
    background: #e8e8e8;
    color: #666;
    font-size: 0.8em;
    border: 1px solid #ccc;
    border-left: none;
}
.clear-button:hover                      { background: #d8d8d8; color: #333; }
html.night-mode .clear-button            { background: #3a3a3a; border-color: #555; color: #aaa; }
html.night-mode .clear-button:hover      { background: #444; color: #ddd; }

.search-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    padding: 2px 0;
    font-size: 0.88em;
    color: #555;
}
html.night-mode .search-options { color: #aaa; }

.search-options label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    white-space: nowrap;
}
.search-options label input[type="checkbox"] {
    width: auto;
    margin: 0;
    padding: 0;
    accent-color: #0066cc;
}

.sort-select {
    margin-left: auto;
    padding: 3px 8px;
    font-size: 0.88em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #333;
    cursor: pointer;
}
html.night-mode .sort-select { background: #2a2a2a; border-color: #555; color: #e0e0e0; }

/* Navodila – inline znotraj search-options */
.search-help {
    position: relative;
    display: inline-block;
    border: none;
    margin: 0;
}
html.night-mode .search-help { border-color: #3a3a3a; }

.search-help summary {
    cursor: pointer;
    padding: 0;
    font-size: 0.88em;
    color: #999;
    user-select: none;
    list-style: none;
    white-space: nowrap;
}
.search-help summary::-webkit-details-marker { display: none; }
.search-help summary:hover                   { color: #0066cc; }
html.night-mode .search-help summary         { color: #555; }
html.night-mode .search-help summary:hover   { color: #66b3ff; }

.search-help-content {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 200;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px 14px;
    font-size: 0.88em;
    min-width: 380px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
html.night-mode .search-help-content {
    background: #222;
    border-color: #444;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
}

@media (max-width: 600px) {
    .search-help-content {
        min-width: 280px;
        left: auto;
        right: 0;
    }
}

.search-help-content h4 {
    font-size: 0.82em;
    text-transform: uppercase;
    color: #999;
    margin: 12px 0 5px;
    letter-spacing: 0.05em;
}
.search-help-content h4:first-child { margin-top: 0; }
.search-help-content p { margin: 0 0 6px; }

.help-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.help-table td {
    padding: 3px 10px 3px 0;
    vertical-align: top;
    line-height: 1.4;
}
.help-table td:first-child { white-space: nowrap; }
.help-table code {
    background: #f0f0f0;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: monospace;
}
html.night-mode .help-table code { background: #333; color: #e0e0e0; }

/* Rezultati – polna širina */
.search-results {
    margin: 0;
    padding-top: 4px;
}
.search-result {
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.55;
}
html.night-mode .search-result { border-bottom-color: #333; }
.search-result:last-child { border-bottom: none; }
.search-result p { margin: 2px 0; text-align: left; }

/* Ločilna črta */
hr.search-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e8e8e8;
}
html.night-mode hr.search-divider { border-top-color: #333; }

@media print {
    button, .top-link, .footer { display: none; }
    .study-note, .xref-note   { display: inline; }
}


.parallel-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 5px;
}

.col-text {
    flex: 1; /* Vsi trije stolpci so enako široki */
    padding: 8px;
    border-left: 1px solid #ddd;
    font-size: 0.95em;
    line-height: 1.4;
}

.col-text:first-child {
    border-left: none;
}

/* Prilagoditev za mobilne naprave */
@media (max-width: 768px) {
    .parallel-container {
        flex-direction: column;
    }
    .col-text {
        border-left: none;
        border-bottom: 1px solid #eee;
    }
}