/* Drag and Drop Styles */
.movie-card {
    transition: all 0.3s ease;
    position: relative;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.movie-card.dragging {
    opacity: 0.5;
    transform: rotate(5deg) scale(1.05);
    z-index: 1000;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.movie-card.drag-over {
    border: 3px dashed #f4c10f;
    background: rgba(244, 193, 15, 0.1);
    transform: scale(1.02);
}

.movie-card-placeholder {
    width: 300px;
    height: 400px;
    border: 3px dashed #f4c10f;
    border-radius: 15px;
    background: rgba(244, 193, 15, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px;
    animation: pulse 1.5s infinite;
}

.placeholder-content {
    text-align: center;
    color: #f4c10f;
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.placeholder-content p {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Touch/Mobile Drag Support */
.movie-card.touch-dragging {
    opacity: 0.8;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: none;
}

.movie-card.touch-drop-target {
    border: 3px solid #e91e63;
    background: rgba(233, 30, 99, 0.1);
    transform: scale(1.05);
}

/* Success Notification */
.drag-success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
}

.drag-success-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-icon {
    font-size: 1.2rem;
}

.notification-text {
    font-weight: bold;
}

/* Drag Handle (optional visual indicator) */
.movie-card::before {
    content: "⋮⋮";
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: grab;
    z-index: 10;
}

.movie-card:hover::before {
    opacity: 1;
}

.movie-card:active::before {
    cursor: grabbing;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .movie-card-placeholder {
        width: 250px;
        height: 350px;
        margin: 10px;
    }
    
    .drag-success-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }
    
    .drag-success-notification.show {
        transform: translateY(0);
    }
    
    .movie-card::before {
        display: none; /* Hide drag handles on mobile */
    }
}

/* Grid layout adjustments for drag and drop */
.main-container {
    position: relative;
}

.main-container.drag-active {
    min-height: 500px;
}

/* Smooth transitions for reordering */
.movie-card {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

/* Visual feedback for draggable items */
.movie-card[draggable="true"] {
    cursor: grab;
}

.movie-card[draggable="true"]:active {
    cursor: grabbing;
}

/* Highlight effect when hovering over drop zones */
.main-container:hover .movie-card:not(.dragging) {
    opacity: 0.8;
}

.main-container .movie-card.drag-over {
    opacity: 1;
}
