/* ========================================
   LETTERS FROM THE FUTURE - DARK MODE
   Black glitch background aesthetic
   ======================================== */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: #000000;
    background-image: url('../images/letters_gif_background.gif');
    background-repeat: repeat;
    background-attachment: fixed;
    color: #e8e8e8;
    line-height: 1.6;
    font-size: 14px;
}

a {
    color: #66b3ff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #99ccff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   HEADER / LOGO
   ======================================== */

.site-header {
    text-align: center;
    padding: 40px 20px 20px;
    border-bottom: 2px solid #ffffff;
    margin-bottom: 40px;
}

.site-logo-img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.site-title {
    font-family: 'Kenac Black', 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: normal;
    letter-spacing: 3px;
    margin-bottom: 5px;
    color: #ffffff;
}

.site-subtitle {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #999;
}

/* ========================================
   CLASSIFIED BRIEFING SECTION
   ======================================== */

.briefing-section {
    background: rgba(20, 20, 20, 0.9);
    border: 2px solid #ffffff;
    padding: 30px;
    margin-bottom: 40px;
}

.briefing-header {
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 25px;
    border-bottom: 1px solid #666;
    padding-bottom: 15px;
    color: #ffffff;
}

.briefing-content p {
    margin-bottom: 15px;
    color: #e8e8e8;
}

.briefing-content ul {
    margin: 15px 0 15px 30px;
}

.briefing-content ul li {
    margin-bottom: 8px;
    color: #e8e8e8;
}

.warning-text {
    font-weight: bold;
    color: #ff6666;
}

.redacted {
    background: #ffffff;
    color: #ffffff;
    padding: 0 5px;
}

/* ========================================
   INDEX SECTION
   ======================================== */

.index-section {
    margin-top: 50px;
}

.index-title {
    font-family: 'Kenac Black', 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #666;
    color: #ffffff;
    letter-spacing: 2px;
}

.transmission-list {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #666;
    padding: 20px;
}

.transmission-folder {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.transmission-folder:last-child {
    border-bottom: none;
}

.folder-header {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.folder-icon-svg {
    width: 20px;
    height: 20px;
}

.folder-status {
    font-size: 12px;
    color: #999;
    font-weight: normal;
    margin-left: auto;
}

.file-list {
    margin-left: 35px;
}

.file-list-header {
    display: grid;
    grid-template-columns: 20px 1fr 150px;
    gap: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #444;
    margin-bottom: 5px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.file-item {
    padding: 8px 0;
    display: grid;
    grid-template-columns: 20px 1fr 150px;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid #1a1a1a;
}

.file-item:hover {
    background: rgba(50, 50, 50, 0.5);
}

.file-indent {
    font-size: 14px;
    color: #666;
}

.file-name {
    color: #66ff66;
    transition: all 0.2s;
}

.file-name:hover {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 2px 5px;
    margin: -2px -5px;
}

.file-date {
    color: #999;
    font-size: 12px;
}

.file-status {
    display: none;
}

.empty-folder {
    margin-left: 35px;
    color: #666;
    font-style: italic;
    font-size: 13px;
}

/* ========================================
   BREADCRUMBS
   ======================================== */

.breadcrumbs {
    padding: 20px 0;
    font-size: 13px;
    color: #999;
    border-bottom: 1px solid #333;
    margin-bottom: 30px;
}

.breadcrumbs a {
    color: #66b3ff;
}

/* ========================================
   FILE PAGE
   ======================================== */

.file-page-header {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #666;
    padding: 25px;
    margin-bottom: 30px;
}

.file-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

.file-metadata {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.meta-label {
    color: #999;
    font-weight: bold;
}

.meta-value {
    color: #e8e8e8;
}

.file-tags {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: #ffffff;
    color: #000;
    padding: 4px 10px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag.cleared { background: #66ff66; color: #000; }
.tag.restored { background: #66b3ff; color: #000; }
.tag.partial { background: #ffaa33; color: #000; }
.tag.corrupted { background: #ff6666; color: #000; }

.content-section {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid #666;
    padding: 30px;
    margin-bottom: 25px;
}

.section-label {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    letter-spacing: 1px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.content-section p {
    margin-bottom: 15px;
    color: #e8e8e8;
}

/* ========================================
   IMAGE DISPLAY
   ======================================== */

.image-container {
    text-align: center;
    margin: 20px 0;
}

.artifact-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #666;
    cursor: pointer;
    transition: opacity 0.2s;
}

.artifact-image:hover {
    opacity: 0.9;
}

.image-caption {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    font-style: italic;
}

/* Lightbox for full-size images */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    border: 2px solid #fff;
}

/* ========================================
   AUDIO PLAYER
   ======================================== */

.audio-container {
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid #666;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
}

.audio-container audio {
    width: 100%;
    max-width: 600px;
    margin: 15px 0;
    filter: invert(1) hue-rotate(180deg);
}

.audio-info {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

/* ========================================
   DOCUMENT TEXT DISPLAY
   ======================================== */

.document-text {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid #444;
    padding: 25px;
    margin: 20px 0;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    color: #e8e8e8;
}

/* ========================================
   NOTICE BOXES
   ======================================== */

.notice-box {
    background: rgba(80, 60, 0, 0.5);
    border-left: 4px solid #ffaa33;
    padding: 20px;
    margin: 25px 0;
    color: #ffdd88;
}

.notice-box.warning {
    background: rgba(80, 0, 0, 0.5);
    border-left-color: #ff6666;
    color: #ffcccc;
}

.notice-box strong {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
}

/* ========================================
   FOOTER / BACK LINKS
   ======================================== */

.back-link {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px;
}

/* ========================================
   PASSWORD PROTECTION PAGE
   ======================================== */

.password-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-form {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #ffffff;
    padding: 40px;
    max-width: 500px;
    text-align: center;
}

.password-form h1 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
}

.password-form p {
    color: #e8e8e8;
}

.password-form input {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    padding: 10px;
    width: 100%;
    border: 1px solid #666;
    margin: 15px 0;
    background: #000;
    color: #fff;
}

.password-form button {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    padding: 12px 30px;
    background: #ffffff;
    color: #000;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.password-form button:hover {
    background: #e8e8e8;
}

.password-error {
    color: #ff6666;
    margin-top: 10px;
    font-size: 13px;
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .file-list-header {
        grid-template-columns: 20px 1fr;
        font-size: 10px;
    }
    
    .header-date {
        display: none;
    }
    
    .file-item {
        grid-template-columns: 20px 1fr;
        gap: 10px;
    }
    
    .file-date {
        grid-column: 2;
        text-align: left;
        font-size: 11px;
        margin-top: 5px;
    }
    
    .file-metadata {
        grid-template-columns: 1fr;
    }
    
    .meta-label {
        margin-top: 10px;
    }
}

/* ========================================
   CUSTOM FONT - KENAC BLACK
   ======================================== */

@font-face {
    font-family: 'Kenac Black';
    src: url('../fonts/Kenac_Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ========================================
   SIMPLIFIED LOGIN PAGE
   ======================================== */

.login-container {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid #444;
    padding: 50px 40px;
    max-width: 500px;
    text-align: center;
}

.login-logo-img {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
}

.login-title {
    font-family: 'Kenac Black', 'IBM Plex Mono', monospace;
    font-size: 18px;
    color: #ffffff;
    letter-spacing: 3px;
    margin-bottom: 35px;
    font-weight: normal;
    line-height: 1.4;
}

.login-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #cccccc;
    margin-bottom: 25px;
    line-height: 1.6;
}

.login-container input {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    padding: 12px 15px;
    width: 100%;
    max-width: 300px;
    border: 1px solid #555;
    background: #000;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
}

.login-container input:focus {
    outline: none;
    border-color: #888;
}

.login-button {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding: 12px 35px;
    background: #ffffff;
    color: #000;
    border: none;
    cursor: pointer;
    letter-spacing: 2px;
    font-weight: 500;
}

.login-button:hover {
    background: #cccccc;
}

.login-warning {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    color: #666;
    margin-top: 40px;
    letter-spacing: 0.5px;
    line-height: 1.5;
}

.depart-link {
    color: #888;
    text-decoration: underline;
}

.depart-link:hover {
    color: #aaa;
}


/* ========================================
   INFO BUTTON & NOTICE POPUP
   ======================================== */

.info-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 20px;
    cursor: pointer;
    z-index: 2000;
    transition: all 0.3s;
}

.info-button:hover {
    background: #ffffff;
    color: #000;
}

.notice-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notice-overlay.active {
    display: flex;
}

.notice-box-popup {
    background: #000;
    border: 2px solid #ffffff;
    padding: 40px;
    max-width: 500px;
    position: relative;
    font-family: 'IBM Plex Mono', monospace;
}

.notice-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.notice-close:hover {
    color: #999;
}

.notice-box-popup h2 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: normal;
}

.notice-box-popup p {
    font-size: 13px;
    color: #cccccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.notice-box-popup ul {
    margin: 15px 0 15px 20px;
    color: #cccccc;
}

.notice-box-popup ul li {
    font-size: 13px;
    margin-bottom: 8px;
}

.notice-box-popup strong {
    color: #ffffff;
}

.continue-text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 14px !important;
}

@media (max-width: 768px) {
    .notice-box-popup {
        padding: 30px 25px;
        max-width: 90%;
    }
}


/* ========================================
   FOOTER EMAIL LINK
   ======================================== */

.footer-email-link {
    color: #66ff66;
    transition: all 0.2s;
}

.footer-email-link:hover {
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    padding: 2px 5px;
    margin: -2px -5px;
}

