/* ======== New Store Card Layout - Redesigned ======== */

/* Override existing store-card with new layout */
.store-card {
    background: white !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
    position: relative !important;
    overflow: visible !important; /* Changed from hidden to visible to show dropdown */
    cursor: pointer !important;
    padding: 0 !important;
    direction: rtl !important; /* Ensure RTL direction for proper positioning */
}

.store-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    transform: translateY(-2px) !important;
    border-color: #007bff !important;
}

/* Interactive Action Icons - Top Right */
.store-action-icons {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 10 !important;
    opacity: 0 !important;
    transform: translateX(10px) !important;
    transition: all 0.3s ease !important;
}

.store-card:hover .store-action-icons {
    opacity: 1 !important;
    transform: translateX(0) !important;
}

.action-icon {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    position: relative !important;
    font-size: 14px !important;
}

.action-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    z-index: -1;
    transition: all 0.3s ease;
}

.action-icon:hover::before {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Heart Icon Styling */
.heart-icon {
    color: #6c757d !important;
}

.heart-icon:hover {
    color: #e91e63 !important;
    transform: scale(1.1) !important;
}

.heart-icon.active {
    color: #e91e63 !important;
}

.heart-icon.active::before {
    background: rgba(233, 30, 99, 0.1) !important;
}

/* Loading state for heart icon */
.heart-icon.loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
    animation: heartLoading 1s infinite linear !important;
}

.heart-icon.loading::after {
    content: '' !important;
    position: absolute !important;
    width: 12px !important;
    height: 12px !important;
    border: 1px solid #e91e63 !important;
    border-top: 1px solid transparent !important;
    border-radius: 50% !important;
    animation: spin 0.8s linear infinite !important;
}

@keyframes heartLoading {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Share Icon Styling */
.share-icon {
    color: #6c757d !important;
}

.share-icon:hover {
    color: #2196F3 !important;
    transform: scale(1.1) !important;
}

/* Report Icon Styling */
.report-icon {
    color: #6c757d !important;
}

.report-icon:hover {
    color: #f44336 !important;
    transform: scale(1.1) !important;
}

/* Store Card Body */
.store-card-body {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Store Rating Section */
.store-rating-section {
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.user-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.rating-label {
    color: #6c757d;
    font-weight: 500;
    min-width: 45px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.rating-stars.readonly i {
    color: #ffc107 !important;
    cursor: default !important;
}

.rating-stars.interactive i {
    color: #dee2e6 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
}

.rating-stars.interactive i:hover {
    transform: scale(1.1) !important;
}

.rating-stars.interactive i.star-hover {
    color: #ffc107 !important;
}

.rating-stars.interactive i.star-filled {
    color: #ffc107 !important;
}

/* Rating Loading State */
.rating-stars.rating-loading {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.rating-stars.rating-loading::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid #ffc107;
    border-top: 1px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 5px;
}

.rating-value {
    font-weight: 600;
    color: #ffc107;
    font-size: 0.875rem;
}

.rating-count {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Store Avatar Container with Status Dot */
.store-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.store-avatar {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 24px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
    border: 2px solid white !important;
    position: relative !important;
}

/* Status Dot next to Avatar */
.store-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid white;
    z-index: 2;
}

.store-status-dot.status-active {
    background: #28a745;
    animation: statusPulse 2s infinite;
}

.store-status-dot.status-inactive {
    background: #dc3545;
}

.store-status-dot.status-pending {
    background: #ffc107;
    animation: statusPulse 2s infinite;
}

/* Store Card Footer with Action Buttons */
.store-card-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.store-action-buttons {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
}

.btn-store-action {
    flex: 1 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 16px !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 42px !important;
    text-decoration: none !important;
    outline: none !important;
}

.btn-store-action i {
    font-size: 0.875rem !important;
}

/* Details Button */
.btn-details {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
}

.btn-details:hover {
    background: #e9ecef !important;
    color: #212529 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

/* Visit Store Button - Primary */
.btn-visit {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    color: white !important;
    border: 1px solid transparent !important;
}

.btn-visit:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}

.btn-visit:active {
    transform: translateY(0) !important;
}

/* Responsive button adjustments */
@media (max-width: 480px) {
    .store-action-buttons {
        gap: 8px !important;
    }
    
    .btn-store-action {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        min-height: 36px !important;
    }
    
    .btn-store-action span {
        display: none !important;
    }
    
    .btn-store-action i {
        font-size: 1rem !important;
    }
}



/* Animation for status dot */
@keyframes statusPulse {
    0% { box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0.1); }
    100% { box-shadow: 0 0 0 2px rgba(40, 167, 69, 0.3); }
}

/* DevExtreme Container Overrides for Dropdown */
#storeList .dx-list-item {
    overflow: visible !important; /* Ensure dropdown can show outside list item */
    position: relative !important;
}

#storeList .dx-list-item-content {
    overflow: visible !important; /* Ensure dropdown can show outside content area */
}

#storeList .dx-list {
    overflow: visible !important; /* Ensure dropdown can show outside list */
}

.dx-scrollable-content {
    overflow: visible !important; /* Ensure dropdown can show outside scrollable content */
}

/* Additional container overrides */
.stores-container {
    overflow: visible !important;
}

/* Store List Layout - Bootstrap Grid */
#storeList {
    padding: 20px;
    background: transparent;
    width: 100%;
}

/* Override the complex store-card styles above with simpler ones */
#storeList .store-card {
    margin-bottom: 0 !important; /* Bootstrap row gap handles spacing */
    width: 100% !important;
    height: auto !important;
    display: block !important;
    flex-direction: initial !important;
    min-height: auto !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

/* Add hover effect for the entire card */
 



/* Responsive Design for Bootstrap Grid */

/* Large screens - 3 cards per row (Bootstrap lg-4) */
@media (min-width: 1200px) {
    #storeList {
        padding: 24px;
    }
}

/* Medium screens - 2 cards per row (Bootstrap md-6) */
@media (min-width: 768px) and (max-width: 1199px) {
    #storeList {
        padding: 20px;
    }
}

/* Small screens - 1 card per row (Bootstrap sm-12) */
@media (max-width: 767px) {
    #storeList {
        padding: 12px;
    }
    
    .store-card-body {
        padding: 16px;
        gap: 12px;
    }
    
    .store-avatar {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    .store-status-dot {
        width: 14px;
        height: 14px;
    }
    
    .store-action-icons {
        top: 8px !important;
        right: 8px !important;
        gap: 6px !important;
    }
    
    .action-icon {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
    
    /* Rating responsive adjustments */
    .store-rating-section {
        padding-top: 6px;
    }
    
    .average-rating {
        font-size: 0.8rem;
        gap: 6px;
        margin-bottom: 4px;
    }
    
    .user-rating {
        font-size: 0.75rem;
        gap: 4px;
    }
    
    .rating-label {
        min-width: 40px;
        font-size: 0.75rem;
    }
    
    .rating-stars.interactive i {
        font-size: 12px !important;
    }
    
    .rating-value {
        font-size: 0.8rem;
    }
    
    .rating-count {
        font-size: 0.75rem;
    }
}



/* 
=== MODERN STORE CARDS WITH BOOTSTRAP GRID ===
This CSS creates a modern, interactive store card layout:

🖥️  Large Screens (1200px+): 3 stores per row (col-lg-4)
💻  Medium Screens (768px-1199px): 2 stores per row (col-md-6)  
📱  Small Screens (< 768px): 1 store per row (col-sm-12)

🎨 Modern Features:
- Floating action icons (❤️ 🔗 🚩) in top-right
- Dual action buttons in footer (Details + Visit)
- Smooth hover animations & transitions
- Glass-morphism effects with backdrop blur
- Color-coded interactive elements
- Mobile-optimized responsive design

✨ Interactive Elements:
- Heart icon toggles favorite state
- Share icon for social sharing
- Flag icon for reporting
- Details button for more info
- Primary visit button with gradient

🚀 Benefits:
- No dropdown complexity
- Direct action access
- Modern UI/UX patterns
- Better accessibility
- Enhanced user experience
*/