/**
 * Buyer List Page Styles
 * Styles for the buyer list page with filters and horizontal card layout
 */

/* ==========================================================================
   Banner Section
   ========================================================================== */
.buyer-list-banner {
    position: relative;
    width: 100%;
    height: 318px;
    overflow: hidden;
    background: #2d5016;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1)
    ),
    url('https://vn-open.123websitedev.com/wp-content/uploads/2025/10/bg-1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    max-width: 1320px;
    margin: 0 auto;
}

.banner-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
    max-width: 860px;
    margin: 0;
}

/* ==========================================================================
   Container & Wrapper
   ========================================================================== */

.buyer-list-content-wrapper {
    padding: 20px 20px 40px 20px;
    background-color: #F5F6FA;
}

.buyer-list-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* ==========================================================================
   Main Tabs: Buyers / Suppliers
   ========================================================================== */

.buyer-list-tabs {
    margin-top: 20px;
    margin-bottom: 0;
}

.tabs-container {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E0E0E0;
}

.tab-button {
    padding: 10px 16px;
    font-size: 20px;
    font-weight: 500;
    line-height: 18px;
    color: #000000;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 100px;
    border-radius: 0;
    margin-bottom: -2px;
    outline: none;
}

.tab-button:hover {
    color: #108D52;
}

.tab-button.active {
    color: #108D52;
    border-bottom-color: #108D52;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #108D52;
}

/* ==========================================================================
   Content Area Layout
   ========================================================================== */

.buyer-list-content-area {
    display: flex;
    gap: 20px;
    margin-top: 0;
    padding-top: 20px;
}

/* ==========================================================================
   Filter Sidebar
   ========================================================================== */

.buyer-list-sidebar {
    width: 184px;
    flex-shrink: 0;
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */

.buyer-list-main {
    flex: 1;
    min-width: 0;
}

/* Navigation Tabs: All, Hot, New, Favourite */
.buyer-list-nav-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.nav-tabs-left {
    display: flex;
    gap: 8px;
}

.nav-tab-button {
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--color-secondary);
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab-button:hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    background-color: transparent;
    outline: none;
    box-shadow: none;
}

.nav-tab-button.active {
    background: var(--color-secondary);
    color: #FFFFFF;
    border-color: var(--color-secondary);
}

/* Featured Buyers Title */
.featured-buyers-title {
    margin-bottom: 20px;
}

.featured-buyers-title .title-text {
    font-size: 26px;
    font-weight: 700;
    line-height: 40px;
    color: var(--color-text-title);
    margin: 0;
}

/* Buyers List Container */
.buyers-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    font-weight:  400;
    color: rgba(0, 0, 0, 0.87);
    transition: all 0.3s ease;
    border-radius: 50%;
    padding: 0;
    background-color: white;
}

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

.pagination-btn:hover:not(:disabled) {
    border-color: #d0d5dd;
}

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

.pagination-btn.active {
    background-color: #108d52;
    border-color: #108d52;
    color: #fff;
}

.pagination-btn.active:hover {
    background-color: #0d7a45;
    border-color: #0d7a45;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
    stroke: #667085;
}

.pagination-btn.active svg {
    stroke: #fff;
}

.pagination-btn:disabled svg {
    stroke: #667085;
    opacity: 0.6;
}

.pagination-ellipsis {
    padding: 0 4px;
    color: #667085;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .buyer-list-banner {
        height: 200px;
    }

    .banner-title {
        font-size: 24px;
    }

    .tab-button {
        font-size: 18px;
        padding: 6px 8px;
    }

    .buyer-list-content-area {
        flex-direction: column;
    }

    .buyer-list-sidebar {
        width: 100%;
    }

    .buyer-list-nav-tabs {
        align-items: flex-start;
        gap: 12px;
    }

    .nav-tabs-left {
        flex-wrap: wrap;
    }

    .nav-tab-button {
        font-size: 12px;
    }

    .featured-buyers-title .title-text {
        font-size: 18px;
        line-height: 24px;
    }
    
    .pagination-nav {
        gap: 4px;
        padding: 8px 0;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 32px;
    }
    
    .pagination-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
        line-height: 13px;
        min-width: 30px;
    }
    
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .pagination-ellipsis {
        padding: 0 2px;
        font-size: 13px;
        display: flex;
        align-items: center;
        min-width: 20px;
    }
}

/* Tablet: 769px - 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .buyer-list-sidebar {
        display: none;
    }

    .buyer-list-content-area {
        gap: 16px;
        padding-top: 16px;
    }
    
    .pagination-nav {
        gap: 6px;
        margin-top: 32px;
    }
    
    .pagination-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Mobile Small: max 480px */
@media (max-width: 480px) {
    .pagination-nav {
        gap: 3px;
        padding: 6px 0;
        margin-top: 24px;
    }
    
    .pagination-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        min-width: 28px;
    }
    
    .pagination-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .pagination-ellipsis {
        font-size: 12px;
        padding: 0 2px;
    }
}

