/* ---------------------------------------------------------------------------------------------- */
/* GENERAL */
/* ---------------------------------------------------------------------------------------------- */

:root {
    --xeon-primary: #0d74b9;
    --xeon-bg: #ffffff;
    --xeon-surface: #f9fafb;
    --xeon-border: #e5e7eb;
    --xeon-text: #111827;
    --xeon-muted: #6b7280;
}

/* Base layout */
html, body {
    height: 100%;
}

body {
    background-color: var(--xeon-bg);
    color: var(--xeon-text);
    font-family: 'Lato', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 96px 0 24px; /* space for fixed navbar */
}

/* If breadcrumb-fixed is used somewhere */
body.breadcrumb-fixed {
    padding-top: 72px;
}

/* Keep container nicely centered */
#page-content.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px 32px;
}

/* ---------------------------------------------------------------------------------------------- */
/* HEADER / TOP BAR */
/* ---------------------------------------------------------------------------------------------- */

#page-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--xeon-border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    padding: 10px 16px;
}

/* Centered logo wrapper */
#page-navbar > div {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo sizing – larger & responsive */
#page-navbar .standard-logo img {
    display: block;
    max-height: 72px;   /* larger logo on desktop */
    width: auto;
    height: auto;
}

/* Breadcrumb text (inside content section) */
#page-content .navbar-text,
#content .navbar-text {
    display: block;
    font-size: 14px;
    color: var(--xeon-muted);
    margin: 16px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#page-content .navbar-text a,
#content .navbar-text a {
    color: var(--xeon-primary);
    text-decoration: none;
}

#page-content .navbar-text a:hover,
#content .navbar-text a:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------------------------- */
/* DIRECTORY LISTER */
/* ---------------------------------------------------------------------------------------------- */

#directory-list-header {
    font-family: 'Cutive Mono', monospace, serif;
    font-weight: 600;
    margin-top: 8px;
}

/* Header row */
#directory-list-header .row {
    margin: 0;
    background-color: var(--xeon-primary);
    color: #ffffff;
    border-radius: 10px 10px 0 0;
    font-size: 14px;
    letter-spacing: 0.02em;
}

/* Directory list container */
#directory-listing {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: 'Cutive Mono', monospace, serif;
    background-color: #ffffff;
    border: 1px solid var(--xeon-border);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

/* Each row */
#directory-listing li {
    position: relative;
    border-top: 1px solid var(--xeon-border);
}

#directory-listing li:first-child {
    border-top: none;
}

/* Row link */
#directory-listing li > a.clearfix {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--xeon-text);
    transition: background-color 0.16s ease, transform 0.08s ease;
}

/* Hover state */
#directory-listing li:hover > a.clearfix {
    background-color: var(--xeon-surface);
}

/* Row content */
#directory-listing .row {
    margin: 0;
}

/* File name column */
.file-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.file-name i {
    color: #6b7280;
    margin-right: 8px;
}

/* Size & modified columns */
.file-size,
.file-modified {
    font-size: 13px;
    color: var(--xeon-muted);
}

/* Info button (checksum / web link) */
.file-info-button,
.web-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute !important;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    padding: 6px 8px !important;
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.5);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.web-link-button i,
.file-info-button i {
    color: #6b7280;
    font-size: 13px;
}

.file-info-button:hover,
.web-link-button:hover {
    background-color: var(--xeon-primary);
    border-color: var(--xeon-primary);
    transform: translateY(-50%) translateY(-1px);
}

.file-info-button:hover i,
.web-link-button:hover i {
    color: #ffffff;
}

/* ---------------------------------------------------------------------------------------------- */
/* FOOTER – GENERIC (simple centered text) */
/* ---------------------------------------------------------------------------------------------- */

.footer {
    margin: 24px 0 8px;
    text-align: center;
    font-size: 13px;
    color: var(--xeon-muted);
}

/* ---------------------------------------------------------------------------------------------- */
/* CHECKSUM MODAL */
/* ---------------------------------------------------------------------------------------------- */

#file-info {
    margin: 0;
}

#file-info .table-title {
    font-weight: 600;
    text-align: right;
    width: 120px;
    white-space: nowrap;
}

#file-info .md5-hash,
#file-info .sha1-hash {
    font-family: 'Cutive Mono', monospace, serif;
    font-size: 13px;
    word-break: break-all;
}

/* ---------------------------------------------------------------------------------------------- */
/* XEONBD FOOTER OVERRIDES (default_footer.php) */
/* ---------------------------------------------------------------------------------------------- */

#footer {
    background-color: #020617;
    color: #e5e7eb;
    font-family: 'Lato', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    padding-top: 24px;
    padding-bottom: 16px;
    border-top: 1px solid #0b1120;
}

#footer a {
    color: #e5e7eb;
    text-decoration: none;
}

#footer a:hover {
    color: #bbd647;
    text-decoration: none;
}

#copyrights {
    line-height: 1.7;
}

/* ===== SOCIAL ICON VISIBILITY / HOVER FIX ===== */

#footer .social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: rgba(15, 23, 42, 0.6);              /* subtle dark bubble */
    color: #e5e7eb !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.7);
    transition: all 0.20s ease;
}

/* ICON inside */
#footer .social-icon i {
    color: inherit !important;
    font-size: 16px;
    line-height: 1;
}

/* HOVER – HIGH CONTRAST, NO WHITEOUT */
#footer .social-icon:hover {
    background: #bbd647 !important;                 /* XeonBD accent */
    border-color: #bbd647 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(187, 214, 71, 0.35);
    color: #0b1120 !important;                      /* dark icon colour */
}

#footer .social-icon:hover i {
    color: #0b1120 !important;
}

/* ---------------------------------------------------------------------------------------------- */
/* RESPONSIVE */
/* ---------------------------------------------------------------------------------------------- */

@media (max-width: 991px) {
    body {
        padding-top: 88px;
    }

    #page-navbar {
        padding: 8px 12px;
    }

    #page-navbar .standard-logo img {
        max-height: 64px;
    }

    #page-content.container {
        padding: 0 12px 24px;
    }
}

@media (max-width: 767px) {
    body {
        padding-top: 80px;
    }

    #page-navbar .standard-logo img {
        max-height: 56px; /* still bigger than original, but fits small screens */
    }

    #directory-list-header .row {
        font-size: 13px;
    }

    /* MOBILE DIRECTORY BEHAVIOUR:
       - horizontal scroll
       - proper width for header + rows
       - hide info buttons to avoid overlap */
    #directory-list-header,
    #directory-listing {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }

    #directory-list-header .row,
    #directory-listing .row {
        min-width: 640px;               /* width of the "table" – adjust if needed */
    }

    /* Keep file names readable when scrolled */
    .file-name {
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #directory-listing li > a.clearfix {
        padding-right: 14px;
    }

    /* Hide info / web link buttons on small screens */
    .file-info-button,
    .web-link-button {
        display: none !important;
    }

    #page-content .navbar-text,
    #content .navbar-text {
        font-size: 13px;
        max-width: 100%;
    }

    #footer {
        text-align: center;
    }

    #footer .col-md-9,
    #footer .col-md-3,
    #footer .col-sm-6 {
        text-align: center;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    #directory-list-header .row {
        border-radius: 8px 8px 0 0;
    }

    #directory-listing {
        border-radius: 0 0 8px 8px;
    }

    .file-name {
        font-size: 13px;
    }

    .file-size,
    .file-modified {
        font-size: 12px;
    }

    #footer .social-icon {
        width: 34px;
        height: 34px;
        margin: 0 3px;
    }
}
