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

/* === ZÁKLADNÍ STYLY === */
body {
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    background-color: #000;
}

/* === CANVAS === */
#canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === LOADER === */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease;
}

.loader-content {
    text-align: center;
}

.loader h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #6ee7ff;
    font-weight: 300;
}

.loader .progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 auto;
}

.loader .progress-bar {
    height: 100%;
    width: 0%;
    background: #6ee7ff;
    transition: width 0.3s ease;
}

/* === UI OVERLAY === */
.ui-overlay {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ui-overlay h3 {
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 14px;
}

.instructions {
    font-size: 12px;
    margin-bottom: 10px;
}

/* === AUTHOR INFO === */
.author-info {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.author-info a {
    color: #6ee7ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* === INTERACTION HINT === */
.interaction-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(110, 231, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 231, 255, 0.3);
}

/* === ROOM SELECTOR (dočasný) === */
.room-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === INFO BUTTON === */
.info-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(110, 231, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 98;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.info-button:hover {
    background: #fff;
    transform: scale(1.1);
}

.info-button svg {
    width: 24px;
    height: 24px;
    fill: #000;
}

/* === INFO PANEL === */
.info-panel {
    position: fixed;
    top: 0;
    right: -35%;
    width: 33%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 99;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.info-panel.active {
    right: 0;
}

.info-panel::-webkit-scrollbar {
    width: 8px;
}

.info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.info-panel::-webkit-scrollbar-thumb {
    background: rgba(110, 231, 255, 0.5);
    border-radius: 4px;
}

.info-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(110, 231, 255, 0.8);
}

/* Tlačítko zavřít panel */
.close-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 101;
}

.close-panel:hover {
    transform: rotate(90deg);
}

/* Sekce v panelu */
.panel-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-section:last-child {
    border-bottom: none;
}

.panel-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 300;
    color: #6ee7ff;
}

.panel-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 400;
}

.panel-section p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.panel-section ul {
    list-style: none;
    padding: 0;
}

.panel-section li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
}

.panel-section li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #6ee7ff;
}

.room-selector label {
    margin-right: 10px;
    font-size: 14px;
}

.room-selector select {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
}

.room-selector select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.room-selector select option {
    background: #222;
    color: #fff;
}

/* === MOBILNÍ STYLY === */
@media (max-width: 768px) {
    .ui-overlay {
        bottom: 15px;
        left: 15px;
        padding: 12px;
    }
    
    .ui-overlay h3 {
        font-size: 13px;
    }
    
    .instructions {
        font-size: 11px;
    }
    
    .interaction-hint {
        font-size: 15px;
        padding: 12px 24px;
        bottom: 80px;
    }
    
    .room-selector {
        top: 15px;
        left: 15px;
        padding: 8px 12px;
    }
    
    .room-selector label {
        display: block;
        margin-bottom: 5px;
    }
    
    .room-selector select {
        width: 100%;
    }
    
    /* Info panel na mobilu - 50% šířky */
    .info-panel {
        width: 50%;
        right: -55%;
        padding: 20px;
    }
    
    /* Info button menší na mobilu */
    .info-button {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
    
    .info-button svg {
        width: 22px;
        height: 22px;
    }
    
    .panel-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .panel-section h2 {
        font-size: 20px;
    }
    
    .panel-section h3 {
        font-size: 16px;
    }
    
    .panel-section p {
        font-size: 14px;
    }
    
    .loader h2 {
        font-size: 20px;
    }
    
    .loader .progress {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .ui-overlay {
        bottom: 10px;
        left: 10px;
        padding: 10px;
    }
    
    .instructions {
        font-size: 10px;
    }
}

/* === CURSOR === */
body {
    cursor: default;
}

body.interactive {
    cursor: pointer;
}
