/* Product Designer - Mockup Preview Specific Styles */

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mockup Container */
.mockup-stage {
    transition: all 0.3s ease;
    cursor: grab;
}

.mockup-stage:active {
    cursor: grabbing;
}

.mockup-wrapper {
    transition: transform 0.3s ease;
    position: relative;
}

/* Angle Buttons */
.angle-btn {
    transition: all 0.2s ease;
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 0.5rem;
    cursor: pointer;
}

.angle-btn:hover {
    background: #334155;
}

.angle-btn.active {
    border-color: #6366F1;
    background: rgba(99, 102, 241, 0.1);
}

.angle-btn.active span {
    color: #6366F1;
    font-weight: 600;
}

/* Background Options */
.bg-option {
    transition: all 0.2s ease;
    border-radius: 0.5rem;
    cursor: pointer;
}

.bg-option:hover {
    transform: scale(1.05);
}

.bg-option.active {
    border: 2px solid #6366F1;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

/* Thumbnail Strip */
.thumbnail-strip {
    scrollbar-width: thin;
    scrollbar-color: #6366F1 #334155;
}

.thumbnail-strip::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
    background: #334155;
    border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
    background: #6366F1;
    border-radius: 3px;
}

.thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}

.thumbnail-item {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    transform: translateY(-2px);
    border-color: #6366F1;
}

.thumbnail-item.active {
    border-color: #6366F1;
}

/* Export Packages */
.export-package {
    transition: all 0.2s ease;
}

.export-package:hover {
    transform: translateX(4px);
}

/* Format Buttons */
.format-btn {
    transition: all 0.2s ease;
    cursor: pointer;
}

.format-btn:hover {
    background: #334155;
}

.format-btn.active {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    border-color: transparent;
}

/* Action Buttons */
.action-btn {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.action-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.action-btn:active::after {
    width: 100px;
    height: 100px;
}

/* Design Overlay */
.design-overlay {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.design-overlay:hover {
    opacity: 1;
}

/* Mockup Image */
.mockup-image {
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Quick Actions */
.quick-action {
    transition: all 0.2s ease;
}

.quick-action:hover {
    transform: translateX(4px);
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Toast Notifications */
.toast-notification {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .lg\:w-\[400px\] {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #334155;
    }
    
    .lg\:w-\[380px\] {
        width: 100%;
        border-left: none;
        border-top: 1px solid #334155;
    }
}

@media (max-width: 768px) {
    .grid-cols-2.md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
}