/* طراحی آکواریوم شیک */
.vps-search-container {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.vps-aquarium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.03;
    border-radius: 20px;
    pointer-events: none;
}

.vps-search-box {
    position: relative;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.vps-search-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #5e35b1;
    margin: 0 0 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.vps-icon-fish {
    font-size: 32px;
    animation: vps-swim 3s ease-in-out infinite;
}

@keyframes vps-swim {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(5px) rotate(5deg); }
    75% { transform: translateX(-5px) rotate(-5deg); }
}

.vps-upload-area {
    position: relative;
    background: white;
    border: 3px dashed #b39ddb;
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vps-upload-area:hover {
    border-color: #7e57c2;
    background: #f5f5ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 87, 194, 0.15);
}

.vps-upload-area.vps-dragover {
    border-color: #5e35b1;
    background: #ede7f6;
    box-shadow: 0 0 30px rgba(94, 53, 177, 0.2);
}

.vps-upload-content {
    position: relative;
    width: 100%;
}

.vps-bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(126, 87, 194, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: vps-bubble-float 4s ease-in-out infinite;
}

.vps-bubble-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.vps-bubble-2 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: 1s;
}

.vps-bubble-3 {
    width: 50px;
    height: 50px;
    bottom: 10%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes vps-bubble-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
        opacity: 0.6;
    }
}

.vps-upload-icon {
    width: 80px;
    height: 80px;
    color: #7e57c2;
    margin: 0 auto 20px;
    display: block;
    animation: vps-icon-bounce 2s ease-in-out infinite;
}

@keyframes vps-icon-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.vps-upload-text {
    font-size: 18px;
    font-weight: 600;
    color: #5e35b1;
    margin: 0 0 8px 0;
}

.vps-upload-subtext {
    font-size: 14px;
    color: #9575cd;
    margin: 0;
}

.vps-preview-area {
    position: relative;
    width: 100%;
}

.vps-preview-area img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.vps-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.vps-remove-btn:hover {
    background: #d32f2f;
    transform: scale(1.1) rotate(90deg);
}

.vps-search-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vps-search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.vps-search-btn:hover::before {
    left: 100%;
}

.vps-search-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.vps-search-btn:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    opacity: 0.6;
}

.vps-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: vps-spin 0.8s linear infinite;
}

@keyframes vps-spin {
    to { transform: rotate(360deg); }
}

.vps-result-area {
    margin-top: 30px;
    animation: vps-fade-in 0.5s ease;
}

@keyframes vps-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vps-result-success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #66bb6a;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(102, 187, 106, 0.2);
}

.vps-result-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #ef5350;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    color: #c62828;
    box-shadow: 0 5px 20px rgba(239, 83, 80, 0.2);
}

.vps-product-card {
    display: flex;
    gap: 25px;
    align-items: center;
}

.vps-product-image {
    flex-shrink: 0;
}

.vps-product-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vps-product-info {
    flex-grow: 1;
}

.vps-product-name {
    font-size: 20px;
    font-weight: 700;
    color: #2e7d32;
    margin: 0 0 10px 0;
}

.vps-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #43a047;
    margin: 0 0 15px 0;
}

.vps-similarity-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd54f 0%, #ffb300 100%);
    color: #f57f17;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.vps-view-product-btn {
    display: inline-block;
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.vps-view-product-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 160, 71, 0.3);
    color: white;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .vps-search-box {
        padding: 25px 20px;
    }
    
    .vps-search-title {
        font-size: 20px;
    }
    
    .vps-upload-area {
        padding: 30px 20px;
        min-height: 200px;
    }
    
    .vps-product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .vps-product-image img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .vps-search-container {
        padding: 0 15px;
    }
    
    .vps-search-box {
        padding: 20px 15px;
    }
}
