/* BrainBoozle Library Styles */

#bb-library-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: sans-serif;
}

/* Filter Bar */
.bb-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    margin-bottom: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.bb-filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bb-filter-group label {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.bb-select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 4px;
    min-width: 150px;
    outline: none;
    transition: border-color 0.3s;
}

.bb-select:focus {
    border-color: #45a29e; /* Teal */
}

/* Buttons */
.bb-button {
    padding: 10px 20px;
    background-color: #ffc857; /* Yellow */
    border: none;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.bb-button:hover {
    background-color: #eeb43f;
}

.bb-button:active {
    transform: scale(0.98);
}

/* Grid Layout */
.bb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    transition: opacity 0.3s;
}

/* Card Design */
.bb-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.bb-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.bb-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.bb-card-title {
    margin: 0 0 10px 0;
    color: #45a29e; /* Teal */
    font-size: 1.25rem;
}

.bb-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.bb-badge {
    background: #e0e0e0;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
}

.bb-card-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.bb-play-button {
    margin-top: auto;
    width: 100%;
}

/* Pagination */
.bb-pagination {
    margin-top: 40px;
    text-align: center;
}

#bb-load-more {
    margin: 0 auto;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .bb-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bb-select {
        width: 100%;
    }
}
