
/* Beautiful Category Widget Styles */
.bcw-widget-container {
    font-family: "Tahoma", Arial, sans-serif;
    direction: rtl;
}

.bcw-category-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bcw-category-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bcw-category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.bcw-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.bcw-category-banner {
    height: 80px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.bcw-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    transition: all 0.3s ease;
}

.bcw-category-item:hover .bcw-category-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.bcw-category-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.bcw-category-name {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex: 1;
    text-align: right;
    padding-right: 8px;
}

.bcw-category-count {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.bcw-category-item:hover .bcw-category-count {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.bcw-category-count span {
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bcw-category-banner {
        height: 70px;
    }
    
    .bcw-category-name {
        font-size: 16px;
    }
    
    .bcw-category-count {
        width: 35px;
        height: 35px;
    }
    
    .bcw-category-count span {
        font-size: 12px;
    }
}

/* Admin Styles */
.bcw-upload-image-button {
    margin-top: 5px;
}

.bcw-image-preview img {
    border: 2px solid #ddd;
}
