/* Bots Directory Styles */
.bots-directory-container {
    padding: 2rem 0;
    min-height: 60vh;
    width: 100%;
    background: white;
}

.bots-directory-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0;
    align-items: start;
}

/* Sidebar Styles */
.bots-filters-sidebar {
    background: white;
    padding: 2rem 1.5rem 2rem 0;
    position: sticky;
    top: 2rem;
    border-right: 1px solid #e5e5e5;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar styling for the sidebar */
.bots-filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.bots-filters-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.bots-filters-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.bots-filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #333;
}



.filters-title-desktop {
    display: block;
    margin-bottom: 1.8rem;
}
.filters-title-mobile {
    display: none;
}
.filter-group {
    margin-bottom: 2.5rem;
}

.filter-group-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-item {
    margin-bottom: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #555;
}

.filter-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
}

.no-filters {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Main Content Styles */
.bots-main-content {
    background: #fafafa;
    padding: 2rem;
    min-height: 100vh;
}

.bots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.bots-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.bots-search-form {
    min-width: 350px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.bots-search-input {
    width: 100%;
    padding: 0.875rem 1rem;
    padding-right: 3rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: white;
}

.bots-search-input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.bots-search-button {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.bots-search-button:hover {
    color: #007cba;
}

/* Bots Grid Styles */
.bots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.bot-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 320px;
    position: relative;
    border: 1px solid #e5e5e5;
    background: white;
}

.bot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.bot-card-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.bot-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.bot-card-title-top {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.bot-card-bottom {
    color: white;
}

.bot-card-title-bold {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.4rem 0;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.bot-platform {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.6rem 0;
}

.bot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
}

.bot-tag {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.bot-chat-button {
    display: block;
    width: 100%;
    background: #6366f1;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    text-align: center;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.bot-chat-button:hover {
    background: #4f46e5;
    color: white;
}

/* Pagination */
.bots-pagination {
    margin-top: 2rem;
    text-align: center;
}

.bots-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.bots-pagination .page-numbers:hover,
.bots-pagination .page-numbers.current {
    background: #007cba;
    color: white;
}

.no-bots-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Search & Filter Pro Integration Styles */
.searchandfilter-results-container {
    width: 100%;
}

.sf-results-wrapper {
    width: 100%;
}

.sf-load-more-container {
    margin-top: 2rem;
    text-align: center;
}

.sf-load-more-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.sf-load-more-btn:hover {
    background: #4f46e5;
}

.sf-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Search & Filter Form Styles */
.searchandfilter {
    margin-bottom: 1rem;
}

.searchandfilter input[type="text"],
.searchandfilter input[type="search"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: white;
}

.searchandfilter input[type="text"]:focus,
.searchandfilter input[type="search"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.searchandfilter input[type="text"]::placeholder,
.searchandfilter input[type="search"]::placeholder {
    font-size: 0.8rem;
    color: #999;
}

/* Search & Filter Pro Text Input Specific Styling */
.search-filter-input-text__input {
    width: 300px !important;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    background: white;
}

.search-filter-input-checkbox__label {
  font-size: 0.9rem;
}

.search-filter-input-text__input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.search-filter-input-text__input::placeholder {
    font-size: 0.875rem !important;
    color: #999;
}

.searchandfilter select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Global Search & Filter Styling Improvements */
.search-filter-label {
    font-weight: 700 !important;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: block;
}

.search-filter-input-group {
    margin-bottom: 1.5rem;
}

.search-filter-input-group .search-filter-input-checkbox {
    font-size: 0.85rem !important;
}

.search-filter-input-group .search-filter-input-checkbox__container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem !important;
    color: #555;
}

.search-filter-input-group .search-filter-input-checkbox__input {
    margin-right: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .bot-card {
        height: 300px;
    }
    
    .search-filter-input-text__input {
        width: 250px !important;
    }
}

@media (max-width: 768px) {
    .bots-directory-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .filters-section-collapsible {
      margin-top: 1.5rem;
    }
    
    .bots-filters-sidebar {
        position: static;
        order: 1;
        border: 1px solid #e5e5e5;
        padding: 0;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08);
        margin-bottom: 1rem;
        height: auto;
        overflow: visible;
    }
    
    .filters-title-desktop {
        display: none;
    }

    .filters-title-mobile {
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        margin: 0;
        font-weight: 600;
        touch-action: manipulation; /* Prevents 300ms click delay on touch devices */
    }
    
    .filters-title-mobile::after {
        content: '▼';
        font-size: 0.8rem;
        transition: transform 0.15s ease;
    }
    
    .filters-title-mobile.active::after {
        transform: rotate(180deg);
    }
    
    .filters-section-collapsible {
        display: none;
        padding: 0 1rem 1.5rem 1rem;
    }
    
    .filter-group {
        margin-bottom: 1.5rem;
    }
    
    .filter-group-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .bots-main-content {
        padding: 1.5rem;
        order: 2;
    }
    
    .bots-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bots-page-title {
        font-size: 1.4rem;
        text-align: center;
    }
    
    .bots-search-form {
        min-width: auto;
    }
    
    .search-filter-input-text__input {
        width: 100% !important;
    }
    
    .bots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .bot-card {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .bots-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .bot-card {
        height: 260px;
    }
    
    .bots-main-content {
        padding: 1rem;
    }
    
    .bots-page-title {
        font-size: 1.2rem;
    }
    
    .bots-filters-sidebar {
        padding: 0.5rem;
    }
    
    .filters-title-mobile {
        font-size: 1.1rem;
        padding: 0.75rem;
    }
} 