/*--------------------------------------------------------------
# Reseller Page Styles
--------------------------------------------------------------*/

/* Reduce section padding */
#reseller.section {
    padding: 10px 0 30px 0;
}

#reseller .section-header h2 {
    margin-bottom: 5px;
}

/* Stats Cards */
.reseller-stats .stat-card {
    background: var(--surface-color);
    padding: 15px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reseller-stats .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.reseller-stats .stat-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFB700 0%, #FFA000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #000;
    font-size: 20px;
}

.reseller-stats .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
}

.reseller-stats .stat-label {
    font-size: 0.9rem;
    color: var(--default-color);
}

/* Clickable Stat Cards */
.reseller-stats .stat-clickable {
    cursor: pointer;
}

.reseller-stats .stat-clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #FFB700;
}

.reseller-stats .stat-clickable.active {
    border-color: #FFB700;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

.reseller-stats .stat-clickable.active .stat-icon {
    background: linear-gradient(135deg, #FFB700 0%, #FF8F00 100%);
    color: #000;
}

/* Filter Section */
.filter-section .filter-card {
    background: var(--surface-color);
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

/* Store Type Toggle */
.store-type-toggle .btn-check:checked + .btn {
    background: linear-gradient(135deg, #FFB700 0%, #FFA000 100%);
    border-color: #FFB700;
    color: #000;
}

.store-type-toggle .btn {
    padding: 8px 20px;
    font-weight: 500;
}

.store-type-toggle .btn:hover {
    border-color: #FFB700;
    color: #000;
}

/* Section Titles */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--heading-color);
    padding-bottom: 8px;
    border-bottom: 2px solid #FFB700;
    display: inline-block;
    margin-bottom: 15px;
}

/* Marketplace Groups */
.marketplace-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.marketplace-title .badge {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Province Groups */
.province-group {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.province-header {
    background: linear-gradient(135deg, #252223 0%, #3a3536 100%);
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.province-header:hover {
    background: linear-gradient(135deg, #3a3536 0%, #4a4546 100%);
}

.province-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.province-content {
    padding: 15px;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.province-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(180deg);
}

/* Reseller Cards */
.reseller-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.reseller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.reseller-card .card-header {
    padding: 12px 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.reseller-card .store-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #FFB700 0%, #FFA000 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 20px;
    flex-shrink: 0;
}

.reseller-card .store-icon.offline {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
}

.reseller-card .store-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--heading-color);
}

.reseller-card .card-body {
    padding: 12px 15px;
    flex-grow: 1;
}

.reseller-card .card-body p {
    font-size: 0.9rem;
    color: var(--default-color);
    margin-bottom: 8px;
}

.reseller-card .card-footer {
    padding: 12px 15px;
    background: transparent;
    border-top: 1px solid #eee;
}

/* Online Card Specific */
.online-card .card-header {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

/* Offline Card Specific */
.offline-card .card-header {
    background: linear-gradient(135deg, #cce5ff 0%, #b8daff 100%);
}

/* Results Header */
.results-header {
    background: transparent;
    padding: 0;
}

.results-header h6 {
    font-size: 0.95rem;
    color: var(--heading-color);
}

.active-filters .badge {
    font-size: 0.8rem;
    padding: 6px 10px;
}

/* No Results */
.no-results {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 40px;
}

/* Form Styling */
.form-select:focus,
.form-control:focus {
    border-color: #FFB700;
    box-shadow: 0 0 0 0.25rem rgba(255, 183, 0, 0.2);
}

/* Button Styling */
.btn-warning {
    background: linear-gradient(135deg, #FFB700 0%, #FFA000 100%);
    border: none;
    color: #000;
    font-weight: 500;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #FFA000 0%, #FF8F00 100%);
    color: #000;
}

.btn-outline-warning {
    border-color: #FFB700;
    color: #FFB700;
}

.btn-outline-warning:hover {
    background: #FFB700;
    border-color: #FFB700;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .store-type-toggle {
        flex-direction: column;
    }
    
    .store-type-toggle .btn {
        width: 100%;
    }
    
    .province-title {
        font-size: 1rem;
    }
    
    .reseller-stats .stat-number {
        font-size: 1.5rem;
    }
    
    /* Stats cards horizontal on mobile */
    .reseller-stats .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .reseller-stats .stat-card {
        padding: 12px 8px;
    }
    
    .reseller-stats .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .reseller-stats .stat-number {
        font-size: 1.2rem;
    }
    
    .reseller-stats .stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .reseller-stats .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        padding-left: 3px;
        padding-right: 3px;
    }
    
    .reseller-stats .stat-card {
        padding: 10px 5px;
    }
    
    .reseller-stats .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .reseller-stats .stat-number {
        font-size: 1.2rem;
    }
    
    .reseller-stats .stat-label {
        font-size: 0.8rem;
        white-space: nowrap;
    }
}
