.crafting-container {
    padding: 20px;
}

.crafting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.crafting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.recipe-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.recipe-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.recipe-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.recipe-name {
    font-size: 0.9rem;
    color: #fff;
}

/* Категорії */
.crafting-categories {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    padding: 10px 5px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.crafting-categories::-webkit-scrollbar {
    display: none;
}

.crafting-cat-btn {
    flex: 0 0 auto;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.25s ease;
}

.crafting-cat-btn:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: var(--primary-color);
    color: #fff;
}

.crafting-cat-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.3);
}

@media (max-width: 768px) {
    .crafting-categories {
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .crafting-cat-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .crafting-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}
