/* BSFTTUNE Drag & Drop Element Positioning Styles */

.bsfttune-element-sorter {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.bsfttune-element-sorter h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.bsfttune-element-sorter-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.4;
}

.bsfttune-element-zones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bsfttune-zone {
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 6px;
    min-height: 60px;
    padding: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.bsfttune-zone.zone-active {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.bsfttune-zone.zone-hover {
    border-color: #00a32a;
    background-color: #f0fff0;
}

.bsfttune-zone-label {
    position: absolute;
    top: -10px;
    left: 10px;
    background: #fff;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.bsfttune-zone-elements {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 40px;
}

.bsfttune-element-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    cursor: move;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.bsfttune-element-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.bsfttune-element-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    z-index: 1000;
}

.bsfttune-element-item.element-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bsfttune-element-item.element-price {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bsfttune-element-item.element-cart {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bsfttune-element-item.element-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    cursor: not-allowed;
    opacity: 0.7;
}

.bsfttune-element-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bsfttune-element-icon {
    font-size: 16px;
}

.bsfttune-element-name {
    font-weight: 600;
    font-size: 14px;
}

.bsfttune-element-drag-handle {
    font-size: 18px;
    opacity: 0.7;
    cursor: move;
}

.bsfttune-element-drag-handle:hover {
    opacity: 1;
}

/* Zone indicators */
.bsfttune-zone.zone-above-image .bsfttune-zone-label {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.bsfttune-zone.zone-below-image .bsfttune-zone-label {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.bsfttune-zone.zone-main-content .bsfttune-zone-label {
    background: #cce5ff;
    color: #0056b3;
    border-color: #80bdff;
}

/* Empty zone placeholder */
.bsfttune-zone-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    font-size: 13px;
    min-height: 40px;
}

.bsfttune-zone-empty::before {
    content: "📋";
    margin-right: 8px;
    opacity: 0.5;
}

/* Reset button */
.bsfttune-reset-positions {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.bsfttune-reset-positions:hover {
    background: #c82333;
}

/* Save indicator */
.bsfttune-save-indicator {
    position: fixed;
    top: 32px;
    right: 20px;
    background: #00a32a;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.bsfttune-save-indicator.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .bsfttune-element-sorter {
        padding: 15px;
    }
    
    .bsfttune-element-item {
        padding: 10px 12px;
    }
    
    .bsfttune-element-name {
        font-size: 13px;
    }
    
    .bsfttune-element-drag-handle {
        font-size: 16px;
    }
    
    .bsfttune-save-indicator {
        top: 46px; /* Account for mobile admin bar */
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
    }
}
