/* Field Notes of Invisible Worlds - Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    background: #f4f1e8;
    color: #2c2416;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
    padding-top: 40px;
}

/* Permanent Quarantine Bar */
#quarantine-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2c2416;
    color: #ff9060;
    padding: 10px 20px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    text-align: center;
    z-index: 200;
    border-bottom: 2px solid #ff9060;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

#quarantine-bar:hover {
    background: #3a3020;
    border-bottom-color: #ffb080;
}

#quarantine-bar .bar-icon {
    display: inline-block;
    margin-right: 10px;
    animation: pulse-icon 2s infinite;
}

@keyframes pulse-icon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Quarantine Screen */
#quarantine-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a1612 0%, #2c2416 100%);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.quarantine-content {
    width: 100%;
    max-width: 700px;
    background: rgba(42, 36, 22, 0.95);
    border: 2px solid #ff9060;
    padding: 50px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 40px rgba(255, 144, 96, 0.3);
}

.quarantine-icon {
    text-align: center;
    color: #ff9060;
    font-size: 64px;
    margin-bottom: 20px;
}

.quarantine-title {
    font-family: Georgia, serif;
    text-align: center;
    color: #f4f1e8;
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: normal;
}

.quarantine-status {
    border-top: 1px solid #ff9060;
    border-bottom: 1px solid #ff9060;
    padding: 20px 0;
    margin: 20px 0;
    color: #ff9060;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
}

.quarantine-warning {
    color: #d4c5b0;
    font-size: 15px;
    line-height: 1.8;
    margin: 25px 0;
}

.quarantine-warning p {
    margin-bottom: 15px;
}

.system-status {
    border: 1px solid #666;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    margin: 25px 0;
    color: #8b7355;
    font-size: 13px;
}

.system-status div {
    margin-bottom: 5px;
}

.days-warning {
    color: #ff9060;
}

.enter-button {
    display: block;
    width: 100%;
    padding: 15px 40px;
    background: #2c2416;
    color: #f4f1e8;
    border: 2px solid #ff9060;
    font-family: Georgia, serif;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    text-align: center;
}

.enter-button:hover {
    background: #3a3020;
    border-color: #ffb080;
}

.disclaimer {
    text-align: center;
    margin-top: 20px;
    font-size: 10px;
    color: #666;
}

/* Timeline Container */
#timeline-container {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, #fff, #f8f5ed);
    border-bottom: 2px solid #d4c5b0;
    padding: 20px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
}

.timeline-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b7355;
    margin-bottom: 10px;
}

#timeline-track {
    position: relative;
    height: 50px;
    background: linear-gradient(to right, 
        #f5e5d0 0%,
        #f5d4a0 25%, 
        #ffb080 50%,
        #ff8060 70%, 
        #ff4444 85%, 
        #220000 100%);
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #ccc;
}

.phase-markers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.phase-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0,0,0,0.2);
}

#timeline-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 50px;
    background: transparent;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

#timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 45px;
    background: #2c2416;
    border: 2px solid #fff;
    cursor: grab;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#timeline-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
}

#timeline-slider::-moz-range-thumb {
    width: 12px;
    height: 45px;
    background: #2c2416;
    border: 2px solid #fff;
    cursor: grab;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#current-date {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
    letter-spacing: 1px;
}

#location-label {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
    color: #ff9060;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    text-transform: uppercase;
    min-height: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#location-label.visible {
    opacity: 1;
}

#status-bar {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 11px;
    color: #666;
    font-family: 'Courier New', monospace;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4caf50;
}

.status-indicator.warning {
    background: #ff9800;
}

.status-indicator.danger {
    background: #f44336;
    animation: pulse-glow 1s infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #f44336; }
    50% { opacity: 0.6; box-shadow: 0 0 10px #f44336; }
}

/* Main Content */
#main-content {
    margin-top: 180px;
    margin-left: auto;  /* Changed from 80px */
    margin-right: auto; /* Changed from 280px */
    max-width: 800px;
    min-width: 700px;  /* Prevents squeezing */
    padding: 20px; 
    min-height: calc(100vh - 180px);
    overflow-y: auto;
    transition: all 0.5s ease;
}

#entry-container {
    background: #fff;
    padding: 40px;
    border: 1px solid #d4c5b0;
    min-height: 600px;
    max-width: 100%; /* Add this to respect parent width */
    min-width: 600px;  /*keeps entry container wide */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.5s ease;
}

.entry-header {
    border-bottom: 1px solid #d4c5b0;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.entry-date {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b7355;
}

.entry-title {
    font-size: 28px;
    margin: 12px 0;
    font-weight: normal;
}

.entry-metadata {
    font-size: 13px;
    color: #666;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    margin-top: 10px;
}

.entry-content {
    line-height: 1.8;
    font-size: 16px;
}

.entry-content p {
    margin-bottom: 18px;
}

.data-block {
    background: #f8f5ed;
    border-left: 3px solid #d4c5b0;
    padding: 20px;
    margin: 25px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

/* Gradient Colors - Handled by JavaScript */
/* JS interpolates from light (#f2ede5) to dark (#2c2416) based on timeline position */
/* Special effects and animations below */

.glitch-text {
    display: inline;
    animation: text-glitch 3s infinite;
}

@keyframes text-glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(1px, -1px); }
    60% { transform: translate(-1px, 0); }
}

@keyframes container-pulse {
    0%, 100% { box-shadow: 0 2px 10px rgba(255, 0, 0, 0.3); }
    50% { box-shadow: 0 2px 20px rgba(255, 0, 0, 0.6); }
}

/* Hidden Elements */
.sponsor-content,
.ad-sidebar,
.corruption-warning {
    display: none;
}

.sponsor-content {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px;
    margin: 25px 0;
    font-size: 14px;
    border-radius: 3px;
}

.sponsor-label {
    font-weight: bold;
    color: #856404;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

.corruption-warning {
    background: #ff4444;
    color: #fff;
    padding: 15px;
    margin: 25px 0;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: warning-blink 1.5s infinite;
}

@keyframes warning-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Ad Sidebar */
.ad-sidebar {
    position: fixed;
    right: 20px;
    top: 200px;
    width: 200px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ad-sidebar {
    position: fixed;
    right: 0;
    top: 220px;
    width: 250px;
    background: #fff;
    border-left: 1px solid #ddd;
    padding: 15px;
    height: calc(100vh - 220px);
    overflow-y: auto;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    display: none; /* Still hidden initially */
}

.ad-space {
    margin-top: 15px;
    padding: 60px 20px;
    background: #f0f0f0;
    text-align: center;
    color: #999;
    border: 1px dashed #ccc;
}

.nav-wing {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 120px;
    background: rgba(44, 36, 22, 0.8);
    border: 2px solid #d4c5b0;
    color: #f4f1e8;
    font-size: 48px;
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
}

.nav-wing:hover:not(:disabled) {
    background: rgba(44, 36, 22, 0.95);
    width: 70px;
}

.nav-wing:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.nav-wing.nav-prev {
    left: 0;
    border-left: none;
    border-radius: 0 8px 8px 0;
}

.nav-wing.nav-next {
    right: 0;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.entry-link {
    padding: 20px 0;
}

.entry-link .link-title a {
    color: #2c2416;
    text-decoration: none;
    border-bottom: 2px solid #d4c5b0;
    font-size: 20px;
}

.entry-link .link-title a:hover {
    border-bottom-color: #8b7355;
}

.link-excerpt {
    margin: 15px 0;
    line-height: 1.6;
    color: #666;
}

.entry-type-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #d4c5b0;
    color: #2c2416;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 10px;
}

.tag {
    display: inline-block;
    padding: 3px 8px;
    background: #f8f5ed;
    border: 1px solid #d4c5b0;
    font-size: 11px;
    margin-right: 5px;
}

.entry-image {
    padding: 20px 0;
}

.image-wrapper {
    margin: 20px 0;
    border: 1px solid #d4c5b0;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

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

.entry-note {
    padding: 20px;
    background: #f8f5ed;
    border-left: 3px solid #d4c5b0;
}

.note-content {
    line-height: 1.6;
    font-size: 16px;
}

/* Responsive - mobile only */
@media (max-width: 768px) {
    #main-content {
        min-width: auto; /* Remove min-width constraint on mobile */
        padding: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }

    #entry-container {
        min-width: auto;  /* Add this to remove min-width on mobile */
    }
    
    .nav-wing {
        width: 40px;
        height: 80px;
        font-size: 32px;
    }
    
    .ad-sidebar {
        display: none !important;
    }
}