/* WebXR Studio Styles */

.webxr-main {
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    z-index: 1;
}

.webxr-header {
    text-align: center;
    margin-bottom: 3rem;
}

.webxr-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.webxr-header p {
    font-size: 1.2rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: #b0b0b0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
}

.tab-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.tab-btn i {
    font-size: 1.1rem;
}

.experimental {
    background: #ff6b6b;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 0.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Upload Section */
.upload-section {
    margin-bottom: 3rem;
}

.upload-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.upload-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.upload-card h2 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.upload-card p {
    color: #b0b0b0;
    margin-bottom: 2rem;
}

.upload-area {
    border: 2px dashed #667eea;
    border-radius: 15px;
    padding: 3rem 2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.upload-area:hover {
    border-color: #764ba2;
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: #764ba2;
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-content {
    pointer-events: none;
}

.upload-content i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
    display: block;
}

.upload-content p {
    color: #b0b0b0;
    margin: 0;
}

.upload-link {
    color: #667eea;
    text-decoration: underline;
    cursor: pointer;
}

/* Upload Progress */
.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

#progressText {
    color: #b0b0b0;
    font-size: 0.9rem;
    margin: 0;
}

/* Format Info */
.format-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.format-info h4 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.format-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.format-info li {
    padding: 0.5rem 0;
    color: #b0b0b0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.format-info li:last-child {
    border-bottom: none;
}

.format-info strong {
    color: #ffffff;
    font-weight: 600;
}

/* Preview Section */
.preview-section {
    margin-bottom: 3rem;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.preview-card h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
}

.preview-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.model-viewer {
    width: 100%;
    height: 400px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.preview-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.preview-controls button {
    width: 100%;
    max-width: 250px;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #666;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* XR Instructions */
.xr-instructions {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.xr-instructions h3 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.instruction-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.instruction-item i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.instruction-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.instruction-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Navigation active state */
.nav-links a.active {
    color: #667eea;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .webxr-header h1 {
        font-size: 2rem;
    }
    
    .webxr-header p {
        font-size: 1rem;
    }
    
    .upload-card,
    .preview-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
    
    .model-viewer {
        height: 300px;
    }
    
    .instructions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .instruction-item {
        padding: 1rem;
    }
}

/* A-Frame Scene Styling */
#xrScene {
    border: none !important;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

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

/* Error States */
.error-message {
    background: rgba(255, 69, 69, 0.1);
    border: 1px solid rgba(255, 69, 69, 0.3);
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}

.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    text-align: center;
}
