/* Base Styles */
.blockly-challenges-browser {
    font-family: 'Nunito', sans-serif;
    background-color: white;
    color: #333;
    /* border-radius: 16px; */
    overflow: hidden;
    /* max-width: 1200px; */
    margin: 0 auto;
    /* border: 1px solid #e2e8f0; */
}

/* Layout Wrapper */
.layout-wrapper {
    display: flex;
    gap: 20px;
    padding: 20px;
}

/* Filter Panel */
.filter-panel {
    flex: 0 0 250px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

.filter-toggle {
    display: none;
    background: #6c5ce7;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 15px;
}

.filter-content {
    display: block;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #6c5ce7;
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-option {
    display: block;
    margin: 8px 0;
    font-size: 14px;
    color: #2d3436;
    cursor: pointer;
}

.filter-option input {
    margin-right: 8px;
    accent-color: #6c5ce7;
}

/* Challenge Content */
.challenge-content {
    flex: 1;
}

.sort-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.sort-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.sort-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.page-title {
    font-family: 'Fredoka One', cursive;
    font-size: 24px;
    color: #6c5ce7;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

/* Challenge List */
.challenge-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #333;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    border-color: #a29bfe;
    transform: translateY(-2px);
}

.card-main {
    flex: 1;
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.difficulty-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}

.difficulty-badge.easy {
    background: #00b894;
}

.difficulty-badge.medium {
    background: #fdcb6e;
}

.difficulty-badge.hard {
    background: #d63031;
}

.challenge-title {
    font-size: 18px;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
    flex: 1;
}

.points {
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 3px;
}

.challenge-description {
    font-size: 14px;
    color: #64748b;
    margin: 5px 0 10px;
    line-height: 1.5;
}

.challenge-meta {
    display: flex;
    gap: 15px;
}

.challenge-meta span {
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
}

.start-button {
    padding: 8px 20px;
    border-radius: 8px;
    border: none;
    background: #6c5ce7;
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.start-button:hover {
    background: #5649c0;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .layout-wrapper {
        flex-direction: column;
    }
    
    .filter-panel {
        flex: none;
    }
    
    .filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .filter-content {
        display: none;
    }
    
    .filter-content.active {
        display: block;
    }
    
    .challenge-header {
        gap: 8px;
    }
    
    .challenge-title {
        font-size: 16px;
    }
    
    .challenge-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .challenge-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .start-button {
        width: 100%;
    }
}