/* ===== BUSINESS OPPORTUNITIES SECTION ===== */
.business-opportunities {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.business-opportunities::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 88, 204, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Header */
.opportunities-header {
    margin-bottom: 3rem;
}

.header-content {
    text-align: center;
    margin-bottom: 2rem;
}

.opportunities-title {
    font-size: 3rem;
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.opportunities-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Controls */
.opportunities-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tabs-wrapper {
    position: relative;
    display: flex;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    padding: 0.375rem;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tabs-indicator {
    position: absolute;
    top: 0.375rem;
    left: 0.375rem;
    height: calc(100% - 0.75rem);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.opportunity-tab {
    position: relative;
    z-index: 2;
    padding: 0.875rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.opportunity-tab i {
    font-size: 1.125rem;
}

.opportunity-tab.active {
    color: var(--primary);
}

.opportunity-tab:hover:not(.active) {
    color: var(--text-primary);
}

.view-controls {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    padding: 0.375rem;
    border-radius: var(--radius-md);
}

.view-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn.active {
    background: var(--bg-primary);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.view-btn:hover:not(.active) {
    color: var(--text-primary);
}

/* Filters */
.opportunities-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-tag {
    padding: 0.625rem 1.25rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.filter-tag.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--text-white);
}

.sort-control {
    position: relative;
}

.sort-select {
    appearance: none;
    padding: 0.75rem 3rem 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:hover {
    border-color: var(--primary);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 88, 204, 0.1);
}

.sort-control::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Products Showcase */
.opportunities-container {
    min-height: 400px;
    position: relative;
}

.products-showcase {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.products-showcase.loading {
    opacity: 0.5;
}

.products-showcase.grid-view {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.products-showcase.list-view {
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Product Card - New Design */
.opportunity-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.opportunity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.opportunity-card-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background: var(--bg-secondary);
}

.opportunity-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.opportunity-card:hover .opportunity-card-image img {
    transform: scale(1.1);
}

.opportunity-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: var(--primary);
    color: var(--text-white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-semibold);
    backdrop-filter: blur(10px);
}

.opportunity-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.opportunity-card:hover .opportunity-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: scale(1.1);
}

.opportunity-card-content {
    padding: 1.5rem;
}

.opportunity-card-header {
    margin-bottom: 1rem;
}

.opportunity-card-title {
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opportunity-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item i {
    font-size: 0.75rem;
}

.rating {
    color: #FFC107;
}

.opportunity-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--primary);
}

.price-original {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-discount {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 107, 107, 0.1);
    color: var(--secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-semibold);
}

.opportunity-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.supplier-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.supplier-info i {
    color: var(--primary);
}

.quick-action {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--text-white);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: var(--font-medium);
    transition: all 0.2s ease;
}

.quick-action:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* List View Styles */
.products-showcase.list-view .opportunity-card {
    display: flex;
    align-items: center;
}

.products-showcase.list-view .opportunity-card-image {
    width: 200px;
    padding-top: 0;
    height: 150px;
    flex-shrink: 0;
}

.products-showcase.list-view .opportunity-card-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Loading Animation */
.products-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.loading-animation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.loading-dot {
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 50%;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Load More */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.modern-load-more {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: var(--radius-full);
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-load-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-load-more:hover::before {
    width: 400px;
    height: 400px;
}

.modern-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(6, 88, 204, 0.3);
}

.btn-counter {
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

.modern-load-more i {
    transition: transform 0.3s ease;
}

.modern-load-more:hover i {
    transform: translateY(2px);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-icon i {
    font-size: 3rem;
    color: var(--text-light);
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.reset-filters-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-weight: var(--font-medium);
    transition: all 0.2s ease;
}

.reset-filters-btn:hover {
    background: var(--primary);
    color: var(--text-white);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .opportunities-title {
        font-size: 2rem;
    }
    
    .opportunities-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tabs-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    
    .opportunity-tab {
        flex: 1;
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .opportunity-tab span {
        display: none;
    }
    
    .view-controls {
        align-self: flex-end;
    }
    
    .opportunities-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-tags {
        justify-content: center;
    }
    
    .sort-control {
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .products-showcase.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
    
    .products-showcase.list-view .opportunity-card {
        flex-direction: column;
    }
    
    .products-showcase.list-view .opportunity-card-image {
        width: 100%;
        height: 200px;
    }
}