/* Homepage-Specific Styles */

/* Page-specific monitor overrides */
.monitor-container {
    width: 100%;
    margin: 40px auto;
    padding: 60px 40px 80px;
    box-sizing: border-box;
}

.monitor-container::before {
    top: 20px;
    width: 60px;
    height: 10px;
    border-radius: 5px;
}

.screen {
    border: 15px solid #5a5a5a;
    border-radius: 10px;
    padding: 40px;
}

header {
    margin-bottom: 40px;
    animation: flicker 0.1s infinite alternate;
}

nav {
    margin-bottom: 40px;
}

.nav-btn.active {
    background: #a3a3ff;
    color: #3e31a2;
}

.content-box {
    padding: 25px;
    margin-bottom: 20px;
    line-height: 1.8;
}

h2 {
    font-size: 16px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

.pixel-divider {
    margin: 20px 0;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
}

/* Section Navigation */
.section {
    display: none;
    animation: fadeIn 0.3s;
}

.section.active {
    display: block;
}

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

/* List Styles */
ul {
    list-style: none;
    padding-left: 20px;
}

li::before {
    content: '▶ ';
    color: #7c70da;
}

li {
    margin-bottom: 10px;
    color: #a3a3ff;
}

/* Games Grid Layout */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.game-card {
    flex-direction: column;
    transition: transform 0.2s;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: #7c70da;
    background: rgba(124, 112, 218, 0.15);
}

.game-card.coming-soon {
    opacity: 0.6;
    cursor: default;
}

.game-card.coming-soon:hover {
    transform: none;
}

/* Mini Monitor Overrides for Main Page */
.mini-monitor {
    padding: 26px 20px 36px;
    border-radius: 12px;
    box-shadow: 
        0 0 30px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.mini-monitor::before {
    top: 10px;
    width: 40px;
    height: 8px;
    border-radius: 4px;
}

.monitor-controls {
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
}

.monitor-buttons {
    gap: 10px;
}

.monitor-button {
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a1a;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 2px 2px rgba(255, 255, 255, 0.1);
}

.monitor-button.power::after {
    width: 6px;
    height: 6px;
    box-shadow: 0 0 8px #44ff44;
}

.monitor-year {
    font-size: 13px;
    margin-left: 10px;
}

.mini-screen {
    background: #3e31a2;
    border: 8px solid #5a5a5a;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(124, 112, 218, 0.3);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-screen::before {
    z-index: 2;
}

.mini-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 1;
}

.coming-soon-text {
    font-size: 48px;
    color: #7c70da;
    animation: blink 1s infinite;
    text-shadow: 2px 2px 0 #5050c8;
}

.game-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.game-title {
    color: #a3a3ff;
    font-size: 11px;
    text-shadow: 1px 1px 0 #5050c8;
}

/* Timeline Wrapper - Timeline left, Content right */
.timeline-wrapper {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: flex-start;
}

/* Timeline Container - now narrower */
.timeline-container {
    position: relative;
    padding: 20px 0;
    flex-shrink: 0;
    width: 100px;
}

/* Timeline Vertical Line */
.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        #7c70da 10%, 
        #7c70da 90%, 
        transparent 100%);
    box-shadow: 0 0 10px rgba(124, 112, 218, 0.5);
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(163, 163, 255, 0.8);
}

.timeline-item.active .timeline-dot {
    background: #a3a3ff;
    box-shadow: 0 0 25px rgba(163, 163, 255, 1);
    animation: blink 1s infinite;
    border-radius: 0;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* Timeline Node */
.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
}

/* Timeline Dot */
.timeline-dot {
    width: 18px;
    height: 18px;
    background: #7c70da;
    border: 3px solid #3e31a2;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(124, 112, 218, 0.6);
    transition: all 0.3s;
}

/* Timeline Year - now above the dot */
.timeline-year {
    font-size: 10px;
    color: #a3a3ff;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 1px 1px 0 #5050c8;
    order: -1;
}

/* Timeline Label - hidden by default, shown on hover */
.timeline-label {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 20px;
    background: rgba(26, 26, 46, 0.95);
    border: 2px solid #7c70da;
    border-radius: 5px;
    padding: 8px 15px;
    color: #a3a3ff;
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 100;
}

.timeline-item:hover .timeline-label {
    opacity: 1;
}

.timeline-item.active .timeline-label {
    opacity: 1;
    background: rgba(163, 163, 255, 0.15);
    border-color: #a3a3ff;
    color: #fff;
    visibility: hidden;
}

/* Timeline Story Container - now next to timeline */
.timeline-story-container {
    flex: 1;
    position: relative;
    min-height: 300px;
}

/* Timeline Story */
.timeline-story {
    display: none;
    animation: fadeInStory 0.4s ease-out;
    background: rgba(163, 163, 255, 0.05);
    border: 2px solid #7c70da;
    border-radius: 8px;
    padding: 0;
    position: relative;
}

.timeline-story.active {
    display: block;
}

@keyframes fadeInStory {
    from { 
        opacity: 0; 
        transform: translateX(-20px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

/* Story Header - Fixed at top */
.story-header {
    position: sticky;
    top: 0;
    background: rgba(62, 49, 162, 0.95);
    border-bottom: 2px solid #7c70da;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px 6px 0 0;
    z-index: 10;
}

.story-header h3 {
    margin: 0;
    color: #a3a3ff;
    font-size: 13px;
    text-shadow: 1px 1px 0 #5050c8;
}

/* Story Close Button */
.story-close-btn {
    background: rgba(124, 112, 218, 0.3);
    border: 2px solid #7c70da;
    color: #a3a3ff;
    font-size: 18px;
    line-height: 1;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.story-close-btn:hover {
    background: rgba(163, 163, 255, 0.3);
    border-color: #a3a3ff;
    color: #fff;
    transform: scale(1.1);
}

/* Story Content */
.timeline-story p,
.timeline-story .c64-story-grid,
.timeline-story .pixel-divider,
.timeline-story .story-footer {
    padding: 0 20px;
}

.timeline-story .story-footer {
    padding: 12px 20px;
}

.timeline-story > p:first-of-type {
    margin-top: 20px;
}

/* Story Footer - Fixed at bottom */
.story-footer {
    position: sticky;
    bottom: 0;
    background: rgba(62, 49, 162, 0.95);
    border-top: 2px solid #7c70da;
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 6px 6px;
    z-index: 10;
    margin-top: 20px;
}

.story-nav-btn {
    background: rgba(124, 112, 218, 0.3);
    border: 2px solid #7c70da;
    color: #a3a3ff;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'C64 Pro Mono', monospace;
}

.story-nav-btn:hover {
    background: rgba(163, 163, 255, 0.3);
    border-color: #a3a3ff;
    color: #fff;
    transform: translateY(-2px);
}

.story-nav-btn.story-close {
    background: rgba(163, 163, 255, 0.2);
}

.c64-story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.c64-image-placeholder {
    background: rgba(124, 112, 218, 0.1);
    border: 2px solid #7c70da;
    padding: 10px;
    text-align: center;
    color: #a3a3ff;
    font-size: 9px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.c64-image-placeholder:hover {
    background: rgba(124, 112, 218, 0.2);
    border-color: #a3a3ff;
    transform: translateY(-2px);
}

.c64-image-placeholder img {
    max-width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border: 2px solid #5050c8;
    box-shadow: 2px 2px 0 #5050c8;
    cursor: pointer;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

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

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    border: 5px solid #7c70da;
    box-shadow: 0 0 50px rgba(124, 112, 218, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #a3a3ff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: all 0.2s;
}

.lightbox-close:hover {
    color: #7c70da;
    transform: scale(1.2);
}

.lightbox-caption {
    text-align: center;
    color: #a3a3ff;
    font-size: 14px;
    margin-top: 15px;
    text-shadow: 2px 2px 0 #5050c8;
}

@keyframes zoomIn {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive Styles (768px) */
@media (max-width: 768px) {
    .monitor-container {
        margin: 10px;
        padding: 30px 15px 50px;
    }
    
    .screen {
        padding: 15px;
        border-width: 8px;
    }
    
    header {
        margin-bottom: 30px;
    }
    
    h1 {
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 1.5;
    }
    
    h2 {
        font-size: 12px;
    }
    
    .cursor {
        width: 8px;
        height: 14px;
    }
    
    .nav-btn {
        font-size: 8px;
        padding: 10px 15px;
        gap: 10px;
    }
    
    nav {
        gap: 10px;
    }
    
    .content-box {
        font-size: 9px;
        padding: 15px;
        line-height: 1.6;
    }
    
    p {
        margin-bottom: 12px;
    }
    
    ul {
        padding-left: 15px;
    }
    
    li {
        margin-bottom: 8px;
    }
    
    footer {
        font-size: 7px;
        margin-top: 30px;
    }
    
    .pixel-divider {
        margin: 15px 0;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .game-year {
        font-size: 9px;
    }
    
    .game-title {
        font-size: 9px;
    }
    
    img[alt="Sönke Schultz"] {
        max-width: 120px !important;
        width: 120px !important;
    }
    
    .c64-story-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
            .timeline-wrapper {
                flex-direction: column;
                gap: 20px;
            }
            
            .timeline-container {
                width: 100%;
                padding: 20px 0;
                display: flex;
                justify-content: space-around;
            }
            
            .timeline-line {
                display: none;
            }
            
            .timeline-item {
                margin-bottom: 0;
            }
            
            .timeline-dot {
                width: 16px;
                height: 16px;
            }
            
            .timeline-year {
                font-size: 9px;
            }
            
            .timeline-label {
                position: static;
                transform: none;
                margin: 8px 0 0 0;
                font-size: 9px;
                padding: 6px 10px;
                opacity: 1;
            }
            
            .timeline-story {
                padding: 0;
            }
            
            .timeline-story p,
            .timeline-story .c64-story-grid,
            .timeline-story .pixel-divider {
                padding: 0 15px;
            }
            
            .timeline-story .story-footer {
                padding: 10px 15px;
            }
            
            .timeline-story > p:first-of-type {
                margin-top: 15px;
            }
            
            .timeline-story > :last-child {
                padding-bottom: 15px;
            }
            
            .story-header {
                padding: 10px 15px;
            }
            
            .story-header h3 {
                font-size: 11px;
            }
            
            .story-close-btn {
                width: 24px;
                height: 24px;
                font-size: 16px;
            }
            
            .story-footer {
                padding: 10px 15px;
            }
            
            .story-nav-btn {
                font-size: 10px;
                padding: 6px 12px;
            }
            
            .timeline-story-container {
                min-height: auto;
            }
        }

/* Mobile Responsive Styles (480px) */
@media (max-width: 480px) {
    .monitor-container {
        margin: 5px;
        padding: 20px 10px 40px;
    }
    
    .screen {
        padding: 10px;
        border-width: 5px;
    }
    
    h1 {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
    
    h2 {
        font-size: 10px;
    }
    
    .nav-btn {
        font-size: 7px;
        padding: 8px 12px;
    }
    
    .content-box {
        font-size: 8px;
        padding: 12px;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .coming-soon-text {
        font-size: 36px;
    }
    
    img[alt="Sönke Schultz"] {
        max-width: 100px !important;
        width: 100px !important;
    }
    
    .c64-story-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
            .timeline-wrapper {
                flex-direction: column;
            }
            
            .timeline-container {
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 15px;
                padding: 15px 0;
            }
            
            .timeline-line {
                display: none;
            }
            
            .timeline-item {
                margin-bottom: 0;
            }
            
            .timeline-dot {
                width: 14px;
                height: 14px;
                border-width: 2px;
            }
            
            .timeline-year {
                font-size: 8px;
            }
            
            .timeline-label {
                position: static;
                transform: none;
                margin: 6px 0 0 0;
                font-size: 8px;
                padding: 5px 8px;
                opacity: 1;
            }
            
            .timeline-story {
                padding: 0;
            }
            
            .timeline-story p,
            .timeline-story .c64-story-grid,
            .timeline-story .pixel-divider {
                padding: 0 12px;
            }
            
            .timeline-story .story-footer {
                padding: 8px 12px;
            }
            
            .timeline-story > p:first-of-type {
                margin-top: 12px;
            }
            
            .timeline-story > :last-child {
                padding-bottom: 12px;
            }
            
            .story-header {
                padding: 8px 12px;
            }
            
            .story-header h3 {
                font-size: 10px;
            }
            
            .story-close-btn {
                width: 22px;
                height: 22px;
                font-size: 14px;
            }
            
            .story-footer {
                padding: 8px 12px;
            }
            
            .story-nav-btn {
                font-size: 9px;
                padding: 6px 10px;
            }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-caption {
        font-size: 10px;
    }
}
