/* ============================================
   BUSINESSES SECTION - Feature-level CSS
   Reusable across all applications
   ============================================ */

/* Businesses Container */
.businesses-container {
    padding: 0;
    max-width: 100%;
    margin: 0;
}

/* Category Pills Scrollbar */
.category-pills::-webkit-scrollbar {
    height: 6px;
}

.category-pills::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.category-pills::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.category-pills::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Pill Count Badge */
.pill-count {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
    font-weight: 500;
}

.category-pill.active .pill-count {
    color: #000;
    font-weight: 700;
}

/* Shimmer Animation for Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Skeleton Loading Styles */
.category-pills-skeleton {
    opacity: 0.5;
}

.pill-image-skeleton {
    background: #e0e0e0 !important;
}

.pill-icon-skeleton {
    width: 24px;
    height: 24px;
    background: #ccc;
    border-radius: 4px;
}

.pill-label-skeleton {
    background: #e0e0e0;
    color: transparent !important;
    border-radius: 4px;
    padding: 2px 8px;
}

/* Pagination Styles */
.pagination-container {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 20px;
}

.pagination-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    transition: all 0.2s;
}

.pagination-btn:hover:not(.pagination-btn-disabled) {
    background: #f9fafb;
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-icon {
    width: 16px;
    height: 16px;
}

.pagination-info {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.pagination-separator {
    color: #999;
}

/* Loading State */
.businesses-container .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 1rem;
}

.businesses-container .loading-state .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.businesses-container .loading-state p {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Businesses Grid */
.businesses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 0;
    padding: 0rem;
}

/* ============================================
   Premium Business Card
   ============================================ */
.business-card-premium {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.business-card-premium:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

/* Cover Image with Logo */
.business-card-cover {
    position: relative;
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
}

.business-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.business-card-logo {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.business-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

/* Business Card Body */
.business-card-body {
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Identity Section */
.business-identity {
    margin-bottom: 4px;
}

.business-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.business-location {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.location-icon {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    flex-shrink: 0;
}

/* Sector Badge */
.business-sector {
    margin-bottom: 4px;
}

.sector-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #f3f4f6;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
}

.sector-icon {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

/* Tagline */
.business-tagline {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Description */
.business-description {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Business Card Actions */
.business-card-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.business-card-actions .btn-card-primary,
.business-card-actions .btn-card-secondary {
    flex: 1;
    font-size: 14px;
    padding: 10px 16px;
}

/* Empty State */
.businesses-container .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: 2rem;
}

.businesses-container .empty-state .empty-icon {
    width: 64px;
    height: 64px;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.businesses-container .empty-state h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.5rem 0;
}

.businesses-container .empty-state p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .businesses-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .business-card-premium {
        max-width: 100%;
    }
    
    .business-card-actions {
        flex-direction: column;
    }
    
    .business-card-actions .btn-card-primary,
    .business-card-actions .btn-card-secondary {
        width: 100%;
    }
}

/* Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
