/* Sidebets Page Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    padding-top: 88px;
}

.sidebets-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.sidebets-container h1 {
    text-align: center;
    color: var(--text-white);
    margin-bottom: 30px;
    font-size: 2.5rem;
}

/* Filters Section */
.filters-section {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 25px;
    margin-bottom: 30px;
}

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

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group > label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1rem;
}

/* Filter Buttons */
.sidebets-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color-strong);
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: 14px;
    font-weight: 500;
}

.filter-btn:hover {
    background-color: var(--bg-hover-strong);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--gradient-purple);
    border-color: transparent;
    color: white;
}

/* Matchup Dropdown */
.matchup-dropdown {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color-strong);
    border-radius: var(--border-radius);
    color: var(--text-white);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-base);
}

.matchup-dropdown:hover {
    background-color: var(--bg-input-focus);
}

.matchup-dropdown:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.matchup-dropdown option {
    background-color: var(--bg-card);
    color: var(--text-white);
}

/* Checkbox Group */
.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.checkbox-group span {
    font-weight: normal;
}

/* Sidebets List */
.sidebets-list {
    display: grid;
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

/* Sidebet Card */
.sidebet-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    transition: var(--transition-base);
    animation: slideUp 0.3s ease;
}

.sidebet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(102, 126, 234, 0.3);
}

.sidebet-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebet-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebet-author {
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebet-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.sidebet-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.sidebet-status.active {
    background-color: rgba(102, 126, 234, 0.2);
    color: var(--primary-purple);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.sidebet-status.fulfilled {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

/* Matchup Badge */
.sidebet-matchup {
    margin: 10px 0;
    padding: 10px 15px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--accent-gold);
    border-radius: 5px;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Suggestion Text */
.sidebet-suggestion {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.05rem;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

/* Legacy styles for backward compatibility */
.sidebet-content {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1.05rem;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.sidebet-week {
    margin-top: 15px;
    padding: 10px 15px;
    background: rgba(255, 215, 0, 0.1);
    border-left: 3px solid var(--accent-gold);
    border-radius: 5px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sidebet-week span:first-child {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.week-badge {
    color: var(--accent-gold);
    font-weight: 600;
}

/* Additional status classes */
.status-active {
    background-color: rgba(102, 126, 234, 0.2);
    color: var(--primary-purple);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.status-fulfilled {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

/* Fulfilled sidebet card styling */
.sidebet-card[data-fulfilled="true"] {
    opacity: 0.7;
    border-color: rgba(46, 213, 115, 0.3);
}

/* Admin toggle button */
.admin-toggle-btn {
    margin-top: 15px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    width: 100%;
}

.admin-toggle-btn.active {
    background: var(--gradient-purple);
    color: white;
}

.admin-toggle-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.admin-toggle-btn.fulfilled {
    background-color: var(--success-bg);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.admin-toggle-btn.fulfilled:hover {
    background-color: rgba(46, 213, 115, 0.3);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results p {
    font-size: 1.2rem;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .sidebets-container {
        padding: 15px;
    }

    .sidebets-container h1 {
        font-size: 2rem;
    }

    .sidebets-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
        padding: 8px 20px;
        font-size: 14px;
    }

    .sidebet-card {
        padding: 15px;
    }

    .sidebet-header {
        flex-direction: column;
    }

    .sidebet-content,
    .sidebet-suggestion {
        font-size: 1rem;
    }
}
