/**
 * Sphinx Search Full Stylesheet
 * Integration: Was / WasDark Theme
 */

/* Main Container */
div.dokuwiki .sphinx_search_container {
    width: 100%;
    clear: both;
}

/* Sidebar: Matching Pagenames */
div.dokuwiki .search_sidebar {
    border: 1px solid #000;
    background: rgba(255, 255, 255, 0.07);
    padding: 15px;
    margin-bottom: 30px;
}

div.dokuwiki .search_sidebar h2 {
    font-family: Zapfino, "Apple Chancery", cursive;
    font-weight: normal !important;
    border: 0 !important;
    margin-top: 0 !important;
    font-size: 1.5em;
}

div.dokuwiki .search_sidebar ul {
    margin: 0;
    padding: 0 0 0 20px;
}

div.dokuwiki .search_sidebar ul li {
    list-style-image: url(images/toc-bullet.png);
    line-height: 1.4;
    font-family: Nautical, serif;
    margin-bottom: 5px;
}

div.dokuwiki .search_sidebar ul li a {
    text-decoration: none;
    color: #43b1ff;
    font-size: 0.9em;
    text-transform: uppercase;
}

/* Individual Result Row Box */
div.dokuwiki .search_result_row {
    margin-bottom: 25px;
    border: 1px solid #fdbd12;
    padding: 26pt;
    background: rgba(255, 255, 255, 0.07);
    transition: background 0.3s ease;
}

div.dokuwiki .search_result_row:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Result Titles */
div.dokuwiki .search_result_row a.title {
    font-family: Zapfino, "Apple Chancery", cursive;
    font-weight: normal !important;
    font-size: 1.6em;
    text-decoration: none;
    color: #43b1ff;
    display: block;
    margin-bottom: 10px;
}

/* Metadata / Breadcrumbs (Footer of the result box) */
div.dokuwiki .search_nmsp {
    font-size: 11px;
    display: block;
    margin-top: 15px;
    font-family: Program, "Courier New", monospace;
}

div.dokuwiki .search_nmsp a {
    color: #43b1ff;
    text-decoration: none;
}

/* Highlighting Search Terms */
div.dokuwiki .search_snippet strong {
    color: #fff;
    background: #7d80bd;
    padding: 0 2px;
    font-weight: bold;
}

/**
 * MIRROR-TAG SNIPPET STYLING
 * Handles <p>, <pre>, <code>, and .file tags extracted from original content
 */
div.dokuwiki .search_snippet p,
div.dokuwiki .search_snippet pre,
div.dokuwiki .search_snippet code,
div.dokuwiki .search_snippet .file {
    white-space: pre-wrap;       /* Vital: Renders \n as actual line breaks */
    display: block;
    margin: 10px 0;
    font-family: Program, serif;
    line-height: 1.6;
    word-break: break-all;
}

/* Specific styling for Mirror-Tags that are preformatted */
div.dokuwiki .search_snippet pre,
div.dokuwiki .search_snippet code {
    padding: 15px;
    background-image: url(images/whitestatic.gif);
    border: 1px solid #fdbd12;
}

/* Media handling inside snippets (images/movies) */
div.dokuwiki .search_snippet img {
    max-width: 250px;
    height: auto;
    border: 1px solid #fdbd12;
    margin: 10px 0;
}

div.dokuwiki .search_snippet iframe,
div.dokuwiki .search_snippet video {
    max-width: 100%;
    border: 1px solid #fdbd12;
    margin: 10px 0;
}

/**
 * EQUIDISTANT BOXED PAGINATION
 */
div.dokuwiki .sphinxsearch_pagination {
    clear: both;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
    width: 100%;
}

/* Common Box Style */
div.dokuwiki .sphinxsearch_pagination a.page_box {
    display: inline-block;
    margin: 5px;
    padding: 10px 18px;
    min-width: 45px;
    text-align: center;
    text-decoration: none;
    font-family: Program, serif;
    font-size: 14px;
    border: 1px solid #7d80bd;
    background: rgba(255, 255, 255, 0.07);
    color: #7d80bd;
    transition: all 0.2s ease;
}

div.dokuwiki .sphinxsearch_pagination a.page_box:hover {
    background: rgba(125, 128, 189, 0.2);
    color: #000;
    box-shadow: 0 0 8px rgba(253, 189, 18, 0.2);
}

div.dokuwiki .sphinxsearch_pagination a.page_box.active {
    background: #7d80bd;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

/* Prev/Next Navigation Boxes */
div.dokuwiki .sphinxsearch_pagination a.page_box.prev,
div.dokuwiki .sphinxsearch_pagination a.page_box.next {
    font-weight: bold;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.12);
}

/* Utility */
div.dokuwiki .sphinx_hide {
    display: none;
}
