/* --- Moved from canon.html <style> block --- */
.world-widget {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    margin: 0 10px 20px 10px;
    padding: 15px;
    font-family: monospace;
    font-size: 0.9rem;
}

.world-status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.world-status-header h3 {
    margin: 0;
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: bold;
}

.world-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.world-stat-item {
    text-align: center;
    padding: 8px;
    background: white;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.world-stat-item:hover {
    background: rgba(0, 0, 128, 0.05);
    transform: translateY(-1px);
}

.stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2a4d69;
    font-family: monospace;
}

.stat-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: monospace;
}

.world-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    font-family: monospace;
    font-size: 0.85rem;
}

.world-detail-column {
    background: white;
    padding: 10px;
    border: 1px solid #e9ecef;
}

.world-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    transition: background-color 0.2s ease;
}

.detail-label {
    font-weight: bold;
    color: #2a4d69;
    text-transform: uppercase;
    font-family: monospace;
}

.detail-value {
    color: #333;
    font-family: monospace;
}

.world-messages {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    font-family: monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.world-messages:hover {
    background: rgba(0, 0, 128, 0.05);
}

.world-version {
    font-size: 11px;
    color: #666;
    margin-left: auto;
    font-family: monospace;
}

.world-advanced-sections {
    margin: 20px 0;
}

.world-section {
    margin-bottom: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
}

.section-title {
    margin: 0 0 12px 0;
    font-size: 1rem;
    font-weight: bold;
    color: #2a4d69;
    font-family: monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric-item {
    text-align: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.metric-item:hover {
    background: rgba(115, 75, 161, 0.05);
    transform: translateY(-1px);
}

.metric-bar {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-bottom: 6px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease-out;
}

.metric-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2a4d69;
    font-family: monospace;
    margin-bottom: 2px;
}

.metric-label {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
    font-family: monospace;
    letter-spacing: 0.3px;
}

.message-label {
    font-weight: bold;
    color: #2a4d69;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: monospace;
}

.message-item {
    color: #333;
    font-family: monospace;
    line-height: 1.3;
}

.message-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 0.6rem;
    color: #666;
    font-family: monospace;
}
/* --- End moved styles --- */
/*
 * canon.css: Extender/modifier for style.css
 * Only overrides or adds canon-specific styles. Loads after style.css.
 */

/* canon.css: Extender/modifier for style.css. Only canon-specific overrides below. */
#canon-container {
    --background-color: var(--page-background-color);
    --text-color: var(--canon-text-color);
    --primary-color: var(--canon-primary-color);
    --border-color: var(--canon-border-color);
    --link-color: var(--canon-text-color);
    --link-hover-color: var(--canon-link-hover-color);
}

#canon-container {
    color: var(--text-color);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#canon-container {
    max-width: 600px;
    margin: 30px auto 0 auto;
    padding: 10px;
    width: 90%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#canon-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

#canon-header img {
    width: 40px;
    height: 40px;
}

#canon-header h1 {
    color: var(--primary-color);
}

#canon-container .epoch-section {
    margin-bottom: 15px;
    text-align: left;
}

#canon-container .epoch-section h2 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
}

#canon-container .log-entry {
    font-size: 0.85rem;
    margin: 1px 0;
    padding: 3px 8px;
    text-align: left;
    font-family: monospace;
    margin-left: 8px;
    line-height: 1.3;
}

#canon-container .log-entry a {
    color: var(--link-color);
    text-decoration: none;
}

#canon-container .log-entry a:hover {
    color: var(--link-hover-color);
}

/* Mobile-first responsive styles */
@media (max-width: 600px) {
    #canon-container {
        margin: 0;
        padding: 0;
        max-width: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }
    #canon-header {
        gap: 8px;
        margin-bottom: 10px;
        padding: 5px 10px;
    }
    #canon-header img {
        width: 30px;
        height: 30px;
    }
    #canon-header h1 {
        font-size: 1.4rem;
    }
    #world-info {
        font-size: 0.75rem !important;
        margin-bottom: 5px !important;
        padding: 5px;
        line-height: 1.6;
        background-color: #f8f8f8;
        border: 1px solid #ddd;
        text-align: center !important;
    }
    #log-content {
        width: 100%;
        padding: 0;
        margin: 0;
    }
    #canon-container .log-entry {
        font-size: 0.9rem;
        margin: 0;
        margin-left: 0 !important;
        padding: 8px 10px 8px 10px;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        border: none;
        background-color: transparent;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    #canon-container .log-entry:nth-child(odd) {
        background-color: #f5f5f5;
        margin-left: 0;
    }
    #canon-container .log-entry:nth-child(even) {
        background-color: #ffffff;
        margin-left: 0;
    }
    #canon-container .log-entry code {
        font-size: 0.65em !important;
        color: #999;
        background: none;
        padding: 0;
        margin: 0;
        flex-shrink: 0;
    }
    #canon-container .log-entry span {
        flex: 1;
        margin-right: 8px;
    }
    #canon-container .log-entry a {
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 2px 1px;
        margin: -2px;
        min-height: 44px;
        display: inline;
        line-height: 1.4;
    }
}

/* Mobile responsive styles for advanced sections */
@media (max-width: 768px) {
    .world-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .world-advanced-sections {
        margin: 15px 0;
    }
    
    .world-section {
        margin-bottom: 15px;
        padding: 10px;
    }
    
    .section-title {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    .metric-item {
        padding: 6px;
    }
    
    .metric-value {
        font-size: 1rem;
    }
    
    .metric-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .world-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .world-stat-item {
        padding: 6px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
}
