/* Home Page Specific Styles */

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    padding: 48px 32px;
    margin-bottom: 32px;
    text-align: center;
    color: var(--light);
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("/static/images/pattern.4e4a6d735d7a.png") repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 8px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

/* Search Section */
.search-section {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    background: white;
    padding: 16px;
    border-radius: 60px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.search-bar {
    flex: 1;
    position: relative;
}

.search-bar i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 15px;
    background: var(--gray-light);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(223, 31, 31, 0.1);
}

.filter-toggle-btn {
    padding: 14px 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    display: none;
    font-weight: 500;
    color: var(--gray);
}

.filter-toggle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Quick Filters */
.quick-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.quick-filters::-webkit-scrollbar {
    height: 3px;
}

.quick-filters::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 3px;
}

.quick-filters::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.quick-filter {
    padding: 8px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-weight: 500;
    color: var(--gray);
}

.quick-filter i {
    margin-right: 6px;
    font-size: 12px;
}

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

.quick-filter.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    box-shadow: 0 2px 8px rgba(223, 31, 31, 0.3);
}

.quick-filter .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 20px;
    margin-left: 6px;
    font-size: 11px;
}

.quick-filter.active .count {
    background: rgba(255, 255, 255, 0.3);
}

/* Filter Sidebar */
.filter-sidebar {
    position: fixed;
    right: -320px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 24px;
    transition: right var(--transition);
    overflow-y: auto;
}

.filter-sidebar.open {
    right: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filter-header h3 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.close-filter {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.close-filter:hover {
    background: var(--gray-light);
    color: var(--primary);
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(223, 31, 31, 0.1);
}

.age-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.age-range input {
    flex: 1;
}

.age-range span {
    color: var(--gray);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.interests-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
}

.interests-grid label:hover {
    background: var(--gray-light);
}

.interests-grid input {
    width: auto;
    margin-right: 4px;
    cursor: pointer;
    accent-color: var(--primary);
}

.apply-filters,
.clear-filters {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 12px;
    text-align: center;
}

.apply-filters {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 31, 31, 0.3);
}

.clear-filters {
    background: none;
    border: 1px solid var(--border);
    color: var(--gray);
}

.clear-filters:hover {
    background: var(--gray-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Filter Overlay */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.filter-overlay.show {
    display: block;
}

/* Section Containers */
.featured-section,
.online-section,
.recommended-section,
.products-section {
    margin-bottom: 48px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark);
}

.section-header h2 i {
    font-size: 22px;
}

.section-badge {
    background: var(--gray-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-all:hover {
    color: var(--secondary);
    gap: 8px;
}

.online-icon {
    color: var(--online);
    font-size: 14px;
}

.sponsored-tag {
    background: var(--gray-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--gray);
}

/* Admin Ads Section */
.admin-ads-section {
    margin-bottom: 48px;
}

.admin-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.admin-ad-card {
    background: linear-gradient(135deg, var(--dark), var(--dark-gray));
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.admin-ad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.admin-ad-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.ad-content {
    flex: 1;
    padding: 16px;
    color: var(--light);
}

.ad-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 600;
}

.ad-content p {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-outline-small {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline-small:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

/* Profile Cards Grid */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 0;
}

/* Profile Card */
.profile-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.profile-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.profile-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
}

.profile-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-light);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-image img {
    transform: scale(1.08);
}

.online-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 14px;
    height: 14px;
    background: var(--online);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.vip-badge i {
    font-size: 10px;
}

.verified-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    z-index: 2;
}

.profile-info {
    padding: 16px;
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.profile-location {
    font-size: 12px;
    color: var(--gray);
    margin: 6px 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-bio {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.interest-tag {
    background: var(--gray-light);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--primary);
    font-weight: 500;
}

.interest-btn {
    width: 100%;
    padding: 12px;
    background: var(--gray-light);
    border: none;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.interest-btn:hover {
    background: var(--primary);
    color: white;
}

.interest-btn i {
    font-size: 14px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--gray-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.featured-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.stars {
    color: #FFD700;
    font-size: 12px;
    letter-spacing: 2px;
}

.product-seller {
    font-size: 12px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
    background: white;
    border-radius: 20px;
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--dark);
}

.empty-state p {
    font-size: 14px;
}

/* Load More */
.load-more {
    text-align: center;
    margin: 48px 0 24px;
}

.load-more-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 12px 32px;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 31, 31, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profiles-grid,
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .profiles-grid,
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 32px 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 14px;
        margin-bottom: 24px;
    }
    
    .hero-stats {
        gap: 24px;
        margin-bottom: 24px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-outline {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    
    .search-section {
        border-radius: 20px;
        padding: 12px;
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-toggle-btn {
        display: block;
        width: 100%;
    }
    
    .quick-filters {
        margin-bottom: 24px;
        gap: 8px;
    }
    
    .quick-filter {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .section-header h2 i {
        font-size: 18px;
    }
    
    .profiles-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-card {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }
    
    .profile-info {
        flex: 1;
    }
    
    .profile-bio {
        font-size: 12px;
        -webkit-line-clamp: 1;
    }
    
    .admin-ads-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-ad-card {
        flex-direction: column;
    }
    
    .admin-ad-card img {
        width: 100%;
        height: 160px;
    }
    
    .featured-section,
    .online-section,
    .recommended-section,
    .products-section {
        margin-bottom: 32px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 16px;
        background: rgba(255, 255, 255, 0.1);
        padding: 12px 16px;
        border-radius: 12px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .profile-card {
        flex-direction: column;
    }
    
    .profile-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
    
    .quick-filters {
        gap: 6px;
    }
    
    .quick-filter {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* Animation for profile cards */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card {
    animation: cardFadeIn 0.5s ease forwards;
}

.product-card {
    animation: cardFadeIn 0.5s ease forwards;
}

/* Stagger animation for cards */
.profile-card:nth-child(1) { animation-delay: 0.05s; }
.profile-card:nth-child(2) { animation-delay: 0.1s; }
.profile-card:nth-child(3) { animation-delay: 0.15s; }
.profile-card:nth-child(4) { animation-delay: 0.2s; }
.profile-card:nth-child(5) { animation-delay: 0.25s; }
.profile-card:nth-child(6) { animation-delay: 0.3s; }

/* Scrollbar styling for quick filters */
.quick-filters::-webkit-scrollbar {
    height: 3px;
}

.quick-filters::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 3px;
}

.quick-filters::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Hover effect for interest button */
.interest-btn {
    position: relative;
    overflow: hidden;
}

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

.interest-btn:active::before {
    width: 200px;
    height: 200px;
}


/* Filter Sidebar - Desktop First */
.filter-sidebar {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
}

/* Desktop: Always visible */
@media (min-width: 769px) {
    .filter-sidebar {
        position: sticky;
        top: 90px;
        width: 100%;
        max-width: 320px;
        height: auto;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        margin: 0;
        transition: none;
        right: auto;
        left: auto;
    }
    
    .filter-sidebar .close-filter {
        display: none;
    }
    
    .filter-overlay {
        display: none !important;
    }
    
    .filter-toggle-btn {
        display: none !important;
    }
    
    /* Two column layout for desktop */
    .two-column-layout {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 32px;
        align-items: start;
    }
}

/* Mobile: Slide-in sidebar */
@media (max-width: 768px) {
    .filter-sidebar {
        position: fixed;
        right: -100%;
        top: 0;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        transition: right 0.3s ease;
        overflow-y: auto;
        box-shadow: -2px 0 20px rgba(0, 0, 0, 0.1);
    }
    
    .filter-sidebar.open {
        right: 0;
    }
    
    .filter-sidebar .close-filter {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
        background: var(--gray-light);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 16px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        color: var(--gray);
    }
    
    .filter-sidebar .close-filter:hover {
        background: var(--primary);
        color: white;
    }
    
    .filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
        backdrop-filter: blur(2px);
    }
    
    .filter-overlay.show {
        display: block;
    }
    
    .filter-toggle-btn {
        display: flex;
    }
}

/* Filter Header */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.filter-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.filter-header h3 i {
    color: var(--primary);
    font-size: 18px;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 24px;
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--dark);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(223, 31, 31, 0.1);
}

/* Age Range */
.age-range {
    display: flex;
    gap: 12px;
    align-items: center;
}

.age-range input {
    flex: 1;
}

.age-range span {
    color: var(--gray);
    font-weight: 500;
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.interests-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
    font-size: 13px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--gray-light);
}

.interests-grid label:hover {
    background: rgba(223, 31, 31, 0.1);
    color: var(--primary);
}

.interests-grid input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Buttons */
.apply-filters,
.clear-filters {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 12px;
    text-align: center;
    font-size: 14px;
}

.apply-filters {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(223, 31, 31, 0.3);
}

.clear-filters {
    background: none;
    border: 1px solid var(--border);
    color: var(--gray);
}

.clear-filters:hover {
    background: var(--gray-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Filter Toggle Button (Mobile only) */
.filter-toggle-btn {
    padding: 12px 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: var(--gray);
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.filter-toggle-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-toggle-btn i {
    font-size: 14px;
}

/* Prevent body scroll when filter is open on mobile */
body.filter-open {
    overflow: hidden;
}

/* Scrollbar styling for filter sidebar */
.filter-sidebar::-webkit-scrollbar {
    width: 4px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

