/* 3D Model Viewer Styles */
.model-3d-container {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-left: 1px solid rgba(102, 126, 234, 0.25);
    border-right: 1px solid rgba(102, 126, 234, 0.25);
}

.model-3d-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.model-3d-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.control-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(102, 126, 234, 0.2);
    color: #cbd5e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    position: relative;
}

.control-btn-large {
    width: 60px !important;
    height: 60px !important;
    font-size: 1.5rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    animation: pulse-play 2s ease-in-out infinite;
}

.control-btn-large:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
}

.control-btn-large.playing {
    animation: none;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

@keyframes pulse-play {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7), 0 0 40px rgba(102, 126, 234, 0.4);
        transform: scale(1.05);
    }
}

.control-btn::after {
    content: attr(title);
    position: absolute;
    right: calc(100% + 10px);
    background: rgba(15, 23, 42, 0.95);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 1000;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.control-btn:hover::after {
    opacity: 1;
}

.control-btn:hover {
    background: rgba(102, 126, 234, 0.4);
    color: white;
    transform: scale(1.05);
}

.control-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6), 0 0 30px rgba(102, 126, 234, 0.3);
    }
}

.animation-controls {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    min-width: 200px;
}

.animation-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.animation-controls label i {
    color: #667eea;
}

.animation-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.animation-btn {
    padding: 0.6rem 1rem;
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #cbd5e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    text-align: left;
    font-weight: 500;
}

.animation-btn:hover {
    background: rgba(102, 126, 234, 0.3);
    color: white;
    transform: translateX(3px);
}

.animation-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.model-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 50;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-progress {
    width: 200px;
    height: 6px;
    background: rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.3s;
    border-radius: 10px;
}

.model-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ef4444;
    z-index: 50;
    background: rgba(15, 23, 42, 0.9);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.model-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.model-3d-header {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.model-3d-header i {
    font-size: 1.5rem;
    color: #667eea;
}

.model-3d-header h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
}

.model-3d-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.model-3d-info p {
    color: #cbd5e0;
    margin: 0.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.model-3d-info i {
    color: #667eea;
    width: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .model-3d-container {
        height: 400px;
    }
    
    .model-3d-controls {
        top: 10px;
        right: 10px;
        scale: 0.9;
    }
    
    .animation-controls {
        min-width: 150px;
    }
}

/* Fullscreen mode */
.model-3d-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.model-3d-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

.model-3d-container:fullscreen {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}
