/* Dark minimalist theme matching TV background */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    
    /* Radial dot pattern matching TV website */
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 8px 8px;
    background-position: 0 0;
}

#photoboard {
    position: absolute;
    left: 0;
    top: 0;
    width: 65%;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    z-index: 1;
}

.photo {
    position: absolute;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    
    /* Prevent dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.photo:hover {
    box-shadow: 0 8px 35px rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.photo:active {
    transform: scale(0.95);
}

/* Fullscreen overlay */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.fullscreen-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.fullscreen-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
    transition: all 0.2s ease;
}

.fullscreen-close:hover {
    transform: scale(1.1);
}

/* No photos message */
.no-photos {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    text-align: center;
    font-weight: 300;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes photoEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) rotate(0deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation));
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .fullscreen-close {
        top: -30px;
        right: -30px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .fullscreen-content {
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .fullscreen-close {
        top: 10px;
        right: 10px;
        position: fixed;
    }
}

/* Loading states */
.photo[data-loading="true"] {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.1);
}

/* Performance optimizations */
.photo {
    will-change: transform;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Scroll prevention */
html, body {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

/* Selection styling */
::selection {
    background: rgba(255, 255, 255, 0.2);
}

::-moz-selection {
    background: rgba(255, 255, 255, 0.2);
}

/* Focus outline for accessibility */
.photo:focus,
.fullscreen-close:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .photo {
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .fullscreen-close {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .photo {
        transition: none;
    }
    
    .fullscreen-overlay {
        animation: none;
    }
    
    @keyframes fadeIn {
        from, to {
            opacity: 1;
            transform: scale(1);
        }
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000;
    }
    
    .photo {
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    }
    
    .photo:hover {
        box-shadow: 0 8px 35px rgba(255, 255, 255, 0.3);
    }
}

#text-section {
    position: fixed;
    top: 0;
    right: 0;
    width: 35%;
    height: 100vh;
    padding: 40px;
    overflow-y: auto;
    z-index: 2;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.text-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.text-content strong {
    font-weight: 700;
}

.text-content p {
    margin-bottom: 24px;
    text-align: justify;
    hyphens: auto;
}

.text-content p:last-child {
    margin-bottom: 0;
} 