/* Modern Clean Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    padding-bottom: 40px; /* Space for sticky footer */
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #000000;
}

.header h1 {
    color: #000000;
    font-size: 24px;
    letter-spacing: 3px;
    margin-bottom: 8px;
    font-weight: bold;
}

.header p {
    color: #666666;
    font-size: 12px;
    margin-bottom: 10px;
}

.current-time {
    color: #333333;
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Crypto Price Modules */
.crypto-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.crypto-module {
    background-color: #000000;
    border: 2px solid #333333;
    padding: 6px 10px;
    min-width: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.crypto-module.price-up {
    border-color: #00ff00;
    background-color: #001100;
    animation: flashGreen 0.5s ease-out;
}

.crypto-module.price-down {
    border-color: #ff0000;
    background-color: #110000;
    animation: flashRed 0.5s ease-out;
}

@keyframes flashGreen {
    0% { box-shadow: 0 0 15px #00ff00; }
    100% { box-shadow: none; }
}

@keyframes flashRed {
    0% { box-shadow: 0 0 15px #ff0000; }
    100% { box-shadow: none; }
}

.crypto-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.crypto-symbol {
    color: #ffffff;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 1px;
}

.crypto-price {
    color: #00ff00;
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
}

.crypto-module.price-down .crypto-price {
    color: #ff0000;
}

.crypto-change-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.crypto-arrow {
    font-size: 8px;
    font-weight: bold;
    line-height: 1;
}

.crypto-arrow.up {
    color: #00ff00;
}

.crypto-arrow.down {
    color: #ff0000;
}

.crypto-change {
    font-size: 9px;
    font-weight: bold;
    line-height: 1;
}

.crypto-change.positive {
    color: #00ff00;
}

.crypto-change.negative {
    color: #ff0000;
}

.console-container {
    background-color: #ffffff;
    border: 2px solid #000000;
    border-radius: 0;
    margin-bottom: 20px;
}

.console-header {
    background-color: #000000;
    color: #ffffff;
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: bold;
}

/* Header Links Container */
.header-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dict-link, .journal-link, .news-link {
    color: #00ff00;
    text-decoration: none;
    border: 1px solid #00ff00;
    padding: 3px 8px;
    background-color: transparent;
    font-size: 11px;
    font-weight: bold;
}

.dict-link:hover, .journal-link:hover, .news-link:hover {
    background-color: #00ff00;
    color: #000000;
}

.journal-link {
    color: #00aaff;
    border-color: #00aaff;
}

.journal-link:hover {
    background-color: #00aaff;
    color: #000000;
}

.news-link {
    color: #ff6600;
    border-color: #ff6600;
}

.news-link:hover {
    background-color: #ff6600;
    color: #000000;
}

.console {
    background-color: #000000;
    color: #ffffff;
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    font-family: 'Courier New', monospace;
}

.log-entry {
    margin-bottom: 8px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scramble effect styles */
.scramble-entry {
    opacity: 0.6;
    animation: scrambleFlicker 0.3s ease-in-out;
}

@keyframes scrambleFlicker {
    0% { opacity: 0.3; transform: translateX(-2px); }
    50% { opacity: 0.8; transform: translateX(2px); }
    100% { opacity: 0.6; transform: translateX(0); }
}

.scramble-entry .system {
    color: #888888;
    font-weight: normal;
}

.scramble-line {
    border-left: 2px solid #555555;
    padding-left: 10px;
    margin-bottom: 8px;
}

.scramble-text {
    color: #cccccc;
    font-weight: bold;
    letter-spacing: 1px;
    animation: scramblePulse 0.3s ease-in-out infinite alternate;
}

@keyframes scramblePulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.timestamp {
    color: #888888;
    font-size: 10px;
}

.system {
    color: #ffff00;
    font-weight: bold;
}

.ai {
    color: #00ff00;
}

.new-word {
    color: #ff00ff;
    font-weight: bold;
    font-size: 16px;
}

.definition {
    color: #00aaff;
    font-style: italic;
}

.evolved-word {
    color: #ff6600;
    font-weight: bold;
}

.status-bar {
    background-color: #f0f0f0;
    border-top: 1px solid #000000;
    padding: 8px 15px;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#status {
    color: #00aa00;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-bar {
    width: 120px;
    height: 12px;
    border: 1px solid #000000;
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #333333 0%, #666666 50%, #999999 100%);
    width: 0%;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

#progress-text {
    font-size: 10px;
    min-width: 30px;
}

/* Documentation Button */
.documentation-container {
    width: 100%;
    margin-top: 0;
}

.documentation-btn {
    width: 100%;
    background-color: #000000;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 12px 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.documentation-btn:hover {
    background-color: #00ff00;
    color: #000000;
}

.portal-btn {
    display: block;
    width: 100%;
    background-color: #000000;
    color: #00ff00;
    border: 2px solid #00ff00;
    padding: 12px 20px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    margin-top: 10px;
}

.portal-btn:hover {
    background-color: #00ff00;
    color: #000000;
}

/* Sticky Footer Styles */
.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    padding: 10px 0;
    text-align: center;
    z-index: 1000;
    font-family: 'Courier New', monospace;
}

.footer-text {
    color: #cccccc;
    font-size: 12px;
    margin-right: 8px;
}

.x-link {
    color: #cccccc;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    transition: color 0.3s ease;
}

.x-link:hover {
    color: #666666;
}

.x-link:focus {
    outline: 1px solid #cccccc;
    outline-offset: 2px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border: 2px solid #000000;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
}

.modal-header {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #00ff00;
}

.modal-header h2 {
    font-size: 18px;
    letter-spacing: 2px;
    margin: 0;
}

.close {
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 30px;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.8;
}

.modal-body h3 {
    color: #000000;
    margin: 25px 0 15px 0;
    font-size: 16px;
    letter-spacing: 1px;
    border-bottom: 1px solid #cccccc;
    padding-bottom: 5px;
}

.modal-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.modal-body .highlight {
    background-color: #ffffaa;
    padding: 2px 4px;
    font-weight: bold;
}

.modal-body .code {
    background-color: #f0f0f0;
    padding: 10px;
    border-left: 4px solid #000000;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

/* Navigation Styles */
.navigation {
    margin-top: 15px;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    border: 1px solid #000000;
    padding: 5px 10px;
    margin: 0 5px;
    font-size: 11px;
    font-weight: bold;
}

.nav-link:hover {
    background-color: #000000;
    color: #ffffff;
}

/* Journal Styles */
.journal-container {
    max-width: 1000px;
}

.journal-list {
    margin-top: 30px;
}

.journal-entry {
    background-color: #ffffff;
    border: 2px solid #000000;
    margin-bottom: 30px;
    padding: 0;
    overflow: hidden;
}

.journal-header {
    background-color: #000000;
    color: #ffffff;
    padding: 15px 20px;
    border-bottom: 2px solid #000000;
}

.journal-title {
    font-size: 18px;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.journal-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #cccccc;
}

.journal-content {
    padding: 25px;
    line-height: 1.8;
    font-size: 14px;
}

.journal-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.journal-content p:last-child {
    margin-bottom: 0;
}

.journal-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #cccccc;
    padding: 12px 20px;
    font-size: 12px;
    color: #666666;
}

/* Journal Count */
.journal-count {
    background-color: #f8f8f8;
    border: 1px solid #cccccc;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

/* Journal List Items */
.journal-list-item {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    margin-bottom: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #000000;
}

.journal-list-item:hover {
    background-color: #f8f8f8;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.journal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.journal-item-title {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin: 0;
    letter-spacing: 1px;
}

.journal-item-date {
    font-size: 11px;
    color: #666666;
    font-weight: normal;
}

.journal-item-subtitle {
    font-size: 14px;
    color: #333333;
    margin-bottom: 10px;
    font-style: italic;
}

.journal-item-preview {
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
}

.journal-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #888888;
    border-top: 1px solid #eeeeee;
    padding-top: 8px;
}

.journal-item-words {
    font-weight: bold;
}

.journal-item-action {
    color: #0066cc;
    font-weight: bold;
}

/* Journal Modal Styles */
.journal-modal-content {
    max-width: 1000px;
    max-height: 85vh;
}

.journal-modal-body {
    padding: 0;
    max-height: calc(85vh - 100px);
    overflow-y: auto;
}

.journal-full-meta {
    background-color: #f8f8f8;
    border-bottom: 2px solid #dddddd;
    padding: 20px;
    font-size: 12px;
}

.journal-full-meta div {
    margin-bottom: 8px;
}

.journal-full-meta div:last-child {
    margin-bottom: 0;
}

.journal-full-content {
    padding: 30px;
    line-height: 1.8;
    font-size: 14px;
}

.journal-full-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.journal-full-content p:last-child {
    margin-bottom: 0;
}

/* News Styles */
.news-container {
    max-width: 1000px;
}

/* News Count */
.news-count {
    background-color: #f8f8f8;
    border: 1px solid #cccccc;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

/* News List Items */
.news-list-item {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    margin-bottom: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #ff6600;
}

.news-list-item.breaking-news {
    border-left-color: #ff0000;
    background-color: #fff5f5;
}

.news-list-item:hover {
    background-color: #f8f8f8;
    border-color: #ff6600;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.breaking-news:hover {
    border-color: #ff0000;
}

.news-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.news-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.breaking-badge {
    background-color: #ff0000;
    color: #ffffff;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border-radius: 3px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.news-category {
    background-color: #000000;
    color: #ffffff;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.news-item-date {
    font-size: 11px;
    color: #666666;
}

.news-item-headline {
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.news-item-location {
    font-size: 12px;
    color: #666666;
    font-weight: bold;
    margin-bottom: 10px;
}

.news-item-preview {
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 12px;
    text-align: justify;
}

.news-item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #888888;
    border-top: 1px solid #eeeeee;
    padding-top: 8px;
}

.news-item-action {
    color: #ff6600;
    font-weight: bold;
}

/* News Modal */
.news-modal-content {
    max-width: 1000px;
    max-height: 85vh;
}

.news-full-header {
    background-color: #f8f8f8;
    border-bottom: 2px solid #dddddd;
    padding: 20px;
}

.breaking-banner {
    background-color: #ff0000;
    color: #ffffff;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    margin: -20px -20px 15px -20px;
    animation: pulse 2s infinite;
}

.news-full-headline {
    font-size: 24px;
    font-weight: bold;
    color: #000000;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.news-full-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 12px;
    color: #666666;
}

.news-meta-item {
    border-right: 1px solid #cccccc;
    padding-right: 15px;
}

.news-meta-item:last-child {
    border-right: none;
    padding-right: 0;
}

.news-full-content {
    padding: 30px;
    line-height: 1.8;
    font-size: 14px;
}

.news-full-content p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Dictionary Styles */
.dictionary-container {
    background-color: #ffffff;
}

.word-count {
    background-color: #f8f8f8;
    border: 1px solid #cccccc;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    font-weight: bold;
}

.dictionary-list {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    min-height: 300px;
    padding: 20px;
}

.word-item {
    display: block;
    padding: 12px 15px;
    margin-bottom: 5px;
    background-color: #f9f9f9;
    border: 1px solid #dddddd;
    text-decoration: none;
    color: #000000;
    transition: all 0.2s ease;
}

.word-item:hover {
    background-color: #e9e9e9;
    border-color: #000000;
}

.word-item-term {
    font-weight: bold;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.word-item-definition {
    color: #666666;
    font-size: 13px;
    font-style: italic;
}

.loading {
    text-align: center;
    color: #666666;
    font-style: italic;
    padding: 40px;
}

/* Word Detail Page */
.word-detail-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #ffffff;
    min-height: 100vh;
}

.word-detail-header {
    margin-bottom: 30px;
}

.back-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #000000;
    padding: 5px 10px;
}

.back-link:hover {
    background-color: #000000;
    color: #ffffff;
}

.word-detail-content {
    line-height: 1.8;
}

.word-main-term {
    font-size: 36px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
}

.word-pronunciation {
    color: #666666;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 16px;
}

.word-main-definition {
    font-size: 18px;
    color: #333333;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f8f8f8;
    border-left: 4px solid #000000;
}

.word-example {
    font-size: 16px;
    color: #555555;
    font-style: italic;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #f0f0f0;
    border: 1px solid #dddddd;
}

.word-evolution-info {
    color: #666666;
    font-size: 12px;
    border-top: 1px solid #cccccc;
    padding-top: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-width: 100%;
    }
    
    body {
        padding-bottom: 35px;
    }
    
    .sticky-footer {
        padding: 8px 0;
    }
    
    .footer-text, .x-link {
        font-size: 11px;
    }
    
    .journal-container, .news-container {
        padding: 10px;
    }
    
    .crypto-container {
        gap: 5px;
    }
    
    .crypto-module {
        min-width: 110px;
        padding: 5px 8px;
    }
    
    .crypto-symbol {
        font-size: 8px;
    }
    
    .crypto-price {
        font-size: 9px;
    }
    
    .crypto-change {
        font-size: 6px;
    }
    
    .crypto-arrow {
        font-size: 7px;
    }
    
    .console {
        height: 300px;
        padding: 10px;
    }
    
    .header h1 {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .console-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-links {
        flex-direction: column;
        gap: 5px;
    }
    
    .dict-link, .journal-link, .news-link {
        font-size: 10px;
        padding: 4px 6px;
    }
    
    .status-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .progress-container {
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .journal-content, .news-full-content {
        padding: 15px;
        font-size: 13px;
    }
    
    .journal-meta, .news-item-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .journal-title, .news-item-headline {
        font-size: 16px;
    }
    
    .word-detail-container {
        padding: 20px 10px;
    }
    
    .word-main-term {
        font-size: 28px;
    }
    
    .documentation-btn {
        font-size: 10px;
        padding: 10px 15px;
    }
    
    .news-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .news-full-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .news-meta-item {
        border-right: none;
        padding-right: 0;
    }
    
    .news-full-headline {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    
    body {
        padding-bottom: 30px;
    }
    
    .sticky-footer {
        padding: 6px 0;
        flex-direction: column;
        gap: 2px;
    }
    
    .footer-text, .x-link {
        font-size: 10px;
    }
    
    .footer-text {
        margin-right: 0;
    }
    
    .crypto-container {
        flex-direction: column;
        align-items: center;
    }
    
    .crypto-module {
        width: 100%;
        max-width: 200px;
    }
    
    .console {
        height: 250px;
        font-size: 12px;
    }
    
    .header h1 {
        font-size: 16px;
        letter-spacing: 1px;
    }
    
    .header p {
        font-size: 10px;
    }
    
    .current-time {
        font-size: 9px;
    }
    
    .modal-body {
        padding: 15px;
        font-size: 13px;
    }
    
    .journal-content, .news-full-content {
        padding: 10px;
        font-size: 12px;
    }
    
    .word-main-term {
        font-size: 24px;
    }
    
    .word-main-definition {
        font-size: 16px;
        padding: 10px;
    }
    
    .word-example {
        font-size: 14px;
        padding: 10px;
    }
    
    .header-links {
        flex-direction: row;
        gap: 4px;
    }
    
    .dict-link, .journal-link, .news-link {
        font-size: 9px;
        padding: 3px 5px;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print Styles */
@media print {
    .console-container,
    .documentation-container,
    .navigation,
    .crypto-container,
    .sticky-footer {
        display: none;
    }
    
    .journal-entry, .news-list-item {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    
    .word-detail-container {
        padding: 20px 0;
    }
    
    body {
        color: #000000;
        background-color: #ffffff;
        padding-bottom: 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .console {
        background-color: #000000;
        color: #ffffff;
        border: 3px solid #ffffff;
    }
    
    .system {
        color: #ffff00;
    }
    
    .ai {
        color: #00ff00;
    }
    
    .new-word {
        color: #ff00ff;
    }
    
    .evolved-word {
        color: #ff6600;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .log-entry {
        animation: none;
    }
    
    .scramble-text {
        animation: none;
    }
    
    .progress-fill::after {
        animation: none;
    }
    
    .documentation-btn {
        transition: none;
    }
    
    .breaking-badge, .breaking-banner {
        animation: none;
    }
    
    .pulse {
        animation: none;
    }
    
    .crypto-module {
        transition: none;
    }
    
    .flashGreen, .flashRed {
        animation: none;
    }
    
    .x-link {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Keep the retro terminal aesthetic regardless of system preference */
    body {
        background-color: #ffffff;
        color: #000000;
    }
}

/* Focus Styles for Accessibility */
.dict-link:focus,
.journal-link:focus,
.news-link:focus,
.nav-link:focus,
.back-link:focus,
.documentation-btn:focus,
.word-item:focus,
.journal-list-item:focus,
.news-list-item:focus {
    outline: 2px solid #0066cc;
    outline-offset: 2px;
}

.close:focus {
    outline: 2px solid #ff0000;
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: #000000;
    color: #ffffff;
}

.console ::selection {
    background-color: #ffffff;
    color: #000000;
}

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #cccccc;
    border-radius: 50%;
    border-top-color: #666666;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Console Terminal Effects */
.console {
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
}

.console-header {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

/* Hover Effects */
.word-item, .journal-list-item, .news-list-item {
    transform: translateZ(0);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.word-item:hover, .journal-list-item:hover, .news-list-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Button Active States */
.documentation-btn:active {
    transform: translateY(1px);
}

.dict-link:active,
.journal-link:active,
.news-link:active,
.nav-link:active,
.back-link:active {
    transform: translateY(1px);
}
