/* Reusable Image Upload Component Styles */

.image-upload-component {
    width: 100%;
    margin-bottom: 1.5rem;
}

.upload-zone {
    border: 2px dashed var(--border-color, #333333);
    border-radius: var(--radius-lg, 12px);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-surface-light, #1A1A1A);
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent-green, #0E6B3B);
    background: rgba(14, 107, 59, 0.05);
}

.upload-prompt {
    pointer-events: none;
}

.upload-prompt i {
    font-size: 3rem;
    color: var(--accent-green, #0E6B3B);
    margin-bottom: 1rem;
    display: block;
}

.upload-prompt p {
    color: var(--text-primary, #FFFFFF);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.upload-prompt small {
    color: var(--text-muted, #B0B0B0);
    font-size: 0.9rem;
}

.file-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    pointer-events: auto;
    z-index: 10;
}

.upload-error {
    background: rgba(198, 40, 40, 0.1);
    border: 1px solid var(--accent-red, #C62828);
    border-radius: var(--radius-md, 8px);
    padding: 1rem;
    color: var(--accent-red, #C62828);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview {
    position: relative;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    border: 2px solid var(--border-color, #333333);
    background: var(--bg-surface-light, #1A1A1A);
    aspect-ratio: 1;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.remove-image:hover {
    background: var(--accent-red, #C62828);
    transform: scale(1.1);
}

.image-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 0.75rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.image-info span {
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Mobile Responsive */

@media (max-width: 768px) {
    .upload-zone {
        padding: 1.5rem;
    }
    
    .upload-prompt i {
        font-size: 2.5rem;
    }
    
    .upload-prompt p {
        font-size: 1rem;
    }
    
    .upload-prompt small {
        font-size: 0.85rem;
    }
    
    .image-preview-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
    
    .remove-image {
        width: 28px;
        height: 28px;
    }
    
    .image-info span {
        font-size: 0.7rem;
    }
}
