/* miniPIXLmixr Custom Styles */

/* Global Styles */
* {
    -webkit-tap-highlight-color: transparent;
}

body {
    overscroll-behavior: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Upload Slots */
.upload-slot {
    cursor: pointer;
    display: block;
    aspect-ratio: 1;
    transition: all 0.3s ease;
}

.upload-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.upload-slot:hover .upload-preview {
    border-color: #a855f7;
    transform: scale(1.05);
}

.upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-preview span {
    z-index: 1;
    color: white;
    font-weight: bold;
}

/* Style Buttons */
.style-btn {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.style-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.3);
}

.style-btn.selected {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    border-color: #a855f7;
    transform: scale(1.05);
}

/* Gallery Items */
.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.mint-btn {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: white;
    width: 100%;
}

.mint-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.4);
}

/* Loading Animation */
.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(168, 85, 247, 0.3);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Mobile Optimizations */
@media (max-width: 640px) {
    body {
        font-size: 16px; /* Prevent zoom on input focus */
    }
    
    button {
        min-height: 44px; /* Apple's recommended touch target size */
    }
    
    .style-btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Disabled State */
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: slideUp 0.3s ease;
    max-width: 90%;
}

@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.error {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

.toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}