/* Custom styles for Script to Scene */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1b1e;
}

::-webkit-scrollbar-thumb {
    background: #3f4046;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4c4e55;
}

/* Scene card hover effect */
.scene-card {
    transition: all 0.3s ease;
}

.scene-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px -10px rgba(237, 116, 16, 0.15);
}

/* Image card animation */
.image-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Loading spinner pulse */
.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Toast notification slide-in */
.toast-enter {
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Button press effect */
button:active:not(:disabled) {
    transform: scale(0.98);
}

/* Drag and drop highlight */
.upload-zone-active {
    border-color: #ed7410 !important;
    background-color: rgba(237, 116, 16, 0.1) !important;
}

/* Text selection color */
::selection {
    background-color: rgba(237, 116, 16, 0.3);
    color: white;
}

/* Focus visible states for accessibility */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #ed7410;
    outline-offset: 2px;
}

/* Scene number badge */
.scene-number {
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ed7410, #de5a09);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Image overlay on hover */
.image-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-overlay {
    opacity: 1;
}

/* Progress bar */
.progress-bar {
    height: 4px;
    background: #1a1b1e;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ed7410, #f19132);
    border-radius: 2px;
    transition: width 0.3s ease;
}
