/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'HomeVideo';
    src: url('../assets/fonts/HomeVideo-Regular.ttf') format('truetype');
}

body {
    font-family: 'HomeVideo', monospace;
    overflow: hidden;
    background: #000;
    color: #fff;
}

#app {
    width: 100vw;
    height: 100vh;
    position: relative;
}

/* Work in Progress Banner */
.wip-banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: #fff;
    z-index: 999;
    animation: blink 2s step-end infinite;
    pointer-events: none;
}

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

/* Canvas Container */
#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Loading Screen */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Small Loader (for van switching) */
#small-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 500;
    pointer-events: none;
}

#small-loader .loader {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 0;
}

#loading-text {
    font-size: 16px;
    color: #fff;
}

/* UI Overlay */
#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#ui-overlay > * {
    pointer-events: auto;
}

/* Logo - Top Center */
.logo-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.logo {
    height: 80px;
    width: auto;
}

/* Navigation Arrows */
.arrow-left,
.arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}

.arrow-left:hover,
.arrow-right:hover {
    color: #ff0000;
}

/* FPS Counter - Top Right */
#fps-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    color: #fff;
}

/* Van Selector Panel - Top Left */
.van-selector-panel {
    position: absolute;
    left: 20px;
    top: 20px;
    max-width: 300px;
}

.van-selector-panel h2 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

.van-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.van-item {
    cursor: pointer;
    padding: 0px 0;
    color: #fff;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.van-item:hover {
    color: #ff0000;
}

.van-item.active {
    color: #fff;
}

.van-arrow {
    opacity: 0;
    font-size: 16px;
}

.van-item.active .van-arrow {
    opacity: 1;
}

/* Comment out thumbnail styles for future use */
/*
.van-thumbnail {
    width: 80px;
    height: 60px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.van-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
*/

.van-name {
    font-size: 16px;
    color: inherit;
}

/* Controls Info - Bottom Left */
.controls-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    max-width: 300px;
}

.controls-info h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

.controls-info ul {
    list-style: none;
}

.controls-info li {
    font-size: 16px;
    margin-bottom: 5px;
    color: #fff;
}

.controls-info strong {
    color: #fff;
}

/* Model Info Panel - Bottom Right */
.info-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    max-width: 300px;
}

.info-panel h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #fff;
}

#van-name {
    font-size: 16px;
    margin-bottom: 5px;
    color: #fff;
}

#van-details {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
}

#van-details strong {
    color: #fff;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.van-selector-panel,
.controls-info,
.info-panel {
    animation: fadeIn 0.5s ease;
}
