/* 360° Viewer Button */
.gdrive-360-wrapper {
    display: inline-block;
    margin: 10px 0;
}

.gdrive-360-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.gdrive-360-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.4);
}

.gdrive-360-button:active {
    transform: translateY(0);
}

.gdrive-360-icon {
    flex-shrink: 0;
}

/* Modal */
.gdrive-360-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.gdrive-360-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.gdrive-360-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90vh;
    margin: 5vh auto;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Close Button */
.gdrive-360-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.gdrive-360-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Viewer Container */
.gdrive-360-viewer-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gdrive-360-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.gdrive-360-canvas:active {
    cursor: grabbing;
}

.gdrive-360-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

/* Loading */
.gdrive-360-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 5;
}

.gdrive-360-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4facfe;
    border-radius: 50%;
    animation: gdrive-360-spin 1s linear infinite;
}

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

.gdrive-360-loading p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.gdrive-360-progress {
    font-weight: bold;
    color: #4facfe;
}

/* Controls Hint */
.gdrive-360-controls-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: gdrive-360-fade-in 0.5s ease;
}

@keyframes gdrive-360-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gdrive-360-modal-content {
        width: 95%;
        height: 80vh;
        margin: 10vh auto;
    }
    
    .gdrive-360-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .gdrive-360-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .gdrive-360-controls-hint {
        font-size: 12px;
        padding: 8px 16px;
        bottom: 20px;
    }
    
    .gdrive-360-image {
        max-width: 95%;
        max-height: 85%;
    }
}

@media (max-width: 480px) {
    .gdrive-360-modal-content {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
    }
    
    .gdrive-360-controls-hint {
        bottom: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }
}
