/* Blog Posts Styles - External CSS to comply with CSP */

* {
    box-sizing: border-box;
}
body {
    background-color: #000;
    color: #00ff00;
    font-family: "Courier New", monospace;
    padding: 20px;
    margin: 0;
}
.container {
    margin: auto;
    min-height: 100vh;
}
header {
    text-align: left;
    color: #00ff00;
    margin-bottom: 20px;
}
h1 {
    margin: 0;
    color: #00ff00;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}
.content-section {
    border: 2px solid rgba(0, 255, 0, 0.5);
    padding: 20px;
    margin: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.content-section:hover {
    background-color: #001100;
    transform: scale(1.02);
}
.content-section h2 {
    color: #00ff00;
    margin: 0 0 10px 0;
}
.content-section .summary {
    color: #00cc00;
    font-size: 0.9em;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    overflow-y: auto;
}
.modal-content {
    margin: 20px auto;
    padding: 10px;
    width: 90%;
    background-color: #000;
    border: 2px solid rgba(0, 255, 0, 0.5);
    touch-action: pan-y;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 255, 0, 0.5);
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.modal-header h2 {
    margin: 0;
    color: #00ff00;
    font-size: 1.2em;
}
.modal-header a {
    color: #00ff00;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #00ff00;
    padding: 2px 5px;
    margin-left: 10px;
}
.modal-header a:hover {
    text-decoration: underline;
    background-color: #001100;
}
.modal-text {
    width: 100%;
    max-width: 100%;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: "Courier New", monospace;
    white-space: pre-wrap;
    border: 2px solid #00ff00;
    padding: 20px;
    border-radius: 5px;
    color: #00ff00;
}
.modal-text a {
    color: #00ff00;
    text-decoration: underline;
    font-weight: bold;
}
.modal-text a:hover {
    color: #00cc00;
    background-color: #001100;
}
.modal-text::-webkit-scrollbar {
    width: 12px;
}
.modal-text::-webkit-scrollbar-track {
    background: #000;
}
.modal-text::-webkit-scrollbar-thumb {
    background: #00ff00;
    border: 2px solid #000;
}
.modal-text::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}
.close-button {
    color: #00ff00;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #00ff00;
    padding: 0 5px;
    line-height: 1;
}
.close-button:hover,
.close-button:focus {
    color: #00ff00;
    text-decoration: none;
    cursor: pointer;
    background-color: #001100;
}
.modal[tabindex="0"]:focus {
    outline: none;
}
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .modal {
        padding-top: 20px;
    }
    .modal-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
        overflow-y: auto;
    }
    .modal-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .modal-header h2 {
        font-size: 0.9em;
        margin-bottom: 8px;
        flex: 1 0 100%;
    }
    .modal-header a {
        font-size: 0.7em;
        padding: 4px 8px;
        margin: 2px;
    }
    .content-section {
        padding: 15px;
    }
    .modal-text {
        font-size: 0.75em;
        padding: 15px;
    }
}
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }
    .modal-text {
        font-size: 0.65em;
        padding: 10px;
    }
}
.crt-divider {
    width: 100%;
    height: 1px;
    background-color: #00ff00;
    animation: scan 1s infinite;
    margin: 30px auto;
}
@keyframes scan {
    0% { opacity: 1; width: 0%; }
    50% { opacity: 0.5; }
    100% { opacity: 1; width: 100%; }
}
@keyframes flicker {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}
.flavor-text {
    color: #00ff00;
    font-family: "Courier New", monospace;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    font-style: italic;
    font-weight: bold;
    opacity: 0.9;
    animation: flicker 1s infinite;
}
.section-header {
    color: #00ff00;
    text-align: center;
    margin: 30px 0 20px 0;
    font-size: 1.5em;
}

/* Breadcrumb Navigation Styles */
.breadcrumb {
    font-size: 0.8em;
    color: #00aa00;
    margin-bottom: 20px;
    padding: 10px 0;
}

nav.breadcrumb a,
nav.breadcrumb a:link,
nav.breadcrumb a:visited,
nav.breadcrumb a:hover,
nav.breadcrumb a:active {
    color: #00ff00 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

nav.breadcrumb a:hover {
    color: #ffffff !important;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #004400;
}

/* Mobile breadcrumb optimization */
@media screen and (max-width: 768px) {
    .breadcrumb {
        display: none;
    }
}