/* Base styles */
body {
    margin: 0; 
    background: #000;
    overflow: hidden;
    position: fixed;  /* Add this */
    width: 100%;     /* Add this */
    height: 100%;    /* Add this */
    touch-action: none;
    font-family: Arial, sans-serif;
}

canvas { 
    display: block; 
}

/* Info overlay */
#info {
    position: fixed;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: white;
    pointer-events: none;
    z-index: 100;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.5);
}

/* Loading screen */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    background: rgba(0,0,0,0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Project info panel */
#projectInfoPanel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 80vh;    /* Limit height */
    overflow-y: auto;    /* Allow scrolling within panel */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    background: rgba(31, 41, 55, 0.95);
    transform: translateY(100%);
    transition: transform 0.5s ease;
    z-index: 1000;
    color: white;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.2);
}

#projectInfoPanel.translate-y-0 {
    transform: translateY(0);
}

/* Project info panel content */
.panel-content {
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.5rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

#projectTitle {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.panel-metadata {
    display: flex;
    align-items: flex-start;  /* Start alignment */
    gap: 2rem;  /* Meer ruimte tussen datum en categorie */
    color: rgba(209, 213, 219);
    margin: 1rem 0;  /* Consistent margin */
}

.metadata-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;  /* Ruimte tussen tekst en icoon */
}

.metadata-text {
    font-size: 0.875rem;  /* Iets kleinere tekst */
    margin-bottom: 0.25rem;  /* Extra ruimte onder tekst */
    color: rgb(209, 213, 219);
}

.metadata-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.panel-metadata .metadata-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.panel-metadata .metadata-text {
    order: -2; /* Plaatst tekst boven het icoon */
    margin-bottom: 0.25rem;
}

.panel-metadata svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

#projectDescription {
    color: rgba(209, 213, 219);
    line-height: 1.6;
    margin-bottom: 1rem;
}

#projectTags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.tags-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(147, 197, 253);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    height: 20px; /* Exacte hoogte voor alle tags */
}

.duration-icon {
    display: flex;
    align-items: center;
}

.duration-icon svg {
    width: 0.875rem;  /* Zelfde als font-size */
    height: 0.875rem; /* Zelfde als font-size */
    vertical-align: middle; /* Belangrijk voor uitlijning */
}

.duration-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.duration-text {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}





/* Project labels on cube */
.project-label {
    position: absolute;
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 100;
    text-align: center;
    white-space: nowrap;
}

.panel-metadata svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    flex-shrink: 0;  /* Voorkomt dat iconen krimpen */
}


/* Hover effects */
.hover-highlight:hover {
    background: rgba(59, 130, 246, 0.3);
}

/* Responsive styles */
@media (max-width: 768px) {
    #info {
        font-size: 14px;
        padding: 0 10px;
    }
    
    #projectInfoPanel {
        max-height: 70vh; /* Iets kleiner op mobiel */
        padding-bottom: env(safe-area-inset-bottom); /* Voor iOS notch */
    }
    
    .panel-content {
        padding: 1rem;
    }
    
    #projectDescription {
        max-height: 40vh; /* Beperk beschrijving hoogte */
        overflow-y: auto; /* Maak scrollbaar indien nodig */
        padding-right: 0.5rem;
    }
    
    #projectTitle {
        font-size: 1.25rem;
    }
    
    .panel-metadata {
        display: flex;
        align-items: center; /* Centreert items verticaal */
        gap: 1.5rem; /* Meer ruimte tussen datum en categorie */
        margin-bottom: 1rem;
        position: relative; /* Voor absolute positionering van tekst/iconen */
    }
    
    .panel-metadata svg {
        width: 16px;  /* Kleinere iconen */
        height: 16px;
        opacity: 0.8;  /* Subtiel effect */
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-box {
    display: flex;
    align-items: flex-start;  /* Start alignment voor betere controle */
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

/* Info icoon specifiek */
.info-box svg {
    width: 16px;  /* Zelfde grootte als andere iconen */
    height: 16px;
    opacity: 0.8;
    margin-top: 0.2rem;  /* Kleine aanpassing om visueel te centreren met de eerste tekstregel */
}

.info-box p {
    margin: 0;
    font-size: 0.875rem;
    color: rgb(209, 213, 219);
    line-height: 1.5;
}
